Class ClassificationEntityExtension
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceElementHeader
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.ClassificationEntityExtension
- All Implemented Interfaces:
Serializable
ClassificationEntityExtension is used to represent a single classification for an entity.
It includes the details of the classification and an entity proxy to define which entity
it should be attached to. This version of classification is used in open metadata archives
and events where the complete entity is either not available, or needs to be augmented.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanValidate that an object is equal depending on their stored values.Return the classification for the entity.Return which entity to attach this classification to.inthashCode()Return a hash code based on the values of this object.voidsetClassification(Classification classification) Set up the classification for the entity.voidsetEntityToClassify(EntityProxy entityToClassify) Set up which entity to attach this classification to.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Field Details
-
CURRENT_CLASSIFICATION_EXT_HEADER_VERSION
public static final long CURRENT_CLASSIFICATION_EXT_HEADER_VERSION- See Also:
-
-
Constructor Details
-
ClassificationEntityExtension
public ClassificationEntityExtension()Default constructor -
ClassificationEntityExtension
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getClassification
Return the classification for the entity.- Returns:
- classification object
-
setClassification
Set up the classification for the entity.- Parameters:
classification- classification object
-
getEntityToClassify
Return which entity to attach this classification to.- Returns:
- entity proxy object
-
setEntityToClassify
Set up which entity to attach this classification to.- Parameters:
entityToClassify- entity proxy object
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values.- Overrides:
equalsin classRepositoryElementHeader- Parameters:
objectToCompare- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCodein classRepositoryElementHeader- Returns:
- in hash code
-