Class ElementStub
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetowner.metadataelements.ElementHeader
-
- org.odpi.openmetadata.accessservices.assetowner.metadataelements.ElementStub
-
- All Implemented Interfaces:
Serializable
public class ElementStub extends ElementHeader
ElementStub is used to identify an element in the metadata store. It includes the identifier, typename and unique (qualified) name.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementStub()Default constructorElementStub(ElementHeader template)Copy/clone constructor.ElementStub(ElementStub template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Equals method that returns true if containing properties are the same.StringgetUniqueName()Return the unique name - if knowninthashCode()Hash of propertiesvoidsetUniqueName(String uniqueName)Set up unique name - if knownStringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.accessservices.assetowner.metadataelements.ElementHeader
getClassifications, getGUID, getMeanings, getOrigin, getSecurityTags, getType, setClassifications, setGUID, setMeanings, setOrigin, setSecurityTags, setType
-
-
-
-
Constructor Detail
-
ElementStub
public ElementStub()
Default constructor
-
ElementStub
public ElementStub(ElementStub template)
Copy/clone constructor. Note, this is a deep copy- Parameters:
template- object to copy
-
ElementStub
public ElementStub(ElementHeader template)
Copy/clone constructor. Note, this is a deep copy- Parameters:
template- object to copy
-
-
Method Detail
-
getUniqueName
public String getUniqueName()
Return the unique name - if known- Returns:
- string name
-
setUniqueName
public void setUniqueName(String uniqueName)
Set up unique name - if known- Parameters:
uniqueName- string name
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classElementHeader- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
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
-
-