org.apache.neethi
Class All
java.lang.Object
org.apache.neethi.AbstractPolicyOperator
org.apache.neethi.All
- All Implemented Interfaces:
- PolicyComponent, PolicyOperator
- Direct Known Subclasses:
- Policy
public class All
- extends AbstractPolicyOperator
All is a PolicyOperator that require all its PolicyComponents to be met.
Constructor Summary |
All()
|
Method Summary |
void |
addAssertion(Assertion assertion)
Adds an assertion to its PolicyComponent list. |
List |
getAssertions()
Returns a List of it's PolicyComponents. |
short |
getType()
Returns Constants.TYPE_ALL |
void |
serialize(javax.xml.stream.XMLStreamWriter writer)
Serializes the PolicyComponent using an XMLStreamWriter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
All
public All()
addAssertion
public void addAssertion(Assertion assertion)
- Adds an assertion to its PolicyComponent list.
- Parameters:
assertion
- the assertion to be added.
getAssertions
public List getAssertions()
- Returns a List of it's PolicyComponents.
- Returns:
- a List of it's PolicyComponents
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 short getType()
- Returns Constants.TYPE_ALL
- 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-2011 Apache Software Foundation. All Rights Reserved.