|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.xtm.XtmNode
org.ceryle.xtm.XtmTopicMap
public class XtmTopicMap
Defines a topic map object, ie., a container for nodes representing an XTM topic map. This does not currently support editing, as the public access is only via an Iterator. Note that this class does not enforce ID uniqueness; this should be done by either the parser or processor.
| Field Summary | |
|---|---|
protected String |
xmlbase
A String containing an optional value for the xml:base attribute. |
| Fields inherited from class org.ceryle.xtm.XtmNode |
|---|
ASSOCIATION_NODE, BASENAME_NODE, BASENAMESTRING_NODE, COMMENT_NODE, DOCUMENT_NODE, GrpSep, GRPSEP, id, INSTANCEOF_NODE, MEMBER_NODE, MERGEMAP_NODE, NODE, NonType, NONTYPE, OCCURRENCE_NODE, PARAMETERS_NODE, PROCESSING_INSTRUCTION_NODE, RecSep, RECSEP, REFERENCE_NODE, RESOURCEDATA_NODE, RESOURCEREF_NODE, ROLESPEC_NODE, SCOPE_NODE, SUBJECTIDENTITY_NODE, SUBJECTINDICATORREF_NODE, TOPIC_NODE, TOPICMAP_NODE, TOPICREF_NODE, VARIANT_NODE, VARIANTNAME_NODE |
| Constructor Summary | |
|---|---|
XtmTopicMap()
XtmTopicMap constructor. |
|
XtmTopicMap(String id)
XtmTopicMap constructor with ID. |
|
| Method Summary | |
|---|---|
void |
addComment(XtmComment comment,
boolean addLine)
Add the XtmComment comment as a comment in this XtmTopicMap. |
void |
addNode(XtmNode node)
Add the XtmNode node as content of this XtmTopicMap. |
String |
getName()
Returns a String containing the name of this XTM element type. |
Iterator |
getNodeIterator()
Return an Iterator over this XtmTopicMap's nodes. |
protected Iterator |
getNodes()
Return this XtmTopicMap's nodes as an Iterator. |
short |
getNodeType()
A short integer indicating what type of node this is. |
boolean |
removeNode(XtmNode node)
Remove the XtmNode node from this XtmTopicMap's nodes. |
void |
setXmlBase(String uri)
Set this XtmTopicMap's xml:base attribute. |
| Methods inherited from class org.ceryle.xtm.XtmNode |
|---|
addPI, getID, getPI, getPIs, hasNext, next, remove, removePI, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String xmlbase
| Constructor Detail |
|---|
public XtmTopicMap()
throws XtmException
XtmException
public XtmTopicMap(String id)
throws XtmException
XtmException| Method Detail |
|---|
public String getName()
getName in class XtmNodepublic short getNodeType()
getNodeType in class XtmNodepublic void setXmlBase(String uri)
uri - the URI to be used as the xml:base value.protected Iterator getNodes()
public Iterator getNodeIterator()
public boolean removeNode(XtmNode node)
public void addComment(XtmComment comment,
boolean addLine)
comment as a comment in this XtmTopicMap.
If the previous node in the document is either an XtmTopic or XtmAssociation
node, the addLine will be ignored because these elements include their own
following whitespace. Because topic map documents can be reordered due to
merging this isn't perfect, but whitespace is not significant anyway.
comment - The XtmComment to be added to this XtmTopicMap.addLine - Indicates whether a linefeed should precede the comment.public void addNode(XtmNode node)
node as content of this XtmTopicMap.
No merging or other behaviour is performed; merely the adding of the
object to the Vector.
node - The XtmNode to be added to this XtmTopicMap.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||