org.jtool.jxplatform.dom
Class GetElementById

java.lang.Object
  extended byorg.jtool.jxplatform.dom.GetElementById

public class GetElementById
extends java.lang.Object

Obtains the element having a given id.

Author:
Katsuhisa Maruyama

Constructor Summary
GetElementById()
           
 
Method Summary
static org.w3c.dom.Element getElement(org.w3c.dom.Document doc, java.lang.String id)
          Returns an element having an identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetElementById

public GetElementById()
Method Detail

getElement

public static org.w3c.dom.Element getElement(org.w3c.dom.Document doc,
                                             java.lang.String id)
Returns an element having an identifier.

Parameters:
doc - The root of a DOM object tree to be examined.
id - An identifier string.
Returns:
The matched element.