Package org.apache.neethi
Class ExactlyOne
java.lang.Object
org.apache.neethi.AbstractPolicyOperator
org.apache.neethi.ExactlyOne
- All Implemented Interfaces:
PolicyComponent,PolicyOperator
ExactlyOne PolicyOperator requires exactly one of its PolicyComponents to be
met.
-
Field Summary
Fields inherited from class org.apache.neethi.AbstractPolicyOperator
policyComponents -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal shortgetType()Returns Constants.TYPE_EXACTLYONE;voidserialize(XMLStreamWriter writer) Serializes the PolicyComponent using an XMLStreamWriter.Methods inherited from class org.apache.neethi.AbstractPolicyOperator
addPolicyComponent, addPolicyComponents, equal, getFirstPolicyComponent, getPolicyComponents, isEmpty, normalize
-
Constructor Details
-
ExactlyOne
public ExactlyOne() -
ExactlyOne
-
-
Method Details
-
serialize
Description copied from interface:PolicyComponentSerializes 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
-