Class MEnvSpaceType


  • public class MEnvSpaceType
    extends java.lang.Object
    Java representation of environment space type for xml description.
    • Field Summary

      Fields 
      Modifier and Type Field 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<jadex.xml.TypeInfo> TYPES  
    • Constructor Summary

      Constructors 
      Constructor Description
      MEnvSpaceType()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      java.lang.Object getProperty​(java.lang.String name)
      Get a property from a (multi)map.
      static java.lang.Object getProperty​(java.util.Map map, 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​(jadex.xml.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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<jadex.xml.TypeInfo> TYPES
    • Constructor Detail

      • MEnvSpaceType

        public MEnvSpaceType()
    • 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​(jadex.xml.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.