| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.uniba.euromath.document.DocumentContent
public final class DocumentContent
Provides access to document's contents. It doesn't provide functions to
 modify document - that is the task of DocumentModifier.
 Nodes, returned by this function, must not be modified.
| Method Summary | |
|---|---|
|  void | checkNode(Node node)Checks the node if it is from our document. | 
|  void | checkPtr(sk.baka.ikslibs.ptr.DomPointer ptr)Checks the pointer if it points into our document. | 
|  boolean | containsElements(String id)Deprecated. | 
|  DocumentFragment | copy(sk.baka.ikslibs.ptr.DomPointer from,
     sk.baka.ikslibs.ptr.DomPointer to)Deprecated. | 
|  Attr | getAttrNode(String id)Deprecated. | 
|  Comment | getCommentNode(String id)Deprecated. | 
| static String | getContainerText(Node node)Deprecated. | 
|  String | getContainerText(String id)Deprecated. | 
| static String | getData(Node node)Deprecated. | 
|  String | getData(String id)Deprecated. | 
|  Element | getElement(String id)Deprecated. | 
|  Element | getNameRoot(Node node)Deprecated. | 
|  ProcessingInstruction | getPINode(String id)Deprecated. | 
|  sk.baka.ikslibs.levelmapper.NodeListID | getTextNode(String id)Deprecated. | 
|  boolean | isOurNode(Node node)Checks the node if it is from our document. | 
|  ContentNodesIterator | iterateContent(Node node)Deprecated. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
@Deprecated
public Element getElement(String id)
                   throws DocumentException
id - id of node.
DocumentException - if id doesn't exist or it doesn't denote
 regular element.
@Deprecated
public sk.baka.ikslibs.levelmapper.NodeListID getTextNode(String id)
                                                   throws DocumentException
id - id of the desired node.
DocumentException - if id doesn't exist or it doesn't denote text
 or CData node.
@Deprecated
public ProcessingInstruction getPINode(String id)
                                throws DocumentException
id - id of the desired node.
DocumentException - if id doesn't exist or it doesn't denote
 ProcessingInstruction node.
@Deprecated
public Comment getCommentNode(String id)
                       throws DocumentException
id - id of the desired node.
DocumentException - if id doesn't exist or it doesn't denote
 Comment node.
@Deprecated
public Attr getAttrNode(String id)
                 throws DocumentException
id - id of the desired node.
DocumentException - if id doesn't exist or it doesn't denote
 Attr node.
@Deprecated
public String getData(String id)
               throws DocumentException
id - id of node.
null.
DocumentException - if node doesn't exist or it denotes an element.@Deprecated public static String getData(Node node)
node - the node.
null.
@Deprecated
public boolean containsElements(String id)
                         throws DocumentException
id - id of element.
DocumentException - if id doesn't exist or it doesn't denote
 regular element.@Deprecated public String getContainerText(String id)
id - id of element.
null.
DocumentException - if id doesn't exist or it doesn't denote
 regular element.@Deprecated public static String getContainerText(Node node)
node - node to query.
null.@Deprecated public Element getNameRoot(Node node)
node - the node.
@Deprecated
public DocumentFragment copy(sk.baka.ikslibs.ptr.DomPointer from,
                                        sk.baka.ikslibs.ptr.DomPointer to)
to parameter is not copied). Copied nodes are returned in
 a DocumentFragment instance. Both pointers must have the
 same parent element.
from - start of the removal interval. The node where this pointer
 points shall be copied first.to - end of the copy interval.
DocumentFragment instance containing nodes that
 have been cut from the document. Never null. No element
 in the target fragment will have emp:id attribute.public void checkNode(Node node)
node - node to check.
IllegalArgumentException - if node is not from bound documentpublic void checkPtr(sk.baka.ikslibs.ptr.DomPointer ptr)
ptr - pointer to check.
IllegalArgumentException - if pointer is not from bound documentpublic boolean isOurNode(Node node)
node - node to check.
@Deprecated public ContentNodesIterator iterateContent(Node node)
node and returned nodes; iterator does not iterate through
 other elements).
node - contents of this node are to be iterated.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||