Class InstanceHeader

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    EntitySummary, Relationship

    public abstract class InstanceHeader
    extends InstanceAuditHeader
    InstanceHeader manages the attributes that are common to entities and relationship instances. This includes its unique identifier and URL along with information about its type, provenance and change history.
    See Also:
    Serialized Form
    • Constructor Detail

      • InstanceHeader

        public InstanceHeader()
        Default Constructor sets the instance to nulls.
      • InstanceHeader

        public InstanceHeader​(InstanceHeader template)
        Copy/clone constructor set the value to those supplied in the template.
        Parameters:
        template - Instance header
    • Method Detail

      • getInstanceURL

        public String getInstanceURL()
        Return the URL for this instance (or null if the metadata repository does not support instance URLs).
        Returns:
        String URL
      • setInstanceURL

        public void setInstanceURL​(String instanceURL)
        Set up the URL for this instance (or null if the metadata repository does not support instance URLs).
        Parameters:
        instanceURL - String URL
      • getGUID

        public String getGUID()
        Return the unique identifier for this instance.
        Returns:
        guid String unique identifier
      • setGUID

        public void setGUID​(String guid)
        Set up the unique identifier for this instance.
        Parameters:
        guid - String unique identifier
      • getReIdentifiedFromGUID

        public String getReIdentifiedFromGUID()
        Return the unique identifier by which this instance was previously known.
        Returns:
        guid String unique identifier
      • setReIdentifiedFromGUID

        public void setReIdentifiedFromGUID​(String reIdentifiedFromGUID)
        Set up the unique identifier by which t his instance was previously known.
        Parameters:
        reIdentifiedFromGUID - String unique identifier
      • equals

        public boolean equals​(Object objectToCompare)
        Validate that an object is equal depending on their stored values.
        Overrides:
        equals in class InstanceAuditHeader
        Parameters:
        objectToCompare - object
        Returns:
        boolean result
      • hashCode

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