com.sun.xml.registry.uddi.infomodel
Class ClassificationImpl

java.lang.Object
  extended by com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
      extended by com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
          extended by 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
ClassificationImpl()
          Default constructor
ClassificationImpl(ClassificationScheme scheme, String name, String value)
           
ClassificationImpl(Concept concept)
           
 
Method Summary
 ClassificationScheme getClassificationScheme()
          Get the classifiation scheme
 RegistryObject getClassifiedObject()
          Gets the Object that is being classified.
 Concept getConcept()
          Gets the Concept that is classifying the object.
 Key getKey()
          Override the behavior in RegistryObject to return a provider generated id.
 String getValue()
          Gets the value of the classification.
 boolean isExternal()
          Returns whether or not this is an external (has value, no concept) or internal (gets value from concept) classification.
 void setClassificationScheme(ClassificationScheme classificationScheme)
          Sets the ClassificationScheme for this classification.
 void setClassifiedObject(RegistryObject object)
          Sets the Object that is being classified.
 void setConcept(Concept concept)
          Sets the Concept for this classification.
 void setValue(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.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
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
 

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:
getConcept in interface Classification
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:
setConcept in interface Classification
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:
getClassificationScheme in interface Classification
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:
setClassificationScheme in interface Classification
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:
getValue in interface Classification
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:
setValue in interface Classification
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:
getClassifiedObject in interface Classification
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:
setClassifiedObject in interface Classification
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:
isExternal in interface Classification
Returns:
true if this is an external Classification; false otherwise

getKey

public Key getKey()
           throws JAXRException
Override the behavior in RegistryObject to return a provider generated id.

Specified by:
getKey in interface RegistryObject
Overrides:
getKey in class RegistryObjectImpl
Returns:
the Key for this object
Throws:
JAXRException - If the JAXR provider encounters an internal error


Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.