Class Classification
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.InstanceAuditHeader
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification
- All Implemented Interfaces:
Serializable
The Classification class stores information about a classification assigned to an entity. The Classification
has a name and some properties. Some classifications are explicitly added to an entity and other
classifications are propagated to an entity along the relationships connected to it. The origin of the
classification is also stored.
Note: it is not valid to have a classification with a null or blank name.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructor for automated generation tools.Classification
(Classification template) Copy/clone constructor sets up new classification using values from the template -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate that an object is equal depending on their stored values.Return the origin of the classification.Return the guid of the entity where the propagated classification came from.getName()
Return the name of the classification.Returns a collection of the additional stored properties for the classification.int
hashCode()
Return a hash code based on the values of this object.void
setClassificationOrigin
(ClassificationOrigin classificationOrigin) Set up the origin of the classification.void
setClassificationOriginGUID
(String classificationOriginGUID) Set up the guid of the entity where the propagated classification came from.void
Set up the name of the classification.void
setProperties
(InstanceProperties classificationProperties) Set up a collection of the additional stored properties for the classification.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader
getCreatedBy, getCreateTime, getInstanceLicense, getInstanceProvenanceType, getMaintainedBy, getMappingProperties, getMetadataCollectionId, getMetadataCollectionName, getReplicatedBy, getStatus, getStatusOnDelete, getType, getUpdatedBy, getUpdateTime, getVersion, setCreatedBy, setCreateTime, setInstanceLicense, setInstanceProvenanceType, setMaintainedBy, setMappingProperties, setMetadataCollectionId, setMetadataCollectionName, setReplicatedBy, setStatus, setStatusOnDelete, setType, setUpdatedBy, setUpdateTime, setVersion
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
Classification
public Classification()Default constructor for automated generation tools. -
Classification
Copy/clone constructor sets up new classification using values from the template- Parameters:
template
- object to copy
-
-
Method Details
-
getName
Return the name of the classification. This name is the type name defined in a ClassificationDef type definition.- Returns:
- name of classification
-
setName
Set up the name of the classification. This name is the type name defined in a ClassificationDef type definition.- Parameters:
classificationName
- String name
-
getProperties
Returns a collection of the additional stored properties for the classification. If no stored properties are present then null is returned.- Returns:
- properties for the classification
-
setProperties
Set up a collection of the additional stored properties for the classification.- Parameters:
classificationProperties
- properties object
-
getClassificationOrigin
Return the origin of the classification.- Returns:
- ClassificationOrigin enum
-
setClassificationOrigin
Set up the origin of the classification.- Parameters:
classificationOrigin
- ClassificationOrigin enum
-
getClassificationOriginGUID
Return the guid of the entity where the propagated classification came from.- Returns:
- unique identifier of the classification's origin
-
setClassificationOriginGUID
Set up the guid of the entity where the propagated classification came from.- Parameters:
classificationOriginGUID
- unique identifier of the classification's origin
-
toString
Standard toString method.- Overrides:
toString
in classInstanceAuditHeader
- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equals
in classInstanceAuditHeader
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCode
in classInstanceAuditHeader
- Returns:
- in hash code
-