Class ElementStub
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CatalogTarget
,GovernanceDelegation
,GovernanceLink
ElementStub is used to identify an element.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorElementStub
(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.connectors.properties.beans.ElementHeader
getClassifications, getGUID, setClassifications, setGUID
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
getOrigin, getStatus, getType, getVersions, setOrigin, setStatus, setType, setVersions
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
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
-
-
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
-