public class MEnvSpaceType
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MEnvSpaceType.ClassConverter
Parse class names.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
classname
The class name.
|
protected java.lang.String |
name
The name.
|
static java.lang.String |
OBJECTPLACEMENT_BORDER
The border object placement.
|
static java.lang.String |
OBJECTPLACEMENT_CENTER
The center object placement.
|
protected MultiCollection<java.lang.String,java.lang.Object> |
properties
The properties.
|
protected static java.util.Set<TypeInfo> |
TYPES |
Constructor and Description |
---|
MEnvSpaceType() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String key,
java.lang.Object value)
Add a property.
|
static java.util.Map |
convertProperties(java.util.List properties,
IValueFetcher fetcher)
Set properties on a map.
|
java.lang.String |
getClassName()
Get the classname.
|
java.lang.String |
getName()
Get the name.
|
java.util.Map |
getProperties()
Get the properties.
|
static java.lang.Object |
getProperty(java.util.Map map,
java.lang.String name)
Get a property from a (multi)map.
|
java.lang.Object |
getProperty(java.lang.String name)
Get a property from a (multi)map.
|
java.util.List |
getPropertyList(java.lang.String key)
Get a property.
|
static java.util.Set |
getXMLMapping()
Get the XML mapping.
|
protected static void |
reportError(IContext context,
java.lang.String error)
Report an error including the line and column.
|
void |
setClassName(java.lang.String classname)
Set the classname.
|
void |
setName(java.lang.String name) |
static void |
setProperties(IPropertyObject object,
java.util.List properties,
IValueFetcher fetcher)
Set properties on a IPropertyObject.
|
public static final java.lang.String OBJECTPLACEMENT_BORDER
public static final java.lang.String OBJECTPLACEMENT_CENTER
protected java.lang.String name
protected java.lang.String classname
protected MultiCollection<java.lang.String,java.lang.Object> properties
protected static final java.util.Set<TypeInfo> TYPES
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.String getClassName()
public void setClassName(java.lang.String classname)
classname
- The classname to set.public void addProperty(java.lang.String key, java.lang.Object value)
key
- The key.value
- The value.public java.util.List getPropertyList(java.lang.String key)
key
- The key.public java.util.Map getProperties()
public java.lang.Object getProperty(java.lang.String name)
map
- The map.name
- The name.public static java.util.Set getXMLMapping()
protected static void reportError(IContext context, java.lang.String error)
public static void setProperties(IPropertyObject object, java.util.List properties, IValueFetcher fetcher)
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)public static java.util.Map convertProperties(java.util.List properties, IValueFetcher fetcher)
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)public static java.lang.Object getProperty(java.util.Map map, java.lang.String name)
map
- The map.name
- The name.