org.apache.bsf.xml
Class XMLHelper

java.lang.Object
  extended by org.apache.bsf.xml.XMLHelper
Direct Known Subclasses:
DefaultXMLHelper

public abstract class XMLHelper
extends Object

Utility for converting between Java representations of XML such DOM nodes, StAX streams, or Axiom OMElements, into script language representations such as JavaScript E4X, Ruby ReXML, or Python ElementTree.


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

Constructor Detail

XMLHelper

public XMLHelper()
Method Detail

getArgHelper

public static XMLHelper getArgHelper(ScriptEngine engine)

toScriptXML

public abstract Object toScriptXML(org.apache.axiom.om.OMElement om)
                            throws ScriptException
Throws:
ScriptException

toOMElement

public abstract org.apache.axiom.om.OMElement toOMElement(Object scriptXML)
                                                   throws ScriptException
Throws:
ScriptException

toScriptXML

public abstract Object toScriptXML(javax.xml.stream.XMLStreamReader reader)
                            throws ScriptException
Throws:
ScriptException

toXMLStreamReader

public abstract javax.xml.stream.XMLStreamReader toXMLStreamReader(Object scriptXML)
                                                            throws ScriptException
Throws:
ScriptException

toScriptXML

public abstract Object toScriptXML(Node node)
                            throws ScriptException
Throws:
ScriptException

toDOMNode

public abstract Node toDOMNode(Object scriptXML)
                        throws ScriptException
Throws:
ScriptException


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.