Interface CustomBuilder
- All Known Implementing Classes:
BlobOMDataSourceCustomBuilder
public interface CustomBuilder
A Custom Builder is registered on the
OMXMLParserWrapper
for a particular set of elements.
When a matching element is encountered, the CustomBuilder will build an OMDataSource
for the builder.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Selects the elements to which a custom builder is applied. -
Method Summary
-
Method Details
-
create
Create anOMDataSource
from the givenOMElement
. The builder will use the returnedOMDataSource
to create anOMSourcedElement
replacing the originalOMElement
.- Parameters:
element
- The element to convert into anOMDataSource
. The implementation is expected to consume the element using methods such asOMContainer.getXMLStreamReader(boolean)
,OMContainer.getSAXSource(boolean)
orOMSerializable.serialize(XMLStreamWriter, boolean)
withpreserve=true
.- Returns:
- an
OMDataSource
with content that is equivalent to the original element - Throws:
OMException
-