Class ClassificationRequest
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIRequest
-
- org.odpi.openmetadata.repositoryservices.rest.properties.ClassificationRequest
-
- All Implemented Interfaces:
Serializable
public class ClassificationRequest extends OMRSAPIRequest
ClassificationRequest carries the properties needed to create a classification.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClassificationRequest()Default constructorClassificationRequest(ClassificationRequest template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.ClassificationOrigingetClassificationOrigin()Return the origin of the classification.StringgetClassificationOriginGUID()Return the guid of the entity where a propagate classification came from.InstancePropertiesgetClassificationProperties()Return the list of properties for the new entity.StringgetMetadataCollectionId()Return the metadata collection id for this new entityStringgetMetadataCollectionName()Return the name of the metadata collection for this new relationship.inthashCode()Create a hash code for this element type.voidsetClassificationOrigin(ClassificationOrigin classificationOrigin)Set up the origin of the classification.voidsetClassificationOriginGUID(String classificationOriginGUID)Set up the guid of the entity where a propagate classification came from.voidsetClassificationProperties(InstanceProperties classificationProperties)Set up the initial properties for the entity.voidsetMetadataCollectionId(String metadataCollectionId)Set up the metadata collection id for this new entity.voidsetMetadataCollectionName(String metadataCollectionName)Set up the name of the metadata collection for this new relationship.StringtoString()Standard toString method.
-
-
-
Constructor Detail
-
ClassificationRequest
public ClassificationRequest()
Default constructor
-
ClassificationRequest
public ClassificationRequest(ClassificationRequest template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getClassificationOrigin
public ClassificationOrigin getClassificationOrigin()
Return the origin of the classification.- Returns:
- ClassificationOrigin enum
-
setClassificationOrigin
public void setClassificationOrigin(ClassificationOrigin classificationOrigin)
Set up the origin of the classification.- Parameters:
classificationOrigin- ClassificationOrigin enum
-
getClassificationOriginGUID
public String getClassificationOriginGUID()
Return the guid of the entity where a propagate classification came from.- Returns:
- unique identifier of the classification's origin
-
setClassificationOriginGUID
public void setClassificationOriginGUID(String classificationOriginGUID)
Set up the guid of the entity where a propagate classification came from.- Parameters:
classificationOriginGUID- unique identifier of the classification's origin
-
getClassificationProperties
public InstanceProperties getClassificationProperties()
Return the list of properties for the new entity.- Returns:
- instance properties object
-
setClassificationProperties
public void setClassificationProperties(InstanceProperties classificationProperties)
Set up the initial properties for the entity.- Parameters:
classificationProperties- InstanceProperties object
-
getMetadataCollectionId
public String getMetadataCollectionId()
Return the metadata collection id for this new entity- Returns:
- guid
-
setMetadataCollectionId
public void setMetadataCollectionId(String metadataCollectionId)
Set up the metadata collection id for this new entity. This field is optional for addEntity and mandatory for addExternalEntity.- Parameters:
metadataCollectionId- guid
-
getMetadataCollectionName
public String getMetadataCollectionName()
Return the name of the metadata collection for this new relationship.- Returns:
- name
-
setMetadataCollectionName
public void setMetadataCollectionName(String metadataCollectionName)
Set up the name of the metadata collection for this new relationship.- Parameters:
metadataCollectionName- name
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
-
-