org.cdmckay.coffeedom.xpath.jaxen
Class XPathNamespace

java.lang.Object
  extended by org.cdmckay.coffeedom.xpath.jaxen.XPathNamespace

public class XPathNamespace
extends Object

Wrapper for CoffeeDOM namespace nodes to give them a parent, as required by the XPath data model.

Author:
Erwin Bolwidt, Cameron McKay

Constructor Summary
XPathNamespace(Element coffeedomElement, Namespace coffeedomNamespace)
          Creates a namespace-node wrapper for a namespace node that is assigned to the given CoffeeDOM element.
XPathNamespace(Namespace coffeedomNamespace)
          Creates a namespace-node wrapper for a namespace node that hasn't been assigned to an element yet.
 
Method Summary
 Element getCoffeeDOMElement()
          Returns the CoffeeDOM element from which this namespace node has been retrieved.
 Namespace getJDOMNamespace()
          Returns the CoffeeDOM namespace object of this namespace node; the CoffeeDOM namespace object contains the prefix and URI of the namespace.
 void setCoffeeDOMElement(Element coffeedomElement)
          Sets or changes the element to which this namespace node is assigned.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XPathNamespace

public XPathNamespace(Namespace coffeedomNamespace)
Creates a namespace-node wrapper for a namespace node that hasn't been assigned to an element yet.


XPathNamespace

public XPathNamespace(Element coffeedomElement,
                      Namespace coffeedomNamespace)
Creates a namespace-node wrapper for a namespace node that is assigned to the given CoffeeDOM element.

Method Detail

getCoffeeDOMElement

public Element getCoffeeDOMElement()
Returns the CoffeeDOM element from which this namespace node has been retrieved. The result may be null when the namespace node has not yet been assigned to an element.


setCoffeeDOMElement

public void setCoffeeDOMElement(Element coffeedomElement)
Sets or changes the element to which this namespace node is assigned.


getJDOMNamespace

public Namespace getJDOMNamespace()
Returns the CoffeeDOM namespace object of this namespace node; the CoffeeDOM namespace object contains the prefix and URI of the namespace.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.