public interface Classification extends RegistryObject
Figure 1 shows how a Classification classifies a RegistryObject using a ClassificationScheme.
When a Classification instance is used to classify a RegistryObject using an internal taxonomy it is referred to as an internal Classification. A client must call the setConcept method on a Classification and define a reference to a Concept instance from the Classification instance in order for that Classification to use an internal taxonomy. It is not necessary for the client to call setClassificationScheme for internal Classifications since the classifying Concept already knows it root ClassificationScheme.
RegistryObject
,
Concept
Modifier and Type | Method and Description |
---|---|
ClassificationScheme |
getClassificationScheme()
Gets the ClassificationScheme that is used in classifying the object.
|
RegistryObject |
getClassifiedObject()
Gets the Object that is being classified.
|
Concept |
getConcept()
Gets the Concept that is classifying the object.
|
java.lang.String |
getValue()
Gets the taxonomy value for this Classification.
|
boolean |
isExternal()
Returns true if this is an external classification.
|
void |
setClassificationScheme(ClassificationScheme classificationScheme)
Sets the ClassificationScheme for this external classification.
|
void |
setClassifiedObject(RegistryObject classifiedObject)
Sets the object that is being classified.
|
void |
setConcept(Concept concept)
Sets the concept for this internal classification.
|
void |
setValue(java.lang.String value)
Sets the taxonomy value for this external Classification.
|
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getDescription, getExternalIdentifiers, getExternalLinks, getKey, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getSubmittingOrganization, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, setAssociations, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setKey, setName, toXML
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
Concept getConcept() throws JAXRException
JAXRException
- If the Jakarta XML Registries provider encounters an internal errorvoid setConcept(Concept concept) throws JAXRException
This method should be used mutually exclusively with the setClassificationScheme method.
concept
- the Concept that is classifying the classified object.JAXRException
- If the Jakarta XML Registries provider encounters an internal errorClassificationScheme getClassificationScheme() throws JAXRException
JAXRException
- If the Jakarta XML Registries provider encounters an internal errorClassificationScheme
void setClassificationScheme(ClassificationScheme classificationScheme) throws JAXRException
If this method is called then you must also call setValue method. This method should be used mutually exclusively with the setConcept method.
classificationScheme
- the ClassificationScheme used by this ClassificationJAXRException
- If the Jakarta XML Registries provider encounters an internal errorjava.lang.String getValue() throws JAXRException
JAXRException
- If the Jakarta XML Registries provider encounters an internal errorvoid setValue(java.lang.String value) throws JAXRException
value
- the taxonomy value used by this external ClassificationJAXRException
- If the Jakarta XML Registries provider encounters an internal errorRegistryObject getClassifiedObject() throws JAXRException
JAXRException
- If the Jakarta XML Registries provider encounters an internal errorvoid setClassifiedObject(RegistryObject classifiedObject) throws JAXRException
classifiedObject
- the RegistryObject that is classified by this ClassificationJAXRException
- If the Jakarta XML Registries provider encounters an internal errorboolean isExternal() throws JAXRException
true
if this is an external Classification; false
otherwiseJAXRException
- If the Jakarta XML Registries provider encounters an internal error