com.googlecode.jinahya.xml
Class DOMElementLocator

java.lang.Object
  extended by com.googlecode.jinahya.xml.ElementLocator
      extended by com.googlecode.jinahya.xml.DOMElementLocator

public class DOMElementLocator
extends ElementLocator

A W3C DOM implementation.

Author:
Jin Kwon

Constructor Summary
DOMElementLocator(ELElement root)
          Creates a new instance.
 
Method Summary
static ElementLocator parse(Document document)
          Parses given document and creates a new instance.
static void print(ElementLocator locator, Document document)
          Prints given locator to specified document.
 
Methods inherited from class com.googlecode.jinahya.xml.ElementLocator
addChild, addChild, getAttribute, getAttribute, getChildCount, getChildCount, getLocalName, getNamespaceURI, getText, locateChild, locateChild, locateParent, locateRoot, removeCurrent, setAttribute, setAttribute, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMElementLocator

public DOMElementLocator(ELElement root)
Creates a new instance.

Parameters:
root - root element
Method Detail

parse

public static ElementLocator parse(Document document)
Parses given document and creates a new instance.

Parameters:
document - document
Returns:
new instance of DOMElementLocator.

print

public static void print(ElementLocator locator,
                         Document document)
Prints given locator to specified document.

Parameters:
locator - locator
document - document


Copyright © 2010-2011. All Rights Reserved.