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
AssertionBuilderbuild 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()
AssertionBuildergetKnownElements in interface AssertionBuilder<Element>Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.