Interface CustomBuilder.Selector
-
- Enclosing interface:
- CustomBuilder
public static interface CustomBuilder.SelectorSelects the elements to which a custom builder is applied. Note that this interface may be implemented by theCustomBuilderitself.
-
-
Field Summary
Fields Modifier and Type Field Description static CustomBuilder.SelectorPAYLOADSelects the message payload element.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccepts(OMContainer parent, int depth, String namespaceURI, String localName)Check if the custom builder registered with this selector should be applied to the given element.
-
-
-
Field Detail
-
PAYLOAD
static final CustomBuilder.Selector PAYLOAD
Selects the message payload element. For plain XML documents, that is the document element. For SOAP messages, that is the child element of the SOAP body.
-
-
Method Detail
-
accepts
boolean accepts(OMContainer parent, int depth, String namespaceURI, String localName)
Check if the custom builder registered with this selector should be applied to the given element. Note that this method will only be invoked for elements that can be represented asOMSourcedElementinstances in the object model. For plain XML documents this means every element, but for SOAP messages this restricts the set of elements. E.g. this method will never be invoked for SOAP faults.- Parameters:
parent- the parent of theOMElementto be builtdepth- the depth of the element (with the root element having depth 1)namespaceURI- the namespace URI of the element; nevernulllocalName- the local name of the element; nevernull- Returns:
trueif the element should be built as anOMSourcedElementusing the custom builder registered with this selector, in which caseCustomBuilder.create(OMElement)will be called to create the correspondingOMDataSource;falseotherwise
-
-