Interface PolicyComponent

All Known Subinterfaces:
Assertion, IntersectableAssertion, PolicyContainingAssertion, PolicyOperator
All Known Implementing Classes:
AbstractPolicyOperator, All, ExactlyOne, Policy, PolicyContainingPrimitiveAssertion, PolicyReference, PrimitiveAssertion, XmlPrimitiveAssertion

public interface PolicyComponent
This is an interface which any component of the framework must implement.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equal(PolicyComponent policyComponent)
    Returns true if the argument is equal to self.
    short
    Returns a short value which uniquely identify the type of the PolicyComponent.
    void
    Serializes the PolicyComponent using an XMLStreamWriter.
  • Method Details

    • serialize

      void serialize(XMLStreamWriter writer) throws XMLStreamException
      Serializes the PolicyComponent using an XMLStreamWriter.
      Parameters:
      writer - the writer that the component should write itself
      Throws:
      XMLStreamException - if an errors in the process of serialization of the PolicyComponent.
    • getType

      short getType()
      Returns a short value which uniquely identify the type of the PolicyComponent.
      Returns:
      Constants.TYPE_POLICY for Policy type PolicyComponent Constants.TYPE_EXACTLYONE for ExactlyOne type PolicyComponent Constants.TYPE_ALL for All type PolicyComponent Constants.TYPE_ASSERTION for Assertion type PolicyComponent
    • equal

      boolean equal(PolicyComponent policyComponent)
      Returns true if the argument is equal to self.
      Parameters:
      policyComponent - the PolicyComponent to check whether self is logically equal or not
      Returns:
      true if the argument is equal to self.