org.apache.bsf.xml
Class DefaultXMLHelper

java.lang.Object
  extended by org.apache.bsf.xml.XMLHelper
      extended by org.apache.bsf.xml.DefaultXMLHelper
Direct Known Subclasses:
JavaScriptE4XAxiomHelper, JavaScriptE4XHelper, JavaScriptE4XXmlBeansHelper, JRubyReXMLHelper

public class DefaultXMLHelper
extends XMLHelper

Default XMLHelper for when no specific XMLHelper is implemented for a script engine. Just converts XML to text Strings.


Constructor Summary
DefaultXMLHelper()
           
 
Method Summary
 org.w3c.dom.Node toDOMNode(java.lang.Object scriptXML)
           
 org.apache.axiom.om.OMElement toOMElement(java.lang.Object scriptXML)
           
 java.lang.Object toScriptXML(org.w3c.dom.Node node)
           
 java.lang.Object toScriptXML(org.apache.axiom.om.OMElement om)
           
 java.lang.Object toScriptXML(javax.xml.stream.XMLStreamReader reader)
           
 javax.xml.stream.XMLStreamReader toXMLStreamReader(java.lang.Object scriptXML)
           
 
Methods inherited from class org.apache.bsf.xml.XMLHelper
getArgHelper, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultXMLHelper

public DefaultXMLHelper()
Method Detail

toOMElement

public org.apache.axiom.om.OMElement toOMElement(java.lang.Object scriptXML)
                                          throws ScriptException
Specified by:
toOMElement in class XMLHelper
Throws:
ScriptException

toScriptXML

public java.lang.Object toScriptXML(org.apache.axiom.om.OMElement om)
                             throws ScriptException
Specified by:
toScriptXML in class XMLHelper
Throws:
ScriptException

toDOMNode

public org.w3c.dom.Node toDOMNode(java.lang.Object scriptXML)
                           throws ScriptException
Specified by:
toDOMNode in class XMLHelper
Throws:
ScriptException

toScriptXML

public java.lang.Object toScriptXML(javax.xml.stream.XMLStreamReader reader)
                             throws ScriptException
Specified by:
toScriptXML in class XMLHelper
Throws:
ScriptException

toScriptXML

public java.lang.Object toScriptXML(org.w3c.dom.Node node)
                             throws ScriptException
Specified by:
toScriptXML in class XMLHelper
Throws:
ScriptException

toXMLStreamReader

public javax.xml.stream.XMLStreamReader toXMLStreamReader(java.lang.Object scriptXML)
                                                   throws ScriptException
Specified by:
toXMLStreamReader in class XMLHelper
Throws:
ScriptException


Copyright © 1999-2008 Apache Software Foundation. All Rights Reserved.