org.apache.neethi
Class AbstractPolicyOperator

java.lang.Object
  extended by org.apache.neethi.AbstractPolicyOperator
All Implemented Interfaces:
PolicyComponent, PolicyOperator
Direct Known Subclasses:
All, ExactlyOne

public abstract class AbstractPolicyOperator
extends Object
implements PolicyOperator

AbstractPolicyOperator provides an implementation of few functions of PolicyOperator interface that other PolicyOperators can use.


Field Summary
protected  List<PolicyComponent> policyComponents
           
 
Constructor Summary
AbstractPolicyOperator()
           
AbstractPolicyOperator(PolicyOperator parent)
           
 
Method Summary
 void addPolicyComponent(PolicyComponent component)
          Add a PolicyComponent to the PolicyOperator.
 void addPolicyComponents(List<? extends PolicyComponent> components)
           
 boolean equal(PolicyComponent policyComponent)
          Returns true if the argument is equal to self.
 PolicyComponent getFirstPolicyComponent()
           
 List<PolicyComponent> getPolicyComponents()
          Returns a List of PolicyComponents which this PolicyOperator contains.
 boolean isEmpty()
          Returns true if the PolicyOperator doesn't contain any PolicyComponents.
protected static Policy normalize(Policy policy, PolicyRegistry reg, boolean deep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.neethi.PolicyComponent
getType, serialize
 

Field Detail

policyComponents

protected List<PolicyComponent> policyComponents
Constructor Detail

AbstractPolicyOperator

public AbstractPolicyOperator()

AbstractPolicyOperator

public AbstractPolicyOperator(PolicyOperator parent)
Method Detail

addPolicyComponent

public void addPolicyComponent(PolicyComponent component)
Description copied from interface: PolicyOperator
Add a PolicyComponent to the PolicyOperator.

Specified by:
addPolicyComponent in interface PolicyOperator

addPolicyComponents

public void addPolicyComponents(List<? extends PolicyComponent> components)

getPolicyComponents

public List<PolicyComponent> getPolicyComponents()
Description copied from interface: PolicyOperator
Returns a List of PolicyComponents which this PolicyOperator contains.

Specified by:
getPolicyComponents in interface PolicyOperator
Returns:
the List of PolicyComponents that this PolicyOperator contains.

getFirstPolicyComponent

public PolicyComponent getFirstPolicyComponent()

isEmpty

public boolean isEmpty()
Description copied from interface: PolicyOperator
Returns true if the PolicyOperator doesn't contain any PolicyComponents.

Specified by:
isEmpty in interface PolicyOperator
Returns:
true if this PolicyOperator doesn't contain any PolicyComponenets

equal

public boolean equal(PolicyComponent policyComponent)
Description copied from interface: PolicyComponent
Returns true if the argument is equal to self.

Specified by:
equal in interface PolicyComponent
Parameters:
policyComponent - the PolicyComponent to check whether self is logically equal or not
Returns:
true if the argument is equal to self.

normalize

protected static Policy normalize(Policy policy,
                                  PolicyRegistry reg,
                                  boolean deep)


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