Class ElementType

  • All Implemented Interfaces:
    Serializable

    public class ElementType
    extends Object
    implements Serializable
    The ElementType bean provides details of the type information associated with a metadata element.
    See Also:
    Serialized Form
    • Constructor Detail

      • ElementType

        public ElementType()
        Default constructor
      • ElementType

        public ElementType​(ElementType templateType)
        Copy/clone constructor
        Parameters:
        templateType - type to clone
    • Method Detail

      • setTypeId

        public void setTypeId​(String typeId)
        Set up the unique identifier for the element's type.
        Parameters:
        typeId - String identifier
      • getTypeId

        public String getTypeId()
        Return unique identifier for the element's type.
        Returns:
        element type id
      • setTypeName

        public void setTypeName​(String typeName)
        Set up the name of this element's type
        Parameters:
        typeName - String name
      • getTypeName

        public String getTypeName()
        Return name of element's type.
        Returns:
        elementTypeName
      • setSuperTypeNames

        public void setSuperTypeNames​(List<String> superTypeNames)
        Set up the list of type names for this type's supertypes.
        Parameters:
        superTypeNames - list of type names
      • getSuperTypeNames

        public List<String> getSuperTypeNames()
        Return the list of type names for this type's supertypes.
        Returns:
        list of type names
      • setTypeVersion

        public void setTypeVersion​(long typeVersion)
        Set up the version number for this element's type
        Parameters:
        typeVersion - version number for the element type.
      • getTypeVersion

        public long getTypeVersion()
        Return the version number for this element's type.
        Returns:
        elementTypeVersion version number for the element type.
      • setTypeDescription

        public void setTypeDescription​(String typeDescription)
        Set up a short description of this element's type.
        Parameters:
        typeDescription - set up the description for this element's type
      • getTypeDescription

        public String getTypeDescription()
        Return the description for this element's type.
        Returns:
        elementTypeDescription String description for the element type
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class Object
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class Object
        Returns:
        int hash code