org.apache.cxf.ws.policy.builder.primitive
Class PrimitiveAssertion
java.lang.Object
org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertion
- All Implemented Interfaces:
- PolicyAssertion, org.apache.neethi.Assertion, org.apache.neethi.PolicyComponent
- Direct Known Subclasses:
- JaxbAssertion, NestedPrimitiveAssertion, XmlPrimitiveAssertion
public class PrimitiveAssertion
- extends Object
- implements PolicyAssertion
name
protected QName name
optional
protected boolean optional
PrimitiveAssertion
public PrimitiveAssertion()
PrimitiveAssertion
public PrimitiveAssertion(QName n)
PrimitiveAssertion
public PrimitiveAssertion(QName n,
boolean o)
PrimitiveAssertion
public PrimitiveAssertion(Element element)
toString
public String toString()
- Overrides:
toString
in class Object
equal
public boolean equal(org.apache.neethi.PolicyComponent policyComponent)
- Specified by:
equal
in interface org.apache.neethi.PolicyComponent
getType
public short getType()
- Specified by:
getType
in interface org.apache.neethi.PolicyComponent
getName
public QName getName()
- Specified by:
getName
in interface org.apache.neethi.Assertion
setName
public void setName(QName n)
isOptional
public boolean isOptional()
- Specified by:
isOptional
in interface org.apache.neethi.Assertion
setOptional
public void setOptional(boolean o)
normalize
public org.apache.neethi.PolicyComponent normalize()
- Specified by:
normalize
in interface org.apache.neethi.Assertion
serialize
public void serialize(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
- Specified by:
serialize
in interface org.apache.neethi.Assertion
- Specified by:
serialize
in interface org.apache.neethi.PolicyComponent
- Throws:
javax.xml.stream.XMLStreamException
cloneMandatory
protected PolicyAssertion cloneMandatory()
getPolicy
public org.apache.neethi.Policy getPolicy()
- Specified by:
getPolicy
in interface PolicyAssertion
isAsserted
public boolean isAsserted(AssertionInfoMap aim)
- Specified by:
isAsserted
in interface PolicyAssertion
Apache CXF