Class ElementHeader
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
- Direct Known Subclasses:
ElementStub,LineageRelationshipEvidence,MetadataRelationship
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.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor used by subclassesElementHeader(ElementControlHeader template) Copy/clone constructor.ElementHeader(ElementHeader template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the list of classifications associated with the metadata element.getGUID()Return the unique id for the properties object.inthashCode()Create a hash code for this element type.voidsetClassifications(List<ElementClassification> classifications) Set up the classifications associated with this metadata element.voidSet up the guid for the element.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Constructor Details
-
ElementHeader
public ElementHeader()Default constructor used by subclasses -
ElementHeader
Copy/clone constructor.- Parameters:
template- element to copy
-
ElementHeader
Copy/clone constructor.- Parameters:
template- element to copy
-
-
Method Details
-
getGUID
Return the unique id for the properties object. Null means no guid is assigned.- Returns:
- String unique id
-
setGUID
Set up the guid for the element.- Parameters:
guid- String unique identifier
-
getClassifications
Return the list of classifications associated with the metadata element.- Returns:
- Classifications list of classifications
-
setClassifications
Set up the classifications associated with this metadata element.- Parameters:
classifications- list of classifications
-
toString
Standard toString method.- Overrides:
toStringin classElementControlHeader- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classElementControlHeader- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCodein classElementControlHeader- Returns:
- int hash code
-