Class DefaultObjectPropertyMap

    • Constructor Detail

      • DefaultObjectPropertyMap

        public DefaultObjectPropertyMap​(java.lang.String name,
                                        java.lang.Class<?> objectClass)
        Construct a new ObjectPropertyMap
        Parameters:
        name - of property
        objectClass - class of objects to be stored in this map
    • Method Detail

      • add

        public void add​(Address addr,
                        Saveable value)
        Add an object value at the specified address.
        Specified by:
        add in interface ObjectPropertyMap
        Parameters:
        addr - address for the property
        value - value of the property
        Throws:
        TypeMismatchException - thrown if the property does not have Saveable object values.
      • getObject

        public java.lang.Object getObject​(Address addr)
        Get the object value at the given address.
        Specified by:
        getObject in interface PropertyMap
        Parameters:
        addr - the address from where to get the int value
        Returns:
        Saveable object or null if property not found at addr.