Class ElementHeader

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ElementBase, ElementStub

    public class ElementHeader
    extends ElementControlHeader
    ElementHeader provides the common identifier and type information for all properties objects that link off of the asset and have a guid associated with them. This typically means it is represented by an entity in the metadata repository.
    See Also:
    Serialized Form
    • Constructor Detail

      • ElementHeader

        public ElementHeader()
        Default constructor used by subclasses
      • ElementHeader

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

      • getGUID

        public java.lang.String getGUID()
        Return the unique id for the properties object. Null means no guid is assigned.
        Returns:
        String unique id
      • setGUID

        public void setGUID​(java.lang.String guid)
        Set up the guid for the element.
        Parameters:
        guid - String unique identifier
      • getClassifications

        public java.util.List<ElementClassification> getClassifications()
        Return the list of classifications associated with the metadata element.
        Returns:
        Classifications list of classifications
      • setClassifications

        public void setClassifications​(java.util.List<ElementClassification> classifications)
        Set up the classifications associated with this metadata element.
        Parameters:
        classifications - list of classifications
      • toString

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

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class ElementControlHeader
        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 ElementControlHeader
        Returns:
        int hash code