org.apache.neethi
Interface PolicyOperator

All Superinterfaces:
PolicyComponent
All Known Implementing Classes:
AbstractPolicyOperator, All, ExactlyOne, Policy

public interface PolicyOperator
extends PolicyComponent

PolicyOperator is an interface that all Policy operators must implement. It can contain any number of Assertions or PolicyOperators and it has an Implicit logic of how those PolicyComponents should be met.


Method Summary
 void addPolicyComponent(PolicyComponent component)
          Add a PolicyComponent to the PolicyOperator.
 List<PolicyComponent> getPolicyComponents()
          Returns a List of PolicyComponents which this PolicyOperator contains.
 boolean isEmpty()
          Returns true if the PolicyOperator doesn't contain any PolicyComponents.
 
Methods inherited from interface org.apache.neethi.PolicyComponent
equal, getType, serialize
 

Method Detail

addPolicyComponent

void addPolicyComponent(PolicyComponent component)
Add a PolicyComponent to the PolicyOperator.

Parameters:
component -

getPolicyComponents

List<PolicyComponent> getPolicyComponents()
Returns a List of PolicyComponents which this PolicyOperator contains.

Returns:
the List of PolicyComponents that this PolicyOperator contains.

isEmpty

boolean isEmpty()
Returns true if the PolicyOperator doesn't contain any PolicyComponents.

Returns:
true if this PolicyOperator doesn't contain any PolicyComponenets


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.