Class ElementStub

  • All Implemented Interfaces:
    Serializable

    public class ElementStub
    extends ElementHeader
    ElementStub is used to identify an element in the metadata store. It includes the identifier, typename and unique (qualified) name.
    See Also:
    Serialized Form
    • Constructor Detail

      • ElementStub

        public ElementStub()
        Default constructor
      • ElementStub

        public ElementStub​(ElementStub template)
        Copy/clone constructor. Note, this is a deep copy
        Parameters:
        template - object to copy
      • ElementStub

        public ElementStub​(ElementHeader template)
        Copy/clone constructor. Note, this is a deep copy
        Parameters:
        template - object to copy
    • Method Detail

      • getUniqueName

        public String getUniqueName()
        Return the unique name - if known
        Returns:
        string name
      • setUniqueName

        public void setUniqueName​(String uniqueName)
        Set up unique name - if known
        Parameters:
        uniqueName - string name
      • toString

        public String toString()
        JSON-style toString.
        Overrides:
        toString in class ElementHeader
        Returns:
        list of properties and their values.
      • equals

        public boolean equals​(Object objectToCompare)
        Equals method that returns true if containing properties are the same.
        Overrides:
        equals in class ElementHeader
        Parameters:
        objectToCompare - object to compare
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Hash of properties
        Overrides:
        hashCode in class ElementHeader
        Returns:
        int