public abstract class AbstractPolicyOperator extends Object implements PolicyOperator
Modifier and Type | Field and Description |
---|---|
protected List<PolicyComponent> |
policyComponents |
Constructor and Description |
---|
AbstractPolicyOperator() |
AbstractPolicyOperator(PolicyOperator parent) |
Modifier and Type | Method and Description |
---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType, serialize
protected List<PolicyComponent> policyComponents
public AbstractPolicyOperator()
public AbstractPolicyOperator(PolicyOperator parent)
public void addPolicyComponent(PolicyComponent component)
PolicyOperator
addPolicyComponent
in interface PolicyOperator
component
- Component to add to the operatorpublic void addPolicyComponents(List<? extends PolicyComponent> components)
public List<PolicyComponent> getPolicyComponents()
PolicyOperator
getPolicyComponents
in interface PolicyOperator
public PolicyComponent getFirstPolicyComponent()
public boolean isEmpty()
PolicyOperator
isEmpty
in interface PolicyOperator
public boolean equal(PolicyComponent policyComponent)
PolicyComponent
equal
in interface PolicyComponent
policyComponent
- the PolicyComponent to check whether self is
logically equal or notprotected static Policy normalize(Policy policy, PolicyRegistry reg, boolean deep)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.