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
Modifier and TypeFieldDescriptionstatic final long
Version of the header used in this release -
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate that an object is equal depending on their stored values.Return the classification for the entity.Return which entity to attach this classification to.int
hashCode()
Return a hash code based on the values of this object.void
setClassification
(Classification classification) Set up the classification for the entity.void
setEntityToClassify
(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_VERSIONVersion of the header used in this release- 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:
equals
in classRepositoryElementHeader
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCode
in classRepositoryElementHeader
- Returns:
- in hash code
-