com.googlecode.jinahya.xml
Class XOMElementLocator

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

public class XOMElementLocator
extends ElementLocator

A XOM implementation.

Author:
Jin Kwon
See Also:
XOM

Constructor Summary
XOMElementLocator(ELElement root)
          Creates new instance.
 
Method Summary
static ElementLocator parse(nu.xom.Document document)
          Parses given document and creates a new ElementLocator.
static nu.xom.Document print(ELElement element)
          Prints given element to a new Document.
static void print(ELElement child, nu.xom.Document document)
          Prints given child 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

XOMElementLocator

public XOMElementLocator(ELElement root)
Creates new instance.

Parameters:
root - the root element
Method Detail

parse

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

Parameters:
document - the document to be parsed
Returns:
a new ElementLocator instance.

print

public static nu.xom.Document print(ELElement element)
Prints given element to a new Document.

Parameters:
element - the element to be printed
Returns:
a new Document to which element has been printed.

print

public static void print(ELElement child,
                         nu.xom.Document document)
Prints given child to specified document.

Parameters:
child - the root element to be printed
document - the document to which child is printed.


Copyright © 2010-2011. All Rights Reserved.