com.googlecode.jinahya.xml
Class JDOMElementLocator

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

public class JDOMElementLocator
extends ElementLocator

A JDOM implementation.

Author:
Jin Kwon
See Also:
JDOM

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

JDOMElementLocator

public JDOMElementLocator(ELElement root)
Creates a new instance.

Parameters:
root - root element
Method Detail

parse

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

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

print

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

Parameters:
locator - element to print
Returns:
a new Document

print

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

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


Copyright © 2010-2011. All Rights Reserved.