Class ElementBase
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
- Direct Known Subclasses:
Referenceable
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.
-
Field Summary
FieldsFields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor used by subclassesElementBase
(ElementBase template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the properties that have been defined for a subtype of this object that are not supported explicitly by this bean.getGUID()
Return the unique id for the properties object.int
hashCode()
Create a hash code for this element type.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.void
Set up the guid for the element.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
Field Details
-
extendedProperties
-
-
Constructor Details
-
ElementBase
public ElementBase()Default constructor used by subclasses -
ElementBase
Copy/clone constructor.- Parameters:
template
- element to copy
-
-
Method Details
-
getGUID
Return the unique id for the properties object. Null means no guid is assigned.- Returns:
- String unique id
-
setGUID
Set up the guid for the element.- Parameters:
guid
- String unique identifier
-
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
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
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classPropertyBase
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classPropertyBase
- Returns:
- int hash code
-