public interface

Element

implements Node
com.google.gwt.xml.client.Element

Class Overview

This interface represents XML DOM elements, which are the basic building block of XML. An example follows:

   
      Some text more text
   
 

Summary

[Expand]
Inherited Constants
From interface com.google.gwt.xml.client.Node
Public Methods
abstract String getAttribute(String name)
This method retrieves the attribute which has a name of name.
abstract Attr getAttributeNode(String name)
This method retrieves the attribute node which has a name of name.
abstract NodeList getElementsByTagName(String name)
This method retrieves the elements by tag name which has a name of name.
abstract String getTagName()
This method retrieves the tag name.
abstract boolean hasAttribute(String name)
This method determines whether this Element has an attribute with the supplied name.
abstract void removeAttribute(String name)
This method removes the attribute which has the specified name.
abstract void setAttribute(String name, String value)
This method sets the attribute specified by name to value.
[Expand]
Inherited Methods
From interface com.google.gwt.xml.client.Node

Public Methods

public abstract String getAttribute (String name)

This method retrieves the attribute which has a name of name.

Parameters
name the name of the attribute to get the value of
Returns
  • the value of the attribute specified by name

public abstract Attr getAttributeNode (String name)

This method retrieves the attribute node which has a name of name. This Attr will have the same value as would be gotten with getAttribute.

Parameters
name the name of the Attr to get
Returns
  • the attribute node of this Elementwhich has a name of name

public abstract NodeList getElementsByTagName (String name)

This method retrieves the elements by tag name which has a name of name.

Parameters
name the name of the Element to get
Returns
  • the elements by tag name of this Element which has a name of name

public abstract String getTagName ()

This method retrieves the tag name.

Returns
  • the tag name of this Element

public abstract boolean hasAttribute (String name)

This method determines whether this Element has an attribute with the supplied name.

Parameters
name the name of the attribute
Returns
  • true if this Element has an attribute that name.

public abstract void removeAttribute (String name)

This method removes the attribute which has the specified name.

Parameters
name the name of the attribute to remove

public abstract void setAttribute (String name, String value)

This method sets the attribute specified by name to value.

Parameters
name the name of the attribute to set
value the new value this attribute is to have