Class ElementType

  • All Implemented Interfaces:
    Serializable

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

      • ElementType

        public ElementType()
        Default constructor
      • ElementType

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

      • setElementTypeId

        public void setElementTypeId​(String elementTypeId)
        Set up the unique identifier for the element's type.
        Parameters:
        elementTypeId - String identifier
      • getElementTypeId

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

        public void setElementTypeName​(String elementTypeName)
        Set up the name of this element's type
        Parameters:
        elementTypeName - String name
      • getElementTypeName

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

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

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

        public void setElementTypeVersion​(long elementTypeVersion)
        Set up the version number for this element's type
        Parameters:
        elementTypeVersion - version number for the element type.
      • getElementTypeVersion

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

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

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

        public void setElementValidProperties​(List<String> elementValidProperties)
        Set up the list of properties that valid for this type of element. Most properties are optional so if a property does not appear in its base properties then it is not set in the open metadata store.
        Parameters:
        elementValidProperties - list of property names
      • getElementValidProperties

        public List<String> getElementValidProperties()
        Return the list of properties that valid for this type of element. Most properties are optional so if a property does not appear in its base properties then it is not set in the open metadata store.
        Returns:
        list of property names
      • 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