Package org.apache.synapse.util.jaxp
Interface ResultBuilder
-
- All Known Implementing Classes:
AXIOMResultBuilder,DOOMResultBuilder,StreamResultBuilder
public interface ResultBuilderInterface encapsulating a strategy to transform an XML infoset written to aResultobject into an AXIOM tree. Implementations of this interface should be used in the following way:- Create a new instance using the appropriate
ResultBuilderFactory. - Call
getResult()to get anResultinstance. - Use the
Resultobject in the invocation the XSL transformer. - Call
#getNode()to retrieve the root element of the AXIOM tree. - Call
release()when the AXIOM tree is no longer needed or when it has been fully built.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.axiom.om.OMElementgetNode(Charset charset)Get the result written to theResultas anOMElement.ResultgetResult()Get aResultimplementation that can be used with an XSL transformer.voidrelease()Release any resources associated with this object.
-
-
-
Method Detail
-
getResult
Result getResult()
Get aResultimplementation that can be used with an XSL transformer.- Returns:
- the result object
-
getNode
org.apache.axiom.om.OMElement getNode(Charset charset)
Get the result written to theResultas anOMElement. Note that the exact behavior of this methos depends on the specifiedResultBuilderFactory.Output.- Parameters:
charset- The charset encoding of the data that has been written to theResultobject. This information should only be used in conjunction withResultBuilderFactory.Output.TEXT.- Returns:
- the root element of the AXIOM tree
-
release
void release()
Release any resources associated with this object.
-
-