org.apache.bsf.xml
Class XMLHelper
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLHelper
public XMLHelper()
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.