|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.csutils.core.registry.Concepts
public class Concepts
A utility class for working with concepts. This class provides only static methods and cannot be instantiated.
This class supports an extended path notation. A complete
path includes the classification schemes, or taxonomies name.
For example: //taxonomyName/conceptA/conceptB.
In the example, the double slashes indicate that the first component in the path is in fact a taxonomies, or classification schemes name.
| Constructor Summary | |
|---|---|
Concepts()
|
|
| Method Summary | |
|---|---|
static java.util.Collection<javax.xml.registry.infomodel.Concept> |
asConceptCollection(java.util.Collection<?> pCollection)
Casts the given collection to a collection of concepts. |
static javax.xml.registry.infomodel.Concept |
findConceptByPath(RegistryFacade pFacade,
javax.xml.registry.infomodel.RegistryObject pObject,
java.lang.String pPath)
Returns the concept with the given path, relative to the given registry object. |
static javax.xml.registry.infomodel.RegistryObject |
findObjectByPath(RegistryFacade pFacade,
java.lang.String pPath)
Returns the classification scheme, or concept, with the given path. |
static java.util.Collection<javax.xml.registry.infomodel.Concept> |
getChildrenConcepts(javax.xml.registry.infomodel.RegistryObject pObject)
Returns the given objects children concepts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Concepts()
| Method Detail |
|---|
public static javax.xml.registry.infomodel.RegistryObject findObjectByPath(RegistryFacade pFacade,
java.lang.String pPath)
throws javax.xml.registry.JAXRException
pFacade - The registry facade to use.pPath - The path to evaluate.
javax.xml.registry.JAXRException - The operation failed.
public static javax.xml.registry.infomodel.Concept findConceptByPath(RegistryFacade pFacade,
javax.xml.registry.infomodel.RegistryObject pObject,
java.lang.String pPath)
throws javax.xml.registry.JAXRException
pFacade - The registry facade to usepObject - The object, relative to which the path should be evaluated.pPath - The path to evaluate.
javax.xml.registry.JAXRException - The operation failed.
public static java.util.Collection<javax.xml.registry.infomodel.Concept> getChildrenConcepts(javax.xml.registry.infomodel.RegistryObject pObject)
throws javax.xml.registry.JAXRException
pObject - The object to query for children concepts.
java.lang.IllegalArgumentException - The object is null, or another
object than a ClassificationScheme, or Concept.
In other words, it doesn't have any children concepts.
javax.xml.registry.JAXRException - The operation failed.public static java.util.Collection<javax.xml.registry.infomodel.Concept> asConceptCollection(java.util.Collection<?> pCollection)
pCollection - The concept collection to cast.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||