Package jadex.extension.envsupport
Class MEnvSpaceType
- java.lang.Object
 - 
- jadex.extension.envsupport.MEnvSpaceType
 
 
- 
public class MEnvSpaceType extends java.lang.ObjectJava representation of environment space type for xml description. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMEnvSpaceType.ClassConverterParse class names. 
- 
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringclassnameThe class name.protected java.lang.StringnameThe name.static java.lang.StringOBJECTPLACEMENT_BORDERThe border object placement.static java.lang.StringOBJECTPLACEMENT_CENTERThe center object placement.protected MultiCollection<java.lang.String,java.lang.Object>propertiesThe properties.protected static java.util.Set<TypeInfo>TYPES 
- 
Constructor Summary
Constructors Constructor Description MEnvSpaceType() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(java.lang.String key, java.lang.Object value)Add a property.static java.util.MapconvertProperties(java.util.List properties, IValueFetcher fetcher)Set properties on a map.java.lang.StringgetClassName()Get the classname.java.lang.StringgetName()Get the name.java.util.MapgetProperties()Get the properties.java.lang.ObjectgetProperty(java.lang.String name)Get a property from a (multi)map.static java.lang.ObjectgetProperty(java.util.Map map, java.lang.String name)Get a property from a (multi)map.java.util.ListgetPropertyList(java.lang.String key)Get a property.static java.util.SetgetXMLMapping()Get the XML mapping.protected static voidreportError(IContext context, java.lang.String error)Report an error including the line and column.voidsetClassName(java.lang.String classname)Set the classname.voidsetName(java.lang.String name)static voidsetProperties(IPropertyObject object, java.util.List properties, IValueFetcher fetcher)Set properties on a IPropertyObject. 
 - 
 
- 
- 
Field Detail
- 
OBJECTPLACEMENT_BORDER
public static final java.lang.String OBJECTPLACEMENT_BORDER
The border object placement.- See Also:
 - Constant Field Values
 
 
- 
OBJECTPLACEMENT_CENTER
public static final java.lang.String OBJECTPLACEMENT_CENTER
The center object placement.- See Also:
 - Constant Field Values
 
 
- 
name
protected java.lang.String name
The name. 
- 
classname
protected java.lang.String classname
The class name. 
- 
properties
protected MultiCollection<java.lang.String,java.lang.Object> properties
The properties. 
- 
TYPES
protected static final java.util.Set<TypeInfo> TYPES
 
 - 
 
- 
Method Detail
- 
getName
public java.lang.String getName()
Get the name.- Returns:
 - The name.
 
 
- 
setName
public void setName(java.lang.String name)
- Parameters:
 name- The name to set.
 
- 
getClassName
public java.lang.String getClassName()
Get the classname.- Returns:
 - the classname.
 
 
- 
setClassName
public void setClassName(java.lang.String classname)
Set the classname.- Parameters:
 classname- The classname to set.
 
- 
addProperty
public void addProperty(java.lang.String key, java.lang.Object value)Add a property.- Parameters:
 key- The key.value- The value.
 
- 
getPropertyList
public java.util.List getPropertyList(java.lang.String key)
Get a property.- Parameters:
 key- The key.- Returns:
 - The value.
 
 
- 
getProperties
public java.util.Map getProperties()
Get the properties.- Returns:
 - The properties.
 
 
- 
getProperty
public java.lang.Object getProperty(java.lang.String name)
Get a property from a (multi)map.- Parameters:
 map- The map.name- The name.- Returns:
 - The property.
 
 
- 
getXMLMapping
public static java.util.Set getXMLMapping()
Get the XML mapping. 
- 
reportError
protected static void reportError(IContext context, java.lang.String error)
Report an error including the line and column. 
- 
setProperties
public static void setProperties(IPropertyObject object, java.util.List properties, IValueFetcher fetcher)
Set properties on a IPropertyObject.- Parameters:
 object- The IPropertyObject.properties- A list properties (containing maps with "name", "value" keys).fetcher- The fetcher for parsing the Java expression (can provide predefined values to the expression)
 
- 
convertProperties
public static java.util.Map convertProperties(java.util.List properties, IValueFetcher fetcher)Set properties on a map.- Parameters:
 properties- A list properties (containing maps with "name", "value" keys).fetcher- The fetcher for parsing the Java expression (can provide predefined values to the expression)
 
- 
getProperty
public static java.lang.Object getProperty(java.util.Map map, java.lang.String name)Get a property from a (multi)map.- Parameters:
 map- The map.name- The name.- Returns:
 - The property.
 
 
 - 
 
 -