Class AttributeTypeImpl

    • Field Detail

      • identified

        protected final boolean identified
    • Method Detail

      • isIdentified

        public boolean isIdentified()
        Description copied from interface: AttributeType
        Indicates if the type is identified or not.

        If this method returns true, then the corresponding attribute must have a unique identifier, ie, Attribute#getID() must return a value, and cannot be null.

        Specified by:
        isIdentified in interface AttributeType
        true if the attribute is identified, otherwise false.
        See Also:
      • parse

        public Object parse​(Object value)
                     throws IllegalArgumentException
        Allows this AttributeType to convert an argument to its prefered storage type. If no parsing is possible, returns the original value. If a parse is attempted, yet fails (i.e. a poor decimal format) throw the Exception. This is mostly for use internally in Features, but implementors should simply follow the rules to be safe.
        value - the object to attempt parsing of.
        value converted to the preferred storage of this AttributeType . If no parsing was possible then the same object is returned.
        IllegalArgumentException - if parsing is attempted and is unsuccessful.
      • createDefaultValue

        public Object createDefaultValue()
      • equals

        public boolean equals​(Object other)
        Override of equals.
        Specified by:
        equals in interface PropertyType
        equals in class PropertyTypeImpl
        other - the object to be tested for equality.
        whether other is equal to this attribute Type.