|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AssertionBuilder<T>
AssertionBuilder is the interface which must implement by any CustomAssertionBuilder. It defines a single method which takes an element definitionand an AssertionFactory instance and creates an Assertion. The AssertionBuilder must use one of the types for which there is a Converter registered. By default, that would be either an Element, and XMLStreamReader, or OMElement (if Axiom is available). Custom AssertionBuilder authors can use the AssertionFactory specified to build Assertions for any unknown elements inside the given element. They are given the opportunity to control the behavior of Assertion operations based on the corresponding domain policy assertion of the given element and the level of its processing.
Method Summary | |
---|---|
Assertion |
build(T element,
AssertionBuilderFactory factory)
Constructs an assertion from a known element. |
QName[] |
getKnownElements()
Returns an array of QNames of elements from which assertion can be built by this AssertionFactory. |
Method Detail |
---|
Assertion build(T element, AssertionBuilderFactory factory) throws IllegalArgumentException
element
- the known element from which an assertion can be builtfactory
- the factory from which AssertionBuilders are taken to build
assertion from unknown child elements
IllegalArgumentException
- if the given element is malformedQName[] getKnownElements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |