Class MetadataElement
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.accessservices.assetconsumer.properties.MetadataElement
public class MetadataElement
extends org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
Description of an open metadata element (entity instance) retrieved from the open metadata repositories.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor used by subclassesMetadataElement(MetadataElement template) Copy/clone constructorMetadataElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return a collection of the properties for the element.inthashCode()Create a hash code for this element type.voidsetProperties(Map<String, Object> properties) Set up the properties for the element.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
getClassifications, getGUID, setClassifications, setGUIDMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
getOrigin, getStatus, getType, getVersions, setOrigin, setStatus, setType, setVersionsMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
MetadataElement
public MetadataElement()Default constructor used by subclasses -
MetadataElement
Copy/clone constructor- Parameters:
template- template to copy
-
MetadataElement
public MetadataElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader template) Copy/clone constructor- Parameters:
template- template to copy
-
-
Method Details
-
setProperties
Set up the properties for the element. If no stored properties are present then null is returned.- Parameters:
properties- properties for the classification
-
getProperties
Return a collection of the properties for the element. If no stored properties are present then null is returned.- Returns:
- properties map
-
toString
Standard toString method.- Overrides:
toStringin classorg.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classorg.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCodein classorg.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader- Returns:
- int hash code
-