com.googlecode.jinahya.xml
Class KDOMElementLocator

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

public class KDOMElementLocator
extends ElementLocator

A kXML2 implementation.

Author:
Jin Kwon
See Also:
kXML2

Constructor Summary
KDOMElementLocator(ELElement root)
          Creates a new instance.
 
Method Summary
static ElementLocator parse(org.kxml2.kdom.Document document)
          Parses given document and creates a new ElementLocator instance.
static org.kxml2.kdom.Document print(ElementLocator locator)
          Prints given element to a new Document.
static void print(ElementLocator locator, org.kxml2.kdom.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

KDOMElementLocator

public KDOMElementLocator(ELElement root)
Creates a new instance.

Parameters:
root - root element
Method Detail

parse

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

Parameters:
document - document to parse
Returns:
a new ElementLocator instance.

print

public static org.kxml2.kdom.Document print(ElementLocator locator)
Prints given element to a new Document.

Parameters:
locator - element to print
Returns:
a new document to which element has been printed.

print

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

Parameters:
locator - the element to print
document - the document to which element is printed.


Copyright © 2010-2011. All Rights Reserved.