Class ElementStub
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub
- Direct Known Subclasses:
GovernanceDelegation
,GovernanceLink
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
ConstructorDescriptionDefault constructorElementStub
(ElementControlHeader template) Copy/clone constructor.ElementStub
(ElementHeader template) Copy/clone constructor.ElementStub
(ElementStub template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the unique name - if knownint
hashCode()
Hash of propertiesvoid
setUniqueName
(String uniqueName) Set up unique name - if knowntoString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
getClassifications, getGUID, setClassifications, setGUID
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Constructor Details
-
ElementStub
public ElementStub()Default constructor -
ElementStub
Copy/clone constructor. Note, this is a deep copy- Parameters:
template
- object to copy
-
ElementStub
Copy/clone constructor. Note, this is a deep copy- Parameters:
template
- object to copy
-
ElementStub
Copy/clone constructor.- Parameters:
template
- element to copy
-
-
Method Details
-
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 classElementHeader
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classElementHeader
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCode
in classElementHeader
- Returns:
- int
-