org.apache.neethi
Class ExactlyOne

java.lang.Object
  extended byorg.apache.neethi.AbstractPolicyOperator
      extended byorg.apache.neethi.ExactlyOne
All Implemented Interfaces:
PolicyComponent, PolicyOperator

public class ExactlyOne
extends AbstractPolicyOperator

ExactlyOne PolicyOperator requires exactly one of its PolicyComponents to be met.


Field Summary
 
Fields inherited from class org.apache.neethi.AbstractPolicyOperator
policyComponents
 
Constructor Summary
ExactlyOne()
           
 
Method Summary
 short getType()
          Returns Constants.TYPE_EXACTLYONE;
 void serialize(javax.xml.stream.XMLStreamWriter writer)
          Serializes the PolicyComponent using an XMLStreamWriter.
 
Methods inherited from class org.apache.neethi.AbstractPolicyOperator
addPolicyComponent, addPolicyComponents, equal, getFirstPolicyComponent, getPolicyComponents, isEmpty, normalize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExactlyOne

public ExactlyOne()
Method Detail

serialize

public void serialize(javax.xml.stream.XMLStreamWriter writer)
               throws javax.xml.stream.XMLStreamException
Description copied from interface: PolicyComponent
Serializes the PolicyComponent using an XMLStreamWriter.

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.

getType

public final short getType()
Returns Constants.TYPE_EXACTLYONE;

Returns:
Constants.POLICY for Policy type PolicyComponent Constants.EXACTLYONE for ExactlyOne type PolicyComponent Constants.ALL for All type PolicyComponent Constants.ASSERTION for Assertion type PolicyComponent


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.