Class ElementHeader
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetconsumer.elements.ElementHeader
-
- All Implemented Interfaces:
Serializable
public class ElementHeader extends Object implements Serializable
ElementHeader provides the common identifier and type information for all properties objects that link off of the asset and have a guid associated with them. This typically means it is represented by an entity in the metadata repository. In addition are useful attachments that are found connected to the metadata element.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementHeader()Default constructor used by subclassesElementHeader(ElementHeader template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.List<ElementClassification>getClassifications()Return the list of classifications associated with the metadata element.StringgetGUID()Return the unique id for the properties object.ElementOrigingetOrigin()Return information about the origin of the element.ElementTypegetType()Return the element type properties for this properties object.ElementVersionsgetVersions()Return detail of the element's current version and the users responsible for maintaining it.inthashCode()Create a hash code for this element type.voidsetClassifications(List<ElementClassification> classifications)Set up the classifications associated with this metadata element.voidsetGUID(String guid)Set up the guid for the element.voidsetOrigin(ElementOrigin origin)Set up information about the origin of the element.voidsetType(ElementType type)Set up the type of this element.voidsetVersions(ElementVersions versions)Set up detail of the element's current version and the users responsible for maintaining it.StringtoString()Standard toString method.
-
-
-
Constructor Detail
-
ElementHeader
public ElementHeader()
Default constructor used by subclasses
-
ElementHeader
public ElementHeader(ElementHeader template)
Copy/clone constructor.- Parameters:
template- element to copy
-
-
Method Detail
-
getType
public ElementType getType()
Return the element type properties for this properties object. These values are set up by the metadata repository and define details to the metadata entity used to represent this element.- Returns:
- ElementType type information.
-
setType
public void setType(ElementType type)
Set up the type of this element.- Parameters:
type- element type properties
-
getGUID
public String getGUID()
Return the unique id for the properties object. Null means no guid is assigned.- Returns:
- String unique id
-
setGUID
public void setGUID(String guid)
Set up the guid for the element.- Parameters:
guid- String unique identifier
-
getOrigin
public ElementOrigin getOrigin()
Return information about the origin of the element. This includes the metadata collection and license.- Returns:
- element origin object
-
setOrigin
public void setOrigin(ElementOrigin origin)
Set up information about the origin of the element. This includes the metadata collection and license.- Parameters:
origin- element origin object
-
getVersions
public ElementVersions getVersions()
Return detail of the element's current version and the users responsible for maintaining it.- Returns:
- ElementVersion object
-
setVersions
public void setVersions(ElementVersions versions)
Set up detail of the element's current version and the users responsible for maintaining it.- Parameters:
versions- ElementVersion object
-
getClassifications
public List<ElementClassification> getClassifications()
Return the list of classifications associated with the metadata element.- Returns:
- Classifications list of classifications
-
setClassifications
public void setClassifications(List<ElementClassification> classifications)
Set up the classifications associated with this metadata element.- Parameters:
classifications- list of classifications
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
-
-