Package org.apache.neethi
Interface Assertion
- All Superinterfaces:
PolicyComponent
- All Known Subinterfaces:
IntersectableAssertion,PolicyContainingAssertion
- All Known Implementing Classes:
PolicyContainingPrimitiveAssertion,PrimitiveAssertion,XmlPrimitiveAssertion
This is an interface that any Assertion must implement. Hence any domain
specific type can be used with this framework if it implements this
interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the QName of the Root Element of this Assertion.booleanReturns true if this Assertion is ignorable.booleanReturns true if this Assertion is optional.Returns a new PolicyComponent that is the normalized version of this.voidserialize(XMLStreamWriter writer) Serialize this Assertion into its XML infoset using XMLStreamWriter.Methods inherited from interface org.apache.neethi.PolicyComponent
equal, getType
-
Method Details
-
getName
QName getName()Returns the QName of the Root Element of this Assertion.- Returns:
- QName the QName of the Root Element of this Assertion.
-
isOptional
boolean isOptional()Returns true if this Assertion is optional. Returns false otherwise.- Returns:
- true if the assertion is optional.
-
isIgnorable
boolean isIgnorable()Returns true if this Assertion is ignorable. Returns false otherwise.- Returns:
- true if the assertion is ignorable.
-
serialize
Serialize this Assertion into its XML infoset using XMLStreamWriter.- Specified by:
serializein interfacePolicyComponent- Parameters:
writer- the writer that the component should write itself- Throws:
XMLStreamException- if an errors in the process of serialization of the PolicyComponent.
-
normalize
PolicyComponent normalize()Returns a new PolicyComponent that is the normalized version of this.- Returns:
- the normalized policy
-