Class ConceptImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.ConceptImpl
-
- All Implemented Interfaces:
Serializable,javax.xml.registry.infomodel.Concept,javax.xml.registry.infomodel.ExtensibleObject,javax.xml.registry.infomodel.RegistryObject
public class ConceptImpl extends RegistryObjectImpl implements javax.xml.registry.infomodel.Concept, Serializable
Implementation of Concept interface. The ConceptImpl has either a concept or classification scheme as its parent, but not both.- Author:
- Farrukh S. Najmi, Kathy Walsh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConceptImpl()Default constructorConceptImpl(javax.xml.registry.infomodel.Key key)ConceptImpl(javax.xml.registry.infomodel.Key key, String description, String name)ConceptImpl(javax.xml.registry.infomodel.RegistryObject parent, String name, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChildConcept(javax.xml.registry.infomodel.Concept concept)Add a child ConceptvoidaddChildConcepts(Collection concepts)Add a Collection of Concept children.voidaddExternalLink(javax.xml.registry.infomodel.ExternalLink link)Overrides behavior in RegistryObjectImpl to allow adding external links.voidaddExternalLinks(Collection links)Overrides behavior in RegistryObjectImpl to allow adding external links.intgetChildConceptCount()Get number of childrenCollectiongetChildrenConcepts()Get all immediate children ConceptsbooleangetChildrenLoaded()javax.xml.registry.infomodel.ClassificationSchemegetClassificationScheme()Get the parent classification scheme.CollectiongetDescendantConcepts()Get all descendant Concepts.javax.xml.registry.infomodel.RegistryObjectgetParent()javax.xml.registry.infomodel.ConceptgetParentConcept()Get the parent Concept or null if parent is a ClassificationSchemeStringgetPath()Returns the full path from classification scheme down to the concept.StringgetValue()Gets the value (usually a code in a taxonomy) associated with this Concept.booleanisPredefined()voidremoveChildConcept(javax.xml.registry.infomodel.Concept concept)Remove child conceptvoidremoveChildConcepts(Collection concepts)Remove a Collection of children Concepts.voidsetClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme scheme)Internal method to set the ClassificationScheme.voidsetExternalLinks(Collection links)Overrides behavior in RegistryObjectImpl to allow adding external links.voidsetParentConcept(javax.xml.registry.infomodel.Concept parent)For use by Composite class only Use parent.addChild to set parent in client codevoidsetPredefined(boolean predefined)voidsetValue(String value)Sets the value (usually a code in a taxonomy) associated with this Concept.-
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.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
-
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
-
-
-
-
Method Detail
-
getValue
public String getValue() throws javax.xml.registry.JAXRException
Gets the value (usually a code in a taxonomy) associated with this Concept.- Specified by:
getValuein interfacejavax.xml.registry.infomodel.Concept- Throws:
javax.xml.registry.JAXRException
-
setValue
public void setValue(String value)
Sets the value (usually a code in a taxonomy) associated with this Concept.- Specified by:
setValuein interfacejavax.xml.registry.infomodel.Concept
-
addChildConcept
public void addChildConcept(javax.xml.registry.infomodel.Concept concept) throws javax.xml.registry.JAXRExceptionAdd a child Concept- Specified by:
addChildConceptin interfacejavax.xml.registry.infomodel.Concept- Throws:
javax.xml.registry.JAXRException
-
addChildConcepts
public void addChildConcepts(Collection concepts) throws javax.xml.registry.JAXRException
Add a Collection of Concept children. If parameter is null, treat as empty collection.- Specified by:
addChildConceptsin interfacejavax.xml.registry.infomodel.Concept- Throws:
javax.xml.registry.JAXRException
-
removeChildConcept
public void removeChildConcept(javax.xml.registry.infomodel.Concept concept)
Remove child concept- Specified by:
removeChildConceptin interfacejavax.xml.registry.infomodel.Concept
-
removeChildConcepts
public void removeChildConcepts(Collection concepts)
Remove a Collection of children Concepts. Treat null parameter as empty collection.- Specified by:
removeChildConceptsin interfacejavax.xml.registry.infomodel.Concept
-
getChildConceptCount
public int getChildConceptCount()
Get number of children- Specified by:
getChildConceptCountin interfacejavax.xml.registry.infomodel.Concept
-
getChildrenConcepts
public Collection getChildrenConcepts() throws javax.xml.registry.JAXRException
Get all immediate children Concepts- Specified by:
getChildrenConceptsin interfacejavax.xml.registry.infomodel.Concept- Throws:
javax.xml.registry.JAXRException
-
getDescendantConcepts
public Collection getDescendantConcepts() throws javax.xml.registry.JAXRException
Get all descendant Concepts. This method recurses through all the children concepts.- Specified by:
getDescendantConceptsin interfacejavax.xml.registry.infomodel.Concept- Throws:
javax.xml.registry.JAXRException
-
getParentConcept
public javax.xml.registry.infomodel.Concept getParentConcept() throws javax.xml.registry.JAXRExceptionGet the parent Concept or null if parent is a ClassificationScheme- Specified by:
getParentConceptin interfacejavax.xml.registry.infomodel.Concept- Throws:
javax.xml.registry.JAXRException
-
getClassificationScheme
public javax.xml.registry.infomodel.ClassificationScheme getClassificationScheme() throws javax.xml.registry.JAXRExceptionGet the parent classification scheme. The method recurses up through parent concepts to get the classification scheme.- Specified by:
getClassificationSchemein interfacejavax.xml.registry.infomodel.Concept- Throws:
javax.xml.registry.JAXRException
-
setClassificationScheme
public void setClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme scheme)
Internal method to set the ClassificationScheme. This should not be set on a concept that has a concept as a parent.
-
getPath
public String getPath() throws javax.xml.registry.JAXRException
Returns the full path from classification scheme down to the concept.- Specified by:
getPathin interfacejavax.xml.registry.infomodel.Concept- Throws:
javax.xml.registry.JAXRException
-
getParent
public javax.xml.registry.infomodel.RegistryObject getParent()
- Specified by:
getParentin interfacejavax.xml.registry.infomodel.Concept
-
isPredefined
public boolean isPredefined()
-
setPredefined
public void setPredefined(boolean predefined)
-
getChildrenLoaded
public boolean getChildrenLoaded() throws javax.xml.registry.JAXRException- Throws:
javax.xml.registry.JAXRException
-
setParentConcept
public void setParentConcept(javax.xml.registry.infomodel.Concept parent)
For use by Composite class only Use parent.addChild to set parent in client code
-
addExternalLink
public void addExternalLink(javax.xml.registry.infomodel.ExternalLink link) throws javax.xml.registry.JAXRExceptionOverrides 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:
addExternalLinkin interfacejavax.xml.registry.infomodel.RegistryObject- Overrides:
addExternalLinkin classRegistryObjectImpl- Throws:
javax.xml.registry.JAXRException
-
addExternalLinks
public void addExternalLinks(Collection links) throws javax.xml.registry.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:
addExternalLinksin interfacejavax.xml.registry.infomodel.RegistryObject- Overrides:
addExternalLinksin classRegistryObjectImpl- Throws:
javax.xml.registry.JAXRException
-
setExternalLinks
public void setExternalLinks(Collection links) throws javax.xml.registry.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:
setExternalLinksin interfacejavax.xml.registry.infomodel.RegistryObject- Overrides:
setExternalLinksin classRegistryObjectImpl- Throws:
javax.xml.registry.JAXRException
-
-