jadex.application.space.envsupport
Class MEnvSpaceInstance

java.lang.Object
  extended by jadex.application.model.MSpaceInstance
      extended by jadex.application.space.envsupport.MEnvSpaceInstance

public class MEnvSpaceInstance
extends MSpaceInstance

Java representation of environment space instance for xml description.


Field Summary
protected  Map properties
          The properties.
 
Fields inherited from class jadex.application.model.MSpaceInstance
name, spacetype, type
 
Constructor Summary
MEnvSpaceInstance()
           
 
Method Summary
 void addProperty(String key, Object value)
          Add a property.
static Map convertProperties(List properties, IValueFetcher fetcher)
          Set properties on a map.
 Class getClazz()
          Get the implementation class of the space.
 Map getProperties()
          Get the properties.
static Object getProperty(Map map, String name)
          Get a property from a (multi)map.
 Object getProperty(String name)
          Get a property from a (multi)map.
 List getPropertyList(String key)
          Get a property.
static void setProperties(IPropertyObject object, List properties, IValueFetcher fetcher)
          Set properties on a IPropertyObject.
 
Methods inherited from class jadex.application.model.MSpaceInstance
getName, getType, getTypeName, setName, setType, setTypeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected Map properties
The properties.

Constructor Detail

MEnvSpaceInstance

public MEnvSpaceInstance()
Method Detail

addProperty

public void addProperty(String key,
                        Object value)
Add a property.

Parameters:
key - The key.
value - The value.

getPropertyList

public List getPropertyList(String key)
Get a property.

Parameters:
key - The key.
Returns:
The value.

getProperties

public Map getProperties()
Get the properties.

Returns:
The properties.

getProperty

public static Object getProperty(Map map,
                                 String name)
Get a property from a (multi)map.

Parameters:
map - The map.
name - The name.
Returns:
The property.

getProperty

public Object getProperty(String name)
Get a property from a (multi)map.

Parameters:
map - The map.
name - The name.
Returns:
The property.

setProperties

public static void setProperties(IPropertyObject object,
                                 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 Map convertProperties(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)

getClazz

public Class getClazz()
Description copied from class: MSpaceInstance
Get the implementation class of the space.

Specified by:
getClazz in class MSpaceInstance


Copyright © 2010. All Rights Reserved.