|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Document
Document objects represent XML documents. Each
Document can contain exactly one Element node,
and any number of other node types.
| Field Summary |
|---|
| Fields inherited from interface com.google.gwt.xml.client.Node |
|---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Method Summary | |
|---|---|
CDATASection |
createCDATASection(java.lang.String data)
This method creates a new CDATASection. |
Comment |
createComment(java.lang.String data)
This method creates a new Comment. |
DocumentFragment |
createDocumentFragment()
This method creates a new DocumentFragment. |
Element |
createElement(java.lang.String tagName)
This method creates a new Element. |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
This method creates a new ProcessingInstruction. |
Text |
createTextNode(java.lang.String data)
This method creates a new Text. |
Element |
getDocumentElement()
This method retrieves the document element. |
Element |
getElementById(java.lang.String elementId)
This method retrieves the unique descendent elements which has an id of elementId. |
NodeList |
getElementsByTagName(java.lang.String tagname)
This method retrieves any descendent elements which have a tag name of tagname. |
Node |
importNode(Node importedNode,
boolean deep)
This method imports a node into the current Document. |
| Methods inherited from interface com.google.gwt.xml.client.Node |
|---|
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue |
| Method Detail |
|---|
CDATASection createCDATASection(java.lang.String data)
CDATASection.
data - the data of the new CDATASection
CDATASectionComment createComment(java.lang.String data)
Comment.
data - the data of the new Comment
CommentDocumentFragment createDocumentFragment()
DocumentFragment.
DocumentFragmentElement createElement(java.lang.String tagName)
Element.
tagName - the tag name of the new Element
Element
ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
ProcessingInstruction.
target - the target of the new ProcessingInstructiondata - the data of the new ProcessingInstruction
ProcessingInstructionText createTextNode(java.lang.String data)
Text.
data - the data of the new Text
TextElement getDocumentElement()
Element as its direct child, and this node is returned if it
exists. null is returned otherwise.
DocumentElement getElementById(java.lang.String elementId)
elementId. Note the attribute which is used as an ID must
be supplied in the DTD of the document. It is not sufficient to give the
Element to be retrieved an attribute named 'id'.
Element which has an id of
elementId and belongs to this DocumentNodeList getElementsByTagName(java.lang.String tagname)
tagname.
NodeList of elements which has a tag name of
tagname and belong to this Document
Node importNode(Node importedNode,
boolean deep)
Document.
deep - whether to recurse to children
Node imported
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||