Package prezoom.model

Class AttributeMap

  • All Implemented Interfaces:
    AttributeMapI
    Direct Known Subclasses:
    CameraInfo, GAttributes

    public abstract class AttributeMap
    extends Object
    implements AttributeMapI
    The abstract class for getting the getter and setter map
    Author:
    Zhijie Lan

    create date: 2020/11/18

    • Field Detail

      • getters

        private transient Map<String,​Method> getters
        the map of getters and setters. transient, cuz The Method cannot be serialized to save
      • setters

        private transient Map<String,​Method> setters
        the map of getters and setters. transient, cuz The Method cannot be serialized to save
    • Constructor Detail

      • AttributeMap

        public AttributeMap()
    • Method Detail

      • validSetterMap

        public Map<String,​Method> validSetterMap()
        the map that has all the none null fields name and corresponding setter methods
        Specified by:
        validSetterMap in interface AttributeMapI
        Returns:
        setter map, key: field names, value: setter methods
      • validGetterMap

        public Map<String,​Method> validGetterMap()
        the map that has all the none null fields name and corresponding getter methods
        Specified by:
        validGetterMap in interface AttributeMapI
        Returns:
        setter map, key: field names, value: getter methods
      • validAttributeMap

        public Map<String,​Object> validAttributeMap()
        the map that has all the none null fields name and corresponding values
        Specified by:
        validAttributeMap in interface AttributeMapI
        Returns:
        setter map, key: field names, value: values of fields