com.googlecode.jinahya.el
Class XOMElementLocator

java.lang.Object
  extended by com.googlecode.jinahya.el.ElementLocator<nu.xom.Document>
      extended by com.googlecode.jinahya.el.XOMElementLocator

public class XOMElementLocator
extends ElementLocator<nu.xom.Document>

Author:
Jin Kwon

Constructor Summary
protected XOMElementLocator(ELElement root)
           
 
Method Summary
static ElementLocator<nu.xom.Document> newInstance(nu.xom.Document document)
           
static ElementLocator<nu.xom.Document> newInstance(nu.xom.Element element)
           
static ElementLocator<nu.xom.Document> newInstance(String namespaceURI, String localName)
           
protected  void print(ELElement root, nu.xom.Document document, Map<String,String> namespaceMap)
          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

XOMElementLocator

protected XOMElementLocator(ELElement root)
Parameters:
root -
Method Detail

newInstance

public static ElementLocator<nu.xom.Document> newInstance(String namespaceURI,
                                                          String localName)
Parameters:
namespaceURI -
localName -
Returns:

newInstance

public static ElementLocator<nu.xom.Document> newInstance(nu.xom.Document document)
Parameters:
document -
Returns:

newInstance

public static ElementLocator<nu.xom.Document> newInstance(nu.xom.Element element)
Parameters:
element -
Returns:

print

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

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


Copyright © 2010-2011. All Rights Reserved.