org.apache.neethi
Class AbstractPolicyOperator
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
policyComponents
protected List<PolicyComponent> policyComponents
AbstractPolicyOperator
public AbstractPolicyOperator()
AbstractPolicyOperator
public AbstractPolicyOperator(PolicyOperator parent)
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-2012 The Apache Software Foundation. All Rights Reserved.