Class ExactlyOne

All Implemented Interfaces:
PolicyComponent, PolicyOperator

public class ExactlyOne extends AbstractPolicyOperator
ExactlyOne PolicyOperator requires exactly one of its PolicyComponents to be met.
  • Constructor Details

    • ExactlyOne

      public ExactlyOne()
    • ExactlyOne

      public ExactlyOne(PolicyOperator parent)
  • Method Details

    • serialize

      public void serialize(XMLStreamWriter writer) throws XMLStreamException
      Description copied from interface: PolicyComponent
      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

      public final short getType()
      Returns Constants.TYPE_EXACTLYONE;
      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