org.apache.cxf.ws.policy.builder.xml
Class XmlPrimitiveAssertion
java.lang.Object
org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertion
org.apache.cxf.ws.policy.builder.xml.XmlPrimitiveAssertion
- All Implemented Interfaces:
- PolicyAssertion, org.apache.neethi.Assertion, org.apache.neethi.PolicyComponent
public class XmlPrimitiveAssertion
- extends PrimitiveAssertion
XmlPrimitiveAssertion is a primitive implementation of an AssertionBuilder
that simply wraps the underlying xml element.
Method Summary |
protected PolicyAssertion |
cloneMandatory()
|
Element |
getValue()
Returns the wrapped element. |
org.apache.neethi.PolicyComponent |
normalize(boolean isDeep)
Throws an UnsupportedOperationException since an assertion of an unknown
element can't be fully normalized due to it's unknown composite. |
Methods inherited from class org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertion |
equal, getName, getPolicy, getType, isAsserted, isOptional, normalize, serialize, setName, setOptional, toString |
XmlPrimitiveAssertion
public XmlPrimitiveAssertion(Element e)
- Constructs a XmlPrimitiveAssertion from an xml element.
- Parameters:
e
- the xml element
getValue
public Element getValue()
- Returns the wrapped element.
- Returns:
- the wrapped element
normalize
public org.apache.neethi.PolicyComponent normalize(boolean isDeep)
- Throws an UnsupportedOperationException since an assertion of an unknown
element can't be fully normalized due to it's unknown composite.
cloneMandatory
protected PolicyAssertion cloneMandatory()
- Overrides:
cloneMandatory
in class PrimitiveAssertion
Apache CXF