com.googlecode.jinahya.el
Class DOMElementLocator

java.lang.Object
  extended by com.googlecode.jinahya.el.ElementLocator<Document>
      extended by com.googlecode.jinahya.el.DOMElementLocator

public class DOMElementLocator
extends ElementLocator<Document>

Author:
Jin Kwon

Constructor Summary
protected DOMElementLocator(ELElement root)
          Creates a new instance.
 
Method Summary
static ElementLocator<Document> newInstance(Document document)
          Creates a new instance.
static ElementLocator<Document> newInstance(Element element)
          Creates a new instance.
protected  void print(ELElement root, Document document, Map<String,String> namespaces)
          Prints given root to specified document.
 
Methods inherited from class com.googlecode.jinahya.el.ElementLocator
addChild, addChild, getAttribute, getAttribute, getChildCount, getChildCount, getCurrent, getText, getText, locateChild, locateChild, locateParent, locateRoot, print, removeCurrent, setAttribute, setAttribute, setText, setText, toJSON
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMElementLocator

protected DOMElementLocator(ELElement root)
Creates a new instance.

Parameters:
root - root element
Method Detail

newInstance

public static ElementLocator<Document> newInstance(Document document)
Creates a new instance.

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

newInstance

public static ElementLocator<Document> newInstance(Element element)
Creates a new instance.

Parameters:
element - element
Returns:
new instance of DOMelementLocator

print

protected void print(ELElement root,
                     Document document,
                     Map<String,String> namespaces)
Description copied from class: ElementLocator
Prints given root to specified document.

Specified by:
print in class ElementLocator<Document>
Parameters:
root - root element
document - target document
namespaces - provided namespace URI/prefix map


Copyright © 2010-2011. All Rights Reserved.