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

    Modifier and Type
    Method
    Description
    Returns the QName of the Root Element of this Assertion.
    boolean
    Returns true if this Assertion is ignorable.
    boolean
    Returns true if this Assertion is optional.
    Returns a new PolicyComponent that is the normalized version of this.
    void
    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

      void serialize(XMLStreamWriter writer) throws 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:
      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