Class ElementBase
- 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.ElementBase
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InformalTag,Like,Meaning,Rating,Referenceable,SearchKeyword
public class ElementBase extends ElementHeader
ElementBase 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 Map<String,Object>extendedPropertiesprotected Stringurl-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description ElementBase()Default constructor used by subclassesElementBase(ElementBase 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.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.StringgetURL()Returns the URL to access the properties object in the metadata repository.inthashCode()Create a hash code for this element type.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.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.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 Detail
-
ElementBase
public ElementBase()
Default constructor used by subclasses
-
ElementBase
public ElementBase(ElementBase template)
Copy/clone constructor.- Parameters:
template- element to copy
-
-
Method Detail
-
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
-
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.- Overrides:
toStringin classElementHeader- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classElementHeader- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classElementHeader- Returns:
- int hash code
-
-