|
|||||||||
| 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.XtmDocument
public class XtmDocument
Defines an XTM document, ie., a container for nodes representing an XTM document. This does not currently support <mergeMap>, nor correct generation of documents whose root element is not <topicMap>, nor multiple topic maps in the same document.
| Field Summary |
|---|
| 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 | |
|---|---|
XtmDocument(XtmProcessor xtmp)
Minimal XtmDocument constructor with a reference to the XtmProcessor used to populate the document. |
|
XtmDocument(XtmProcessor xtmp,
String systemId)
XtmDocument constructor with a reference to the XtmProcessor used to populate the document, a String systemId, an optional literal used in the system identifier of the DOCTYPE declaration when serialized as an XTM document. |
|
XtmDocument(XtmProcessor xtmp,
String systemId,
String encoding)
XtmDocument constructor with a reference to the XtmProcessor used to populate the document, and a String systemId, an optional literal used in the system identifier of the DOCTYPE declaration when serialized as an XTM document. |
|
| Method Summary | |
|---|---|
void |
addComment(XtmComment comment,
boolean addLine)
Add the XtmComment comment as a comment to this XtmDocument. |
void |
addTopicMap(XtmTopicMap map)
Adds a new topic map to this XtmDocument. |
String |
getName()
Returns a String containing the name of this XTM element type. |
short |
getNodeType()
A short integer indicating what type of node this is. |
String |
getSystemId()
Return a String containing the system identifier for the XTM DTD, to be used in the DOCTYPE declaration of a serialized output. |
XtmProcessor |
getXtmProcessor()
Returns the XtmProcessor used to populate this XtmDocument. |
boolean |
hasNext()
Return a boolean indicating if an iteration of this node has more elements. |
Iterator |
iterator()
Returns an Iterator for this XtmDocument's content. |
Object |
next()
Returns the next object in the iteration. |
void |
remove()
Removes from the Collection the element last returned by the iterator. |
void |
setEncoding(String encoding)
Set the encoding for the XTM Declaration to the String encoding. |
void |
setSystemId(String systemId)
Set the system identifier for the XTM DTD to the String systemId, to be used in the DOCTYPE declaration of a serialized output. |
| Methods inherited from class org.ceryle.xtm.XtmNode |
|---|
addPI, getID, getPI, getPIs, removePI, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XtmDocument(XtmProcessor xtmp)
public XtmDocument(XtmProcessor xtmp,
String systemId)
public XtmDocument(XtmProcessor xtmp,
String systemId,
String encoding)
| Method Detail |
|---|
public XtmProcessor getXtmProcessor()
public String getName()
getName in class XtmNodepublic short getNodeType()
getNodeType in class XtmNodepublic void setSystemId(String systemId)
public String getSystemId()
public void setEncoding(String encoding)
public void addTopicMap(XtmTopicMap map)
public void addComment(XtmComment comment,
boolean addLine)
comment as a comment to this XtmDocument.
comment - The XtmComment to be added to this XtmDocument.addLine - Indicates whether a linefeed should precede the comment.public Iterator iterator()
public Object next()
throws NoSuchElementException
next in interface Iteratornext in class XtmNodeNoSuchElementException - if there are no more elements in this iteration.public boolean hasNext()
hasNext in interface IteratorhasNext in class XtmNode
public void remove()
throws UnsupportedOperationException
remove in interface Iteratorremove in class XtmNodeUnsupportedOperationException - because this operation is unsupported.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||