Interface CustomBuilder
-
- All Known Implementing Classes:
BlobOMDataSourceCustomBuilder
public interface CustomBuilder
A Custom Builder is registered on theOMXMLParserWrapper
for a particular set of elements. When a matching element is encountered, the CustomBuilder will build anOMDataSource
for the builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CustomBuilder.Selector
Selects the elements to which a custom builder is applied.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OMDataSource
create(OMElement element)
Create anOMDataSource
from the givenOMElement
.
-
-
-
Method Detail
-
create
OMDataSource create(OMElement element) throws OMException
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
-
-