Class ClassificationRequest
java.lang.Object
org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIRequest
org.odpi.openmetadata.repositoryservices.rest.properties.ClassificationRequest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClassificationProxyRequest
ClassificationRequest carries the properties needed to create a classification.
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructorClassificationRequest
(ClassificationRequest 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 origin of the classification.Return the guid of the entity where a propagate classification came from.Return the list of properties for the new entity.Return the metadata collection id for this new entityReturn the name of the metadata collection for this new relationship.int
hashCode()
Create a hash code for this element type.void
setClassificationOrigin
(ClassificationOrigin classificationOrigin) Set up the origin of the classification.void
setClassificationOriginGUID
(String classificationOriginGUID) Set up the guid of the entity where a propagate classification came from.void
setClassificationProperties
(InstanceProperties classificationProperties) Set up the initial properties for the entity.void
setMetadataCollectionId
(String metadataCollectionId) Set up the metadata collection id for this new entity.void
setMetadataCollectionName
(String metadataCollectionName) Set up the name of the metadata collection for this new relationship.toString()
Standard toString method.
-
Constructor Details
-
ClassificationRequest
public ClassificationRequest()Default constructor -
ClassificationRequest
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
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 a propagate classification came from.- Returns:
- unique identifier of the classification's origin
-
setClassificationOriginGUID
Set up the guid of the entity where a propagate classification came from.- Parameters:
classificationOriginGUID
- unique identifier of the classification's origin
-
getClassificationProperties
Return the list of properties for the new entity.- Returns:
- instance properties object
-
setClassificationProperties
Set up the initial properties for the entity.- Parameters:
classificationProperties
- InstanceProperties object
-
getMetadataCollectionId
Return the metadata collection id for this new entity- Returns:
- guid
-
setMetadataCollectionId
Set up the metadata collection id for this new entity. This field is optional for addEntity and mandatory for addExternalEntity.- Parameters:
metadataCollectionId
- guid
-
getMetadataCollectionName
Return the name of the metadata collection for this new relationship.- Returns:
- name
-
setMetadataCollectionName
Set up the name of the metadata collection for this new relationship.- Parameters:
metadataCollectionName
- name
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-