|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.policy.PolicyReference
PolicyReference class has implicit reference to a external policy. It is used as a way to include an extenal policy object within another policy object. These objects are replaced with the actual policies when a Policy object is being normalized. Sanka Samaranayake (sanka@apache.org)
Field Summary |
Fields inherited from interface org.apache.ws.policy.Assertion |
COMPOSITE_AND_TYPE, COMPOSITE_POLICY_TYPE, COMPOSITE_XOR_TYPE, POLIY_REFERCE_TYPE, PRIMITIVE_TYPE |
Constructor Summary | |
PolicyReference(java.lang.String policyURIString)
Constructs a PolicyReferece object which refers to the Policy which is uniquely identified by policyURIString. |
Method Summary | |
void |
addTerm(Assertion assertion)
Adds an assertion as a term of this assertion. |
void |
addTerms(java.util.List assertions)
Adds a list of assertions as terms of this assertion. |
Assertion |
getParent()
Returns the parent of self or null if a parent non-exists |
java.lang.String |
getPolicyURIString()
Returns a string which uniquely identified the referring Policy. |
java.util.List |
getTerms()
Returns the list of terms of this assertion. |
short |
getType()
Returns a short value which indicate this is a PolicyReference. |
boolean |
hasParent()
Returns ture if the assertion has a parent |
Assertion |
intersect(Assertion assertion)
Returns an assertion which is the equivalent of intersect of self and argument. |
Assertion |
intersect(Assertion assertion,
PolicyRegistry reg)
Returns an assertion which is equivalent of intersect of self and argument. |
boolean |
isEmpty()
Returns true if there are no terms in this assertion. |
boolean |
isNormalized()
Returns true if the assertion is in normalized form. |
Assertion |
merge(Assertion assertion)
Returns the equivalent of merge of self and argument. |
Assertion |
merge(Assertion assertion,
PolicyRegistry reg)
Returns the equivalent of merge of self and argument. |
Assertion |
normalize()
Returns a new assertion which is the normalized form of this assertion. |
Assertion |
normalize(PolicyRegistry reg)
Returns a new assertion which is the normalized form of this assertion. |
boolean |
remove(Assertion assertion)
Removes the specified assertion from the terms list. |
void |
setNormalized(boolean flag)
Marks this assertion as in normalized form. |
void |
setParent(Assertion parent)
Sets the parent to argument |
int |
size()
Returns the number of terms of this assertion. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PolicyReference(java.lang.String policyURIString)
policyURIString
- Method Detail |
public java.lang.String getPolicyURIString()
public Assertion normalize()
Assertion
normalize
in interface Assertion
public Assertion normalize(PolicyRegistry reg)
Assertion
normalize
in interface Assertion
reg
- the registry which is used to resolve any policy references in
the process of normalization.
public Assertion intersect(Assertion assertion)
Assertion
intersect
in interface Assertion
assertion
- the assertion to intersect with
public Assertion intersect(Assertion assertion, PolicyRegistry reg) throws java.lang.UnsupportedOperationException
Assertion
intersect
in interface Assertion
assertion
- the assertion to intersect with
java.lang.UnsupportedOperationException
- if the operation is not meaningfulpublic Assertion merge(Assertion assertion, PolicyRegistry reg) throws java.lang.UnsupportedOperationException
Assertion
merge
in interface Assertion
assertion
- the assertion to merge withreg
- the policy registry that should be used to resolve external
policy references
java.lang.UnsupportedOperationException
- if the merge is not meaningfulpublic Assertion merge(Assertion assertion)
Assertion
merge
in interface Assertion
assertion
- the argument to merge with
public boolean hasParent()
Assertion
hasParent
in interface Assertion
public Assertion getParent()
Assertion
getParent
in interface Assertion
public void setParent(Assertion parent)
Assertion
setParent
in interface Assertion
parent
- the parent that should be parent of selfpublic boolean isNormalized()
Assertion
isNormalized
in interface Assertion
public void setNormalized(boolean flag)
Assertion
setNormalized
in interface Assertion
flag
- public void addTerm(Assertion assertion)
Assertion
addTerm
in interface Assertion
assertion
- the assertion to add as a termpublic void addTerms(java.util.List assertions)
Assertion
addTerms
in interface Assertion
assertions
- the list of assertions to add as termspublic java.util.List getTerms()
Assertion
getTerms
in interface Assertion
public boolean isEmpty()
Assertion
isEmpty
in interface Assertion
public boolean remove(Assertion assertion)
Assertion
remove
in interface Assertion
assertion
- the assertion to remove from the terms list.
public int size()
Assertion
size
in interface Assertion
public final short getType()
getType
in interface Assertion
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |