com.googlecode.jinahya.elementlocator
Class JDOMElementLocator

java.lang.Object
  extended by com.googlecode.jinahya.elementlocator.ElementLocator<org.jdom.Document>
      extended by com.googlecode.jinahya.elementlocator.JDOMElementLocator

public class JDOMElementLocator
extends ElementLocator<org.jdom.Document>

Author:
Jin Kwon

Method Summary
static ElementLocator<org.jdom.Document> newInstance(String namespaceURI, String localName)
          Creates a new empty (root only) instance.
static ElementLocator<org.jdom.Document> parseInstance(org.jdom.Document document)
          Parses given document and creates a new instance.
 org.jdom.Document toDocument()
          A new document contains this element's content.
 org.jdom.Document toDocument(org.jdom.Document document)
          Prints contents to given document.
 
Methods inherited from class com.googlecode.jinahya.elementlocator.ElementLocator
addChild, addChild, attribute, attribute, child, child, child, child, getAttribute, getAttribute, getChildCount, getChildCount, getText, locateChild, locateChild, locateParent, locateRoot, parent, remove, removeAttribute, removeAttribute, removeCurrent, root, setAttribute, setAttribute, setText, text, text, toJSON
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static ElementLocator<org.jdom.Document> newInstance(String namespaceURI,
                                                            String localName)
Creates a new empty (root only) instance.

Parameters:
namespaceURI - root element's name space URI
localName - root element's local name
Returns:
a new empty (root only) instance.

parseInstance

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

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

toDocument

public final org.jdom.Document toDocument()
A new document contains this element's content.

Returns:
a new document

toDocument

public org.jdom.Document toDocument(org.jdom.Document document)
Description copied from class: ElementLocator
Prints contents to given document.

Specified by:
toDocument in class ElementLocator<org.jdom.Document>
Parameters:
document - an empty document
Returns:
given document


Copyright © 2010-2011. All Rights Reserved.