Class OpenMetadataElementStub
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElementStub
ElementStub is used to identify an element.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor.OpenMetadataElementStub
(ElementControlHeader template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the list of classifications associated with the metadata element.getGUID()
Return the unique id for the metadata element.Return the unique name - if knownint
hashCode()
Hash of propertiesvoid
setClassifications
(List<AttachedClassification> classifications) Set up the list of classifications associated with the metadata element.void
Set up the unique id for the metadata element.void
setUniqueName
(String uniqueName) Set up unique name - if knowntoString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Constructor Details
-
OpenMetadataElementStub
public OpenMetadataElementStub()Default constructor -
OpenMetadataElementStub
Copy/clone constructor. Note, this is a deep copy- Parameters:
template
- object to copy
-
OpenMetadataElementStub
Copy/clone constructor.- Parameters:
template
- element to copy
-
-
Method Details
-
getGUID
Return the unique id for the metadata element.- Returns:
- String unique identifier
-
setGUID
Set up the unique id for the metadata 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 list of classifications associated with the metadata element.- Parameters:
classifications
- list of classifications
-
getUniqueName
Return the unique name - if known- Returns:
- string name
-
setUniqueName
Set up unique name - if known- Parameters:
uniqueName
- string name
-
toString
JSON-style toString.- Overrides:
toString
in classElementControlHeader
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classElementControlHeader
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCode
in classElementControlHeader
- Returns:
- int
-