|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Element
This interface represents XML DOM elements, which are the basic building block of XML. An example follows:
Some text more text
| 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 | |
|---|---|
java.lang.String |
getAttribute(java.lang.String name)
This method retrieves the attribute which has a name of name. |
Attr |
getAttributeNode(java.lang.String name)
This method retrieves the attribute node which has a name of name. |
NodeList |
getElementsByTagName(java.lang.String name)
This method retrieves the elements by tag name which has a name of name. |
java.lang.String |
getTagName()
This method retrieves the tag name. |
boolean |
hasAttribute(java.lang.String name)
This method determines whether this Element has an attribute
with the supplied name. |
void |
removeAttribute(java.lang.String name)
This method removes the attribute which has the specified name. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
This method sets the attribute specified by name to
value. |
| 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 |
|---|
java.lang.String getAttribute(java.lang.String name)
name.
name - the name of the attribute to get the value of
nameAttr getAttributeNode(java.lang.String name)
name. This Attr will have the same value as
would be gotten with getAttribute.
name - the name of the Attr to get
Elementwhich has a name
of nameNodeList getElementsByTagName(java.lang.String name)
name.
name - the name of the Element to get
Element which has a
name of namejava.lang.String getTagName()
Elementboolean hasAttribute(java.lang.String name)
Element has an attribute
with the supplied name.
name - the name of the attribute
true if this Element has an attribute
that name.void removeAttribute(java.lang.String name)
name - the name of the attribute to remove
void setAttribute(java.lang.String name,
java.lang.String value)
name to
value.
name - the name of the attribute to setvalue - the new value this attribute is to have
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||