|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Concept
The Concept interface is used to represent taxonomy elements and their structural relationship with each other in order to describe an internal taxonomy. Concept instances are used to define tree structures where the root of the tree is a ClassificationScheme instance and each node in the tree is a Concept instance. Two Concepts may be defined as being equivalent.
Figure 1 shows how Concept instances are used to represent taxonomy elements and their structural relationship with each other in order to describe an internal taxonomy.
RegistryObject
,
Classification
,
ClassificationScheme
Method Summary | |
---|---|
void |
addChildConcept(Concept concept)
Adds a child Concept. |
void |
addChildConcepts(Collection concepts)
Adds a Collection of Concept children. |
int |
getChildConceptCount()
Gets number of children. |
Collection |
getChildrenConcepts()
Gets all immediate children Concepts. |
ClassificationScheme |
getClassificationScheme()
Gets the ClassificationScheme that this Concept is a descendent of. |
Collection |
getDescendantConcepts()
Gets all descendant Concepts. |
RegistryObject |
getParent()
Gets the parent Concept or ClassificationScheme for this object. |
Concept |
getParentConcept()
Gets the parent Concept or null if parent is a ClassificationScheme. |
String |
getPath()
Gets the canonical path representation for this Concept. |
String |
getValue()
Gets the value (usually a code in a taxonomy) associated with this Concept. |
void |
removeChildConcept(Concept concept)
Removes a child Concept. |
void |
removeChildConcepts(Collection concepts)
Removes a Collection of children Concepts. |
void |
setValue(String value)
Sets the value (usually a taxonomy value) associated with this Concept. |
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject |
---|
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots |
Method Detail |
---|
String getValue() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorvoid setValue(String value) throws JAXRException
value
- the value (usually a taxonomy value) associated with this Concept
JAXRException
- If the JAXR provider encounters an internal errorvoid addChildConcept(Concept concept) throws JAXRException
concept
- the concept being added as a child of this object
JAXRException
- If the JAXR provider encounters an internal errorvoid addChildConcepts(Collection concepts) throws JAXRException
concepts
- the Collection of Concepts being added as a children of this object
JAXRException
- If the JAXR provider encounters an internal errorvoid removeChildConcept(Concept concept) throws JAXRException
concept
- the concept being removed as a child Concept of this object
JAXRException
- If the JAXR provider encounters an internal errorvoid removeChildConcepts(Collection concepts) throws JAXRException
concepts
- the Collection of Concepts being removed as children Concepts of this object
JAXRException
- If the JAXR provider encounters an internal errorint getChildConceptCount() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorCollection getChildrenConcepts() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorConcept
Collection getDescendantConcepts() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorConcept
Concept getParentConcept() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorClassificationScheme getClassificationScheme() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorString getPath() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorRegistryObject getParent() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal error
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.