org.apache.cxf.ws.policy.builder.primitive
Class PrimitiveAssertionBuilder
java.lang.Object
org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertionBuilder
- All Implemented Interfaces:
- AssertionBuilder
- Direct Known Subclasses:
- NestedPrimitiveAssertionBuilder, XMLPrimitiveAssertionBuilder
public class PrimitiveAssertionBuilder
- extends Object
- implements AssertionBuilder
Field Summary |
protected Bus |
bus
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bus
protected Bus bus
PrimitiveAssertionBuilder
public PrimitiveAssertionBuilder()
PrimitiveAssertionBuilder
public PrimitiveAssertionBuilder(Collection<QName> els)
setBus
public void setBus(Bus b)
build
public PolicyAssertion build(Element element)
- Description copied from interface:
AssertionBuilder
- Constructs an assertion from an xml element.
- Specified by:
build
in interface AssertionBuilder
- Parameters:
element
- the element from which to build an assertion
- Returns:
- an Assertion built from the given element
getKnownElements
public Collection<QName> getKnownElements()
- Description copied from interface:
AssertionBuilder
- Returns a collection of QNames describing the xml schema types for which this
builder can build assertions.
- Specified by:
getKnownElements
in interface AssertionBuilder
- Returns:
- collection of QNames of known schema types
setKnownElements
public void setKnownElements(Collection<QName> k)
buildCompatible
public PolicyAssertion buildCompatible(PolicyAssertion a,
PolicyAssertion b)
- If the two assertions are equal, they are also compatible.
The compatible policy is optional iff both assertions are optional.
- Specified by:
buildCompatible
in interface AssertionBuilder
Apache CXF