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 interfaceSelects the elements to which a custom builder is applied. -
Method Summary
-
Method Details
-
create
Create anOMDataSourcefrom the givenOMElement. The builder will use the returnedOMDataSourceto create anOMSourcedElementreplacing 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
OMDataSourcewith content that is equivalent to the original element - Throws:
OMException
-