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

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.RegistryEntryImpl
              extended by com.sun.xml.registry.uddi.infomodel.ClassificationSchemeImpl
All Implemented Interfaces:
Serializable, ClassificationScheme, ExtensibleObject, RegistryEntry, RegistryObject, Versionable

public class ClassificationSchemeImpl
extends RegistryEntryImpl
implements ClassificationScheme, Serializable

Implementation of ClassificationScheme interface

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.xml.registry.infomodel.ClassificationScheme
VALUE_TYPE_EMBEDDED_PATH, VALUE_TYPE_NON_UNIQUE, VALUE_TYPE_UNIQUE
 
Fields inherited from interface javax.xml.registry.infomodel.RegistryEntry
STABILITY_DYNAMIC, STABILITY_DYNAMIC_COMPATIBLE, STABILITY_STATIC, STATUS_APPROVED, STATUS_DEPRECATED, STATUS_SUBMITTED, STATUS_WITHDRAWN
 
Constructor Summary
ClassificationSchemeImpl()
           
ClassificationSchemeImpl(Concept concept)
           
ClassificationSchemeImpl(Key key)
           
ClassificationSchemeImpl(Key key, String description, String name)
           
ClassificationSchemeImpl(String name, String description)
           
ClassificationSchemeImpl(String key, String description, String name)
           
 
Method Summary
 void addChildConcept(Concept concept)
          Add a child Concept
 void addChildConcepts(Collection concepts)
          Add a Collection of Concept children.
 void addExternalLink(ExternalLink link)
          Overrides behavior in RegistryObjectImpl to allow adding external links.
 void addExternalLinks(Collection links)
          Overrides behavior in RegistryObjectImpl to allow adding external links.
 boolean childrenLoaded()
           
 int getChildConceptCount()
          Get number of children
 Collection getChildrenConcepts()
          Get all immediate children Concepts
 Collection getDescendantConcepts()
          Get all descendant Concepts
 int getValueType()
          Level 1 method
 boolean isExternal()
          Determines whether this ClassificationScheme is an external ClassificationScheme or an internal ClassificationScheme.
 boolean isPredefined()
           
 void removeChildConcept(Concept concept)
          Remove child concept
 void removeChildConcepts(Collection concepts)
          Remove a Collection of children Concepts.
 void setChildrenLoaded(boolean loaded)
           
 void setExternalLinks(Collection links)
          Overrides behavior in RegistryObjectImpl to allow adding external links.
 void setPredefined(boolean predefined)
           
 void setValueType(int valueType)
          Level 1 method
 
Methods inherited from class com.sun.xml.registry.uddi.infomodel.RegistryEntryImpl
getExpiration, getMajorVersion, getMinorVersion, getStability, getStatus, getUserVersion, setExpiration, setMajorVersion, setMinorVersion, setStability, setUserVersion
 
Methods inherited from class com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addSlot, addSlots, areAssociationsLoaded, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getConnection, getDescription, getExternalIdentifiers, getExternalLinks, getKey, 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, 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.RegistryEntry
getExpiration, getStability, getStatus, setExpiration, setStability
 
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, 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, setKey, setName, toXML
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
 
Methods inherited from interface javax.xml.registry.infomodel.Versionable
getMajorVersion, getMinorVersion, getUserVersion, setMajorVersion, setMinorVersion, setUserVersion
 

Constructor Detail

ClassificationSchemeImpl

public ClassificationSchemeImpl()

ClassificationSchemeImpl

public ClassificationSchemeImpl(Key key)

ClassificationSchemeImpl

public ClassificationSchemeImpl(Concept concept)
                         throws JAXRException
Throws:
JAXRException

ClassificationSchemeImpl

public ClassificationSchemeImpl(Key key,
                                String description,
                                String name)

ClassificationSchemeImpl

public ClassificationSchemeImpl(String key,
                                String description,
                                String name)

ClassificationSchemeImpl

public ClassificationSchemeImpl(String name,
                                String description)
Method Detail

addChildConcept

public void addChildConcept(Concept concept)
                     throws JAXRException
Add a child Concept

Specified by:
addChildConcept in interface ClassificationScheme
Parameters:
concept - the concept being added as a child of this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

addChildConcepts

public void addChildConcepts(Collection concepts)
                      throws JAXRException
Add a Collection of Concept children. Treat null parameter as empty collection.

Specified by:
addChildConcepts in interface ClassificationScheme
Parameters:
concepts - the Collection of Concepts being added as a children of this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeChildConcept

public void removeChildConcept(Concept concept)
                        throws JAXRException
Remove child concept

Specified by:
removeChildConcept in interface ClassificationScheme
Parameters:
concept - the concept being removed as a child Concept of this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeChildConcepts

public void removeChildConcepts(Collection concepts)
                         throws JAXRException
Remove a Collection of children Concepts. Treat null paramter as empty collection.

Specified by:
removeChildConcepts in interface ClassificationScheme
Parameters:
concepts - the Collection of Concepts being removed as children Concepts of this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

getChildConceptCount

public int getChildConceptCount()
                         throws JAXRException
Get number of children

Specified by:
getChildConceptCount in interface ClassificationScheme
Returns:
the number of children Concepts
Throws:
JAXRException - If the JAXR provider encounters an internal error

getChildrenConcepts

public Collection getChildrenConcepts()
                               throws JAXRException
Get all immediate children Concepts

Specified by:
getChildrenConcepts in interface ClassificationScheme
Returns:
Collection of Concept instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
Concept

getDescendantConcepts

public Collection getDescendantConcepts()
                                 throws JAXRException
Get all descendant Concepts

Specified by:
getDescendantConcepts in interface ClassificationScheme
Returns:
Collection of Concept instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
Concept

isExternal

public boolean isExternal()
Description copied from interface: ClassificationScheme
Determines whether this ClassificationScheme is an external ClassificationScheme or an internal ClassificationScheme.

Capability Level: 0

Specified by:
isExternal in interface ClassificationScheme
Returns:
trueif this is an external ClassificationScheme; false otherwise

isPredefined

public boolean isPredefined()

setPredefined

public void setPredefined(boolean predefined)

childrenLoaded

public boolean childrenLoaded()

setChildrenLoaded

public void setChildrenLoaded(boolean loaded)

addExternalLink

public void addExternalLink(ExternalLink link)
                     throws JAXRException
Overrides behavior in RegistryObjectImpl to allow adding external links. If an external link already exists, this method throws UnsupportedCapabilityException. See appendix D of specification.

Specified by:
addExternalLink in interface RegistryObject
Overrides:
addExternalLink in class RegistryObjectImpl
Throws:
JAXRException - If the JAXR provider encounters an internal error

addExternalLinks

public void addExternalLinks(Collection links)
                      throws JAXRException
Overrides behavior in RegistryObjectImpl to allow adding external links. If an external link already exists or if the collection contains more than one external link, this method throws UnsupportedCapabilityException. See appendix D of specification.

Specified by:
addExternalLinks in interface RegistryObject
Overrides:
addExternalLinks in class RegistryObjectImpl
Parameters:
links - the Collection of ExternalLinks being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

setExternalLinks

public void setExternalLinks(Collection links)
                      throws JAXRException
Overrides behavior in RegistryObjectImpl to allow adding external links. If an external link already exists or if the collection contains more than one external link, this method throws UnsupportedCapabilityException. See appendix D of specification.

Specified by:
setExternalLinks in interface RegistryObject
Overrides:
setExternalLinks in class RegistryObjectImpl
Throws:
JAXRException - If the JAXR provider encounters an internal error

getValueType

public int getValueType()
                 throws JAXRException
Level 1 method

Specified by:
getValueType in interface ClassificationScheme
Returns:
an integer constant that describes the type of values supported by this ClassificationScheme
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
ClassificationScheme.VALUE_TYPE_UNIQUE, ClassificationScheme.VALUE_TYPE_EMBEDDED_PATH, ClassificationScheme.VALUE_TYPE_NON_UNIQUE

setValueType

public void setValueType(int valueType)
                  throws JAXRException
Level 1 method

Specified by:
setValueType in interface ClassificationScheme
Parameters:
valueType - an integer constant that describes the type of values supported by this ClassificationScheme
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
ClassificationScheme.VALUE_TYPE_UNIQUE, ClassificationScheme.VALUE_TYPE_EMBEDDED_PATH, ClassificationScheme.VALUE_TYPE_NON_UNIQUE


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