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,javax.xml.registry.infomodel.Classification,javax.xml.registry.infomodel.ExtensibleObject,javax.xml.registry.infomodel.RegistryObject
public class ClassificationImpl extends RegistryObjectImpl implements javax.xml.registry.infomodel.Classification, Serializable
Implementation of Classification interface- Author:
- Bobby Bissett
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClassificationImpl()Default constructorClassificationImpl(javax.xml.registry.infomodel.ClassificationScheme scheme, String name, String value)ClassificationImpl(javax.xml.registry.infomodel.Concept concept)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.registry.infomodel.ClassificationSchemegetClassificationScheme()Get the classifiation schemejavax.xml.registry.infomodel.RegistryObjectgetClassifiedObject()Gets the Object that is being classified.javax.xml.registry.infomodel.ConceptgetConcept()Gets the Concept that is classifying the object.javax.xml.registry.infomodel.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(javax.xml.registry.infomodel.ClassificationScheme classificationScheme)Sets the ClassificationScheme for this classification.voidsetClassifiedObject(javax.xml.registry.infomodel.RegistryObject object)Sets the Object that is being classified.voidsetConcept(javax.xml.registry.infomodel.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(javax.xml.registry.infomodel.ClassificationScheme scheme, String name, String value)
-
ClassificationImpl
public ClassificationImpl(javax.xml.registry.infomodel.Concept concept)
-
-
Method Detail
-
getConcept
public javax.xml.registry.infomodel.Concept getConcept() throws javax.xml.registry.JAXRExceptionGets the Concept that is classifying the object.- Specified by:
getConceptin interfacejavax.xml.registry.infomodel.Classification- Throws:
javax.xml.registry.JAXRException
-
setConcept
public void setConcept(javax.xml.registry.infomodel.Concept concept) throws javax.xml.registry.JAXRExceptionSets the Concept for this classification.- Specified by:
setConceptin interfacejavax.xml.registry.infomodel.Classification- Throws:
javax.xml.registry.JAXRException
-
getClassificationScheme
public javax.xml.registry.infomodel.ClassificationScheme getClassificationScheme() throws javax.xml.registry.JAXRExceptionGet the classifiation scheme- Specified by:
getClassificationSchemein interfacejavax.xml.registry.infomodel.Classification- Throws:
javax.xml.registry.JAXRException
-
setClassificationScheme
public void setClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme classificationScheme) throws javax.xml.registry.JAXRExceptionSets 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 interfacejavax.xml.registry.infomodel.Classification- Throws:
javax.xml.registry.JAXRException
-
getValue
public String getValue() throws javax.xml.registry.JAXRException
Gets the value of the classification. If it is an internal Classification, then return the value of the concept.- Specified by:
getValuein interfacejavax.xml.registry.infomodel.Classification- Throws:
javax.xml.registry.JAXRException
-
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 interfacejavax.xml.registry.infomodel.Classification
-
getClassifiedObject
public javax.xml.registry.infomodel.RegistryObject getClassifiedObject() throws javax.xml.registry.JAXRExceptionGets the Object that is being classified.- Specified by:
getClassifiedObjectin interfacejavax.xml.registry.infomodel.Classification- Throws:
javax.xml.registry.JAXRException
-
setClassifiedObject
public void setClassifiedObject(javax.xml.registry.infomodel.RegistryObject object) throws javax.xml.registry.JAXRExceptionSets the Object that is being classified.- Specified by:
setClassifiedObjectin interfacejavax.xml.registry.infomodel.Classification- Throws:
javax.xml.registry.JAXRException
-
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 interfacejavax.xml.registry.infomodel.Classification
-
getKey
public javax.xml.registry.infomodel.Key getKey() throws javax.xml.registry.JAXRExceptionOverride the behavior in RegistryObject to return a provider generated id.- Specified by:
getKeyin interfacejavax.xml.registry.infomodel.RegistryObject- Overrides:
getKeyin classRegistryObjectImpl- Throws:
javax.xml.registry.JAXRException
-
-