Interface CustomBuilder.Selector
- Enclosing interface:
- CustomBuilder
public static interface CustomBuilder.Selector
Selects the elements to which a custom builder is applied. Note that this interface may be
implemented by the
CustomBuilder itself.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CustomBuilder.SelectorSelects the message payload element. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(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 Details
-
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 Details
-
accepts
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
-