org.apache.neethi
Class AssertionBuilderFactory
java.lang.Object
org.apache.neethi.AssertionBuilderFactory
- public class AssertionBuilderFactory
- extends java.lang.Object
AssertionFactory is used to create an Assertion from an OMElement. It uses an
appropriate AssertionBuilder instace to create an Assertion based on the
QName of the given OMElement. Domain Policy authors could right custom
AssertionBuilders to build Assertions for domain specific assertions.
Method Summary |
Assertion |
build(org.apache.axiom.om.OMElement element)
Returns an assertion that is built using the specified OMElement. |
AssertionBuilder |
getBuilder(javax.xml.namespace.QName qname)
Returns an AssertionBuilder that build an Assertion from an OMElement
of qname type. |
static void |
registerBuilder(javax.xml.namespace.QName key,
AssertionBuilder builder)
Registers an AssertionBuilder with a specified QName. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POLICY_NAMESPACE
public static final java.lang.String POLICY_NAMESPACE
- See Also:
- Constant Field Values
POLICY
public static final java.lang.String POLICY
- See Also:
- Constant Field Values
EXACTLY_ONE
public static final java.lang.String EXACTLY_ONE
- See Also:
- Constant Field Values
ALL
public static final java.lang.String ALL
- See Also:
- Constant Field Values
AssertionBuilderFactory
public AssertionBuilderFactory()
registerBuilder
public static void registerBuilder(javax.xml.namespace.QName key,
AssertionBuilder builder)
- Registers an AssertionBuilder with a specified QName.
- Parameters:
key
- the QName that the AssertionBuilder understandbuilder
- the AssertionBuilder that can build an Assertion from
OMElement of specified type
build
public Assertion build(org.apache.axiom.om.OMElement element)
- Returns an assertion that is built using the specified OMElement.
- Parameters:
element
- the element that the AssertionBuilder can use to build
an Assertion.
- Returns:
- an Assertion that is built using the specified element.
getBuilder
public AssertionBuilder getBuilder(javax.xml.namespace.QName qname)
- Returns an AssertionBuilder that build an Assertion from an OMElement
of qname type.
- Parameters:
qname
- the type that the AssertionBuilder understands and builds an Assertion from
- Returns:
- an AssertionBuilder that understands qname type
Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.