org.apache.axiom.om.impl.builder
Interface CustomBuilder
- All Known Implementing Classes:
- ByteArrayCustomBuilder
public interface CustomBuilder
A Custom Builder is registered on the StAXBuilder for a particular QName or payload.
When the QName or payload is encountered, the CustomBuilder will build the OMElement
or OMSourcedElement for the StAXBuilder.
Method Summary |
OMElement |
create(java.lang.String namespace,
java.lang.String localPart,
OMContainer parent,
javax.xml.stream.XMLStreamReader reader,
OMFactory factory)
Create an OMElement for this whole subtree. |
create
OMElement create(java.lang.String namespace,
java.lang.String localPart,
OMContainer parent,
javax.xml.stream.XMLStreamReader reader,
OMFactory factory)
throws OMException
- Create an OMElement for this whole subtree.
A null is returned if the default StAXBuilder behavior should be used.
- Parameters:
namespace
- localPart
- parent
- reader
-
- Returns:
- null or OMElement
- Throws:
OMException