|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.xtm.XtmNode
public abstract class XtmNode
Defines a base topic map node (or object) class, designed to assist in building in-memory representations via the XtmProcessor class.
| Field Summary | |
|---|---|
static short |
ASSOCIATION_NODE
This XtmNode represents an XTM association element. |
static short |
BASENAME_NODE
This XtmNode represents an XTM basename element. |
static short |
BASENAMESTRING_NODE
Represents an XTM <baseNameString> element (not an XtmNode class). |
static short |
COMMENT_NODE
This XtmNode represents an XML comment. |
static short |
DOCUMENT_NODE
This XtmNode represents an XTM document (not the <topicMap> element). |
static String |
GrpSep
|
static int |
GRPSEP
|
protected String |
id
The ID of this XtmNode. |
static short |
INSTANCEOF_NODE
Represents an XTM <instanceOf> element (not an XtmNode class). |
static short |
MEMBER_NODE
This XtmNode represents an XTM member element. |
static short |
MERGEMAP_NODE
Represents an XTM <mergeMap> element (not an XtmNode class). |
static short |
NODE
This abstractly represents an XTM node. |
static String |
NonType
|
static int |
NONTYPE
|
static short |
OCCURRENCE_NODE
This XtmNode represents an XTM occurrence element. |
static short |
PARAMETERS_NODE
This XtmNode represents an XTM parameters element. |
static short |
PROCESSING_INSTRUCTION_NODE
This XtmNode represents an XML processing instruction. |
static String |
RecSep
|
static int |
RECSEP
|
static short |
REFERENCE_NODE
This XtmNode represents an XTM reference (i.e., one of the three XTM reference elements). |
static short |
RESOURCEDATA_NODE
This XtmNode represents an XTM resourceData element. |
static short |
RESOURCEREF_NODE
Represents an XTM <resourceRef> element (not an XtmNode class). |
static short |
ROLESPEC_NODE
Represents an XTM <roleSpec> element (not an XtmNode class). |
static short |
SCOPE_NODE
This XtmNode represents an XTM scope element. |
static short |
SUBJECTIDENTITY_NODE
Represents an XTM <subjectIdentity> element (not an XtmNode class). |
static short |
SUBJECTINDICATORREF_NODE
Represents an XTM <subjectIndicatorRef> element (not an XtmNode class). |
static short |
TOPIC_NODE
This XtmNode represents an XTM topic element. |
static short |
TOPICMAP_NODE
This XtmNode represents an XTM topicmap element. |
static short |
TOPICREF_NODE
Represents an XTM <topicRef> element (not an XtmNode class). |
static short |
VARIANT_NODE
This XtmNode represents an XTM variant element. |
static short |
VARIANTNAME_NODE
Represents an XTM <variantName> element (not an XtmNode class). |
| Constructor Summary | |
|---|---|
XtmNode()
Constructor with no provided ID. |
|
XtmNode(String id)
Constructor with provided ID. |
|
| Method Summary | |
|---|---|
void |
addPI(XtmProcessingInstruction pi)
Add a processing instruction (PI) to this node. |
String |
getID()
Return the value of the ID of this node. |
String |
getName()
Returns a String containing the name of the XTM element type that serializes this node. |
short |
getNodeType()
A short integer indicating what type of node this is. |
String |
getPI(String target)
Return the data content of the processing instruction whose target matches the String target, null if no match is found. |
Set |
getPIs()
Return a Set containing the processing instruction mappings attached to this XtmNode, or null if there are none. |
boolean |
hasNext()
Return a boolean indicating if an iteration of this node has more elements. |
Object |
next()
Returns the next object in the iteration. |
void |
remove()
Removes from the Collection the element last returned by the iterator. |
void |
removePI(String target)
Remove the processing instruction whose target matches the String target. |
void |
setID(String id)
Set the value of the ID of this XtmNode to the String id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int GRPSEP
public static final String GrpSep
public static final int RECSEP
public static final String RecSep
public static final int NONTYPE
public static final String NonType
public static final short NODE
public static final short COMMENT_NODE
public static final short PROCESSING_INSTRUCTION_NODE
public static final short DOCUMENT_NODE
public static final short REFERENCE_NODE
public static final short TOPICMAP_NODE
public static final short TOPIC_NODE
public static final short INSTANCEOF_NODE
public static final short SUBJECTIDENTITY_NODE
public static final short RESOURCEREF_NODE
public static final short SUBJECTINDICATORREF_NODE
public static final short TOPICREF_NODE
public static final short BASENAME_NODE
public static final short BASENAMESTRING_NODE
public static final short VARIANT_NODE
public static final short VARIANTNAME_NODE
public static final short PARAMETERS_NODE
public static final short OCCURRENCE_NODE
public static final short RESOURCEDATA_NODE
public static final short ASSOCIATION_NODE
public static final short MEMBER_NODE
public static final short ROLESPEC_NODE
public static final short SCOPE_NODE
public static final short MERGEMAP_NODE
protected String id
| Constructor Detail |
|---|
public XtmNode()
public XtmNode(String id)
| Method Detail |
|---|
public String getName()
public short getNodeType()
public void setID(String id)
id - The String to be used an the ID value.public String getID()
public void addPI(XtmProcessingInstruction pi)
pi - the processing instruction node.public String getPI(String target)
public void removePI(String target)
public Set getPIs()
public Object next()
throws NoSuchElementException
next in interface IteratorNoSuchElementException - if there are no more elements in this iteration.public boolean hasNext()
hasNext in interface Iterator
public void remove()
throws UnsupportedOperationException
remove in interface IteratorUnsupportedOperationException - because this operation is unsupported.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||