|
JavaTM 2 Platform Ent. Ed. v1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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.
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 |
public String getValue() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorpublic void setValue(String value) throws JAXRException
value
- the value (usually a taxonomy value) associated with this Concept
JAXRException
- If the JAXR provider encounters an internal errorpublic void addChildConcept(Concept concept) throws JAXRException
concept
- the concept being added as a child of this object
JAXRException
- If the JAXR provider encounters an internal errorpublic void 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 errorpublic void 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 errorpublic void 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 errorpublic int getChildConceptCount() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorpublic Collection getChildrenConcepts() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorConcept
public Collection getDescendantConcepts() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorConcept
public Concept getParentConcept() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorpublic ClassificationScheme getClassificationScheme() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorpublic String getPath() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorpublic RegistryObject getParent() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal error
|
JavaTM 2 Platform Ent. Ed. v1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.