Class PrimitiveDef

  • All Implemented Interfaces:
    Serializable

    public class PrimitiveDef
    extends AttributeTypeDef
    PrimitiveDef supports the definition of a primitive type. This information is managed in the PrimitiveDefCategory.
    See Also:
    Serialized Form
    • Constructor Detail

      • PrimitiveDef

        public PrimitiveDef()
        Default constructor initializes the PrimitiveDef based on the supplied category.
      • PrimitiveDef

        public PrimitiveDef​(PrimitiveDefCategory primitiveDefCategory)
        Superclass constructor initializes the PrimitiveDef based on the supplied category.
        Parameters:
        primitiveDefCategory - PrimitiveDefCategory Enum
      • PrimitiveDef

        public PrimitiveDef​(PrimitiveDef template)
        Copy/clone constructor creates a copy of the supplied template.
        Parameters:
        template - PrimitiveDef to copy
    • Method Detail

      • getPrimitiveDefCategory

        public PrimitiveDefCategory getPrimitiveDefCategory()
        Return the type category for this primitive type.
        Returns:
        PrimitiveDefCategory Enum
      • setPrimitiveDefCategory

        public void setPrimitiveDefCategory​(PrimitiveDefCategory primitiveDefCategory)
        Set up the type category for this primitive type.
        Parameters:
        primitiveDefCategory - PrimitiveDefCategory Enum
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class AttributeTypeDef
        Returns:
        JSON style description of variables.
      • equals

        public boolean equals​(Object objectToCompare)
        Verify that supplied object has the same properties.
        Overrides:
        equals in class AttributeTypeDef
        Parameters:
        objectToCompare - object to test
        Returns:
        result
      • hashCode

        public int hashCode()
        Description copied from class: AttributeTypeDef
        Return a hash code based on the values of this object.
        Overrides:
        hashCode in class AttributeTypeDef
        Returns:
        in hash code