pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.xml.bind
Class ElementWrapper

java.lang.Object
  extended by org.torweg.pulse.util.xml.bind.ElementWrapper

public final class ElementWrapper
extends java.lang.Object

a wrapper for JAXB allowing to include org.jdom.Elements as fields.

Version:
$Revision: 1426 $
Author:
Thomas Weber, Daniel Dietz
See Also:
ElementXmlAdapter

Constructor Summary
protected ElementWrapper(org.jdom.Element e)
          creates a new JDOM wrapper for the given element.
 
Method Summary
 org.jdom.Element getJDOMElement()
          returns the wrapped JDOM Element.
protected  org.w3c.dom.Element getW3CElement()
          returns the wrapped org.jdom.Element as an org.w3c.dom.Element.
protected  void setW3CElement(org.w3c.dom.Element e)
          sets the given org.w3c.dom.Element as the wrapped org.jdom.Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementWrapper

protected ElementWrapper(org.jdom.Element e)
creates a new JDOM wrapper for the given element.

Parameters:
e - the element to wrap
Method Detail

setW3CElement

protected void setW3CElement(org.w3c.dom.Element e)
sets the given org.w3c.dom.Element as the wrapped org.jdom.Element.

Parameters:
e - the element to set

getW3CElement

protected org.w3c.dom.Element getW3CElement()
                                     throws org.jdom.JDOMException
returns the wrapped org.jdom.Element as an org.w3c.dom.Element.

Returns:
the wrapped org.jdom.Element as an org.w3c.dom.Element
Throws:
org.jdom.JDOMException - on errors during conversion

getJDOMElement

public org.jdom.Element getJDOMElement()
returns the wrapped JDOM Element.

Returns:
the wrapped JDOM Element