| java.lang.Object com.sun.portal.search.rdm.RDMClassification
RDMClassification | public class RDMClassification implements Comparable(Code) | | RDM Classification
A Classification (or "Category") is how data is organized into
a taxonomy. A Classification is analogous to a directory or folder
in a file system.
To load a Classification definition encoded in SOIF from a file or memory,
use RDMTaxonomy_Parse().
Example:
SOIFStream *ss = SOIF_ParseInitFile(stdin);
c = RDMClassification_Parse(ss);
To create a basic Classification structure, use RDMClassification_Parse().
To free a Classification (only node, no children or xrefs),
use RDMClassification_Free().
|
ndescendant | int ndescendant(Code) | | |
apply | public void apply(int order, RDMCallback cb) throws Exception(Code) | | To traverse the Taxonomy in the given order starting at this
Classification, use apply(). Similar to RDMTaxonomy::apply().
|
find | public RDMClassification find(String id)(Code) | | To lookup by classification id, use find().
Example:
RDMClassification musicp = c.find("Arts:Music");
|
getDepth | public int getDepth()(Code) | | |
getId | public String getId()(Code) | | Macros for accessing @CLASSIFICATION values
Use prototype: char *RDMClassification_GetXXX(RDMClassification *c).
|
getNumDescDocs | public int getNumDescDocs()(Code) | | |
getNumDescendant | public int getNumDescendant()(Code) | | |
getNumDocs | public int getNumDocs()(Code) | | |
insertChild | public void insertChild(RDMClassification newchild)(Code) | | To insert a new classification that is the child of the current
Inserts a new child, and sorts all children based on Classification Id
|
insertXref | public void insertXref(String newxref)(Code) | | To insert a cross-reference to another classification
|
nChildren | public int nChildren()(Code) | | |
nXrefs | public int nXrefs()(Code) | | |
setId | public void setId(String s)(Code) | | Macros for defining @CLASSIFICATION values
Use prototype: int RDMClassification_SetXXX(RDMClassification *c,
char *newval).
|
setNumDescDocs | public void setNumDescDocs(int n)(Code) | | |
setNumDescendant | public void setNumDescendant(int nb)(Code) | | |
setNumDocs | public void setNumDocs(int n)(Code) | | |
subcategory | public static String subcategory(String id, int depth)(Code) | | Returns the portion of the id that is 'depth' levels deep.
For example,
("a", 1) -. "a"
("a", 2) -. NULL
("a:b", 2) -. "b"
("a:b:c:d", 1) -. "a"
("a:b:c:d", 2) -. "b"
("a:b:c:d", 3) -. "c"
("a:b:c:d", 4) -. "d"
("a:b:c:d", 5) -. NULL
("a:b:c:d", 0) -. NULL
Return malloc'ed value if successful; otherwise returns NULL;
|
|
|