Class ClassificationImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.ClassificationImpl
-
- All Implemented Interfaces:
Serializable,Classification,ExtensibleObject,RegistryObject
public class ClassificationImpl extends RegistryObjectImpl implements Classification, Serializable
Implementation of Classification interface- Author:
- Bobby Bissett
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClassificationImpl()Default constructorClassificationImpl(ClassificationScheme scheme, String name, String value)ClassificationImpl(Concept concept)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassificationSchemegetClassificationScheme()Get the classifiation schemeRegistryObjectgetClassifiedObject()Gets the Object that is being classified.ConceptgetConcept()Gets the Concept that is classifying the object.KeygetKey()Override the behavior in RegistryObject to return a provider generated id.StringgetValue()Gets the value of the classification.booleanisExternal()Returns whether or not this is an external (has value, no concept) or internal (gets value from concept) classification.voidsetClassificationScheme(ClassificationScheme classificationScheme)Sets the ClassificationScheme for this classification.voidsetClassifiedObject(RegistryObject object)Sets the Object that is being classified.voidsetConcept(Concept concept)Sets the Concept for this classification.voidsetValue(String value)Set the classification value.-
Methods inherited from class com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, addSlot, addSlots, areAssociationsLoaded, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getConnection, getDescription, getExternalIdentifiers, getExternalLinks, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getRegistryService, getServiceId, getSubmittingOrganization, isDeleted, isLoaded, isModified, isNew, isRetrieved, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, removeSlot, removeSlots, setAssociations, setAssociationsLoaded, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setIsDeleted, setIsLoaded, setIsModified, setIsNew, setIsRetrieved, setKey, setLifeCycleManager, setName, setObjectType, setRegistryService, setServiceId, setStatusFlags, setSubmittingOrganization, toXML
-
Methods inherited from class com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
getSlot, getSlots
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
-
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getDescription, getExternalIdentifiers, getExternalLinks, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getSubmittingOrganization, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, setAssociations, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setKey, setName, toXML
-
-
-
-
Constructor Detail
-
ClassificationImpl
public ClassificationImpl()
Default constructor
-
ClassificationImpl
public ClassificationImpl(ClassificationScheme scheme, String name, String value)
-
ClassificationImpl
public ClassificationImpl(Concept concept)
-
-
Method Detail
-
getConcept
public Concept getConcept() throws JAXRException
Gets the Concept that is classifying the object.- Specified by:
getConceptin interfaceClassification- Returns:
- the Concept that is classifying the classified object. null if this is a external Classification
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setConcept
public void setConcept(Concept concept) throws JAXRException
Sets the Concept for this classification.- Specified by:
setConceptin interfaceClassification- Parameters:
concept- the Concept that is classifying the classified object.- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getClassificationScheme
public ClassificationScheme getClassificationScheme() throws JAXRException
Get the classifiation scheme- Specified by:
getClassificationSchemein interfaceClassification- Returns:
- the ClassificationScheme used by this Classification
- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
ClassificationScheme
-
setClassificationScheme
public void setClassificationScheme(ClassificationScheme classificationScheme) throws JAXRException
Sets the ClassificationScheme for this classification. If this method is called then you must also call setValue method. This method should be used mutually exclusively with the setConcept method.- Specified by:
setClassificationSchemein interfaceClassification- Parameters:
classificationScheme- the ClassificationScheme used by this Classification- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
getValue
public String getValue() throws JAXRException
Gets the value of the classification. If it is an internal Classification, then return the value of the concept.- Specified by:
getValuein interfaceClassification- Returns:
- the value of the taxonomy element if external Classification; the value of the Concept representing the taxonomy element if internal Classification
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setValue
public void setValue(String value)
Set the classification value. This causes the classification to become external if it is not already.- Specified by:
setValuein interfaceClassification- Parameters:
value- the taxonomy value used by this external Classification
-
getClassifiedObject
public RegistryObject getClassifiedObject() throws JAXRException
Gets the Object that is being classified.- Specified by:
getClassifiedObjectin interfaceClassification- Returns:
- the RegistryObject that is classified by this Classification
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setClassifiedObject
public void setClassifiedObject(RegistryObject object) throws JAXRException
Sets the Object that is being classified.- Specified by:
setClassifiedObjectin interfaceClassification- Parameters:
object- the RegistryObject that is classified by this Classification- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
isExternal
public boolean isExternal()
Returns whether or not this is an external (has value, no concept) or internal (gets value from concept) classification.- Specified by:
isExternalin interfaceClassification- Returns:
trueif this is an external Classification;falseotherwise
-
getKey
public Key getKey() throws JAXRException
Override the behavior in RegistryObject to return a provider generated id.- Specified by:
getKeyin interfaceRegistryObject- Overrides:
getKeyin classRegistryObjectImpl- Returns:
- the Key for this object
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
-