org.apache.neethi
Interface Assertion

All Superinterfaces:
PolicyComponent
All Known Subinterfaces:
IntersectableAssertion, PolicyContainingAssertion
All Known Implementing Classes:
PolicyContainingPrimitiveAssertion, PrimitiveAssertion, XmlPrimitiveAssertion

public interface Assertion
extends PolicyComponent

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
 QName getName()
          Returns the QName of the Root Element of this Assertion.
 boolean isIgnorable()
          Returns true if this Assertion is ignorable.
 boolean isOptional()
          Returns true if this Assertion is optional.
 PolicyComponent normalize()
          Returns a new PolicyComponent that is the normalized version of this.
 void serialize(javax.xml.stream.XMLStreamWriter writer)
          Serialize this Assertion into its XML infoset using XMLStreamWriter.
 
Methods inherited from interface org.apache.neethi.PolicyComponent
equal, getType
 

Method Detail

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

void serialize(javax.xml.stream.XMLStreamWriter writer)
               throws javax.xml.stream.XMLStreamException
Serialize this Assertion into its XML infoset using XMLStreamWriter.

Specified by:
serialize in interface PolicyComponent
Parameters:
writer - the writer that the component should write itself
Throws:
javax.xml.stream.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.



Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.