Class ElementHeader
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GovernanceClassificationBase,InformalTag,LatestChange,Like,Meaning,Rating,Referenceable,SearchKeyword
public class ElementHeader extends PropertyBase
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<ElementClassification>classificationsprotected Map<String,Object>extendedPropertiesprotected Stringguidprotected ElementTypetypeprotected Stringurl-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
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 asset.Map<String,Object>getExtendedProperties()Return the properties that have been defined for a subtype of this object that are not supported explicitly by this bean.StringgetGUID()Return the unique id for the properties object.ElementTypegetType()Return the element type properties for this properties object.StringgetURL()Returns the URL to access the properties object in the metadata repository.inthashCode()Create a hash code for this element type.voidsetClassifications(List<ElementClassification> classifications)Set up the classifications associated with this connection.voidsetExtendedProperties(Map<String,Object> extendedProperties)Set up the properties that have been defined for a subtype of this object that are not supported explicitly by this bean.voidsetGUID(String guid)Set up the guid for the element.voidsetType(ElementType type)Set up the type of this element.voidsetURL(String url)Set up the URL of this element.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Field Detail
-
type
protected ElementType type
-
guid
protected String guid
-
url
protected String url
-
classifications
protected List<ElementClassification> classifications
-
-
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
-
getURL
public String getURL()
Returns the URL to access the properties object in the metadata repository. If no url is available then null is returned.- Returns:
- String URL
-
setURL
public void setURL(String url)
Set up the URL of this element.- Parameters:
url- String
-
getClassifications
public List<ElementClassification> getClassifications()
Return the list of classifications associated with the asset. This is an list and the pointers are set to the start of the list of classifications- Returns:
- Classifications list of classifications
-
setClassifications
public void setClassifications(List<ElementClassification> classifications)
Set up the classifications associated with this connection.- Parameters:
classifications- list of classifications
-
getExtendedProperties
public Map<String,Object> getExtendedProperties()
Return the properties that have been defined for a subtype of this object that are not supported explicitly by this bean.- Returns:
- property map
-
setExtendedProperties
public void setExtendedProperties(Map<String,Object> extendedProperties)
Set up the properties that have been defined for a subtype of this object that are not supported explicitly by this bean.- Parameters:
extendedProperties- property map
-
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.- Overrides:
equalsin classPropertyBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classPropertyBase- Returns:
- int hash code
-
-