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