Class DefaultObjectPropertyMap

    • Constructor Detail

      • DefaultObjectPropertyMap

        public DefaultObjectPropertyMap​(java.lang.String name,
                                        java.lang.Class<?> objectClass)
        Construct a new ObjectPropertyMap
        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
        addr - address for the property
        value - value of the property
        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
        addr - the address from where to get the int value
        Saveable object or null if property not found at addr.