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
ElementStub is used to identify an element.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorElementStub(ElementControlHeader template) Copy/clone constructor.ElementStub(ElementHeader template) Copy/clone constructor.ElementStub(ElementStub template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.Return the unique name - if knowninthashCode()Hash of propertiesvoidsetUniqueName(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, setGUIDMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
getOrigin, getStatus, getType, getVersions, setOrigin, setStatus, setType, setVersionsMethods 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
-
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:
toStringin classElementHeader- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classElementHeader- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCodein classElementHeader- Returns:
- int
-