Package com.google.gwt.xml.client
Interface Element
- All Superinterfaces:
Node
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
Modifier and TypeMethodDescriptiongetAttribute(String name) This method retrieves the attribute which has a name ofname.getAttributeNode(String name) This method retrieves the attribute node which has a name ofname.getElementsByTagName(String name) This method retrieves the elements by tag name which has a name ofname.This method retrieves the tag name.booleanhasAttribute(String name) This method determines whether thisElementhas an attribute with the supplied name.voidremoveAttribute(String name) This method removes the attribute which has the specified name.voidsetAttribute(String name, String value) This method sets the attribute specified bynametovalue.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 Details
-
getAttribute
This method retrieves the attribute which has a name ofname.- Parameters:
name- the name of the attribute to get the value of- Returns:
- the value of the attribute specified by
name
-
getAttributeNode
This method retrieves the attribute node which has a name ofname. ThisAttrwill have the same value as would be gotten withgetAttribute.- Parameters:
name- the name of theAttrto get- Returns:
- the attribute node of this
Elementwhich has a name ofname
-
getElementsByTagName
This method retrieves the elements by tag name which has a name ofname.- Parameters:
name- the name of theElementto get- Returns:
- the elements by tag name of this
Elementwhich has a name ofname
-
getTagName
String getTagName()This method retrieves the tag name.- Returns:
- the tag name of this
Element
-
hasAttribute
This method determines whether thisElementhas an attribute with the supplied name.- Parameters:
name- the name of the attribute- Returns:
trueif thisElementhas an attribute that name.
-
removeAttribute
This method removes the attribute which has the specified name.- Parameters:
name- the name of the attribute to remove
-
setAttribute
This method sets the attribute specified bynametovalue.- Parameters:
name- the name of the attribute to setvalue- the new value this attribute is to have
-