|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
The figure below 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)
Add a child Concept |
void |
addChildConcepts(java.util.Collection concept)
Add a Collection of Concept children |
Concept |
getChildConceptAt(int index)
Get a child Concept at a specified index |
int |
getChildConceptCount()
Get number of children |
java.util.Collection |
getChildrenConcepts()
Get all immediate children Concepts |
ClassificationScheme |
getClassificationScheme()
Get the ClassificationScheme that this Concept is a descendent of |
java.util.Collection |
getDescendantConcepts()
Get all descendant Concepts |
Concept |
getParentConcept()
Get the parent Concept or null if parent is a ClassificationScheme. |
java.lang.String |
getValue()
Gets the value (usually a code in a taxonomy) associated with this Concept. |
void |
removeChildConcept(Concept concept)
Remove a child Concept |
void |
removeChildConcepts(java.util.Collection concept)
Remove a Collection of children Concepts |
void |
setValue(java.lang.String value)
Sets the value (usually a code in a taxonomy) associated with this Concept. |
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject |
addSlot, addSlots, getSlot, getSlotAt, getSlots, removeSlot, removeSlots |
Method Detail |
public java.lang.String getValue() throws JAXRException
public void setValue(java.lang.String value) throws JAXRException
public void addChildConcept(Concept concept) throws JAXRException
public void addChildConcepts(java.util.Collection concept) throws JAXRException
public void removeChildConcept(Concept concept) throws JAXRException
public void removeChildConcepts(java.util.Collection concept) throws JAXRException
public Concept getChildConceptAt(int index) throws JAXRException
public int getChildConceptCount() throws JAXRException
public java.util.Collection getChildrenConcepts() throws JAXRException
public java.util.Collection getDescendantConcepts() throws JAXRException
public Concept getParentConcept() throws JAXRException
public ClassificationScheme getClassificationScheme() throws JAXRException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |