public class XMLPrimitiveAssertionBuilder extends Object implements AssertionBuilder<Element>
Constructor and Description |
---|
XMLPrimitiveAssertionBuilder() |
Modifier and Type | Method and Description |
---|---|
Assertion |
build(Element 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.
|
protected QName |
getQName(Element element) |
static boolean |
isIgnorable(Element el) |
static boolean |
isOptional(Element el) |
Assertion |
newPolicyContainingAssertion(Element element,
Map<QName,String> atts,
Policy policy) |
Assertion |
newPrimitiveAssertion(Element element,
Map<QName,String> atts) |
public Assertion build(Element element, AssertionBuilderFactory factory) throws IllegalArgumentException
AssertionBuilder
build
in interface AssertionBuilder<Element>
element
- the known element from which an assertion can be builtfactory
- the factory from which AssertionBuilders are taken to build
assertion from unknown child elementsIllegalArgumentException
- if the given element is malformedpublic Assertion newPrimitiveAssertion(Element element, Map<QName,String> atts)
public Assertion newPolicyContainingAssertion(Element element, Map<QName,String> atts, Policy policy)
public static boolean isOptional(Element el)
public static boolean isIgnorable(Element el)
public QName[] getKnownElements()
AssertionBuilder
getKnownElements
in interface AssertionBuilder<Element>
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.