|
|||||||||||
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 | |
protected int |
lineNo
To store the line no of the assertion in the file |
protected java.lang.String |
source
To store the description of the origin of the assertion |
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. |
int |
getLineNo()
Returns the line no of the assertion which is line no of the assertion in the file where the assertion is first read. |
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.lang.String |
getSource()
Returns a string which describes the source of the assertion. |
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 |
setLineNo(int lineNo)
Sets the line no of the assertion which should be the line no of the assertion in the file where the assertion is first read. |
void |
setNormalized(boolean flag)
Marks this assertion as in normalized form. |
void |
setParent(Assertion parent)
Sets the parent to argument |
void |
setSource(java.lang.String source)
Sets specified string as the source of the assertion. |
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 |
Field Detail |
protected java.lang.String source
protected int lineNo
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
public void setSource(java.lang.String source)
Assertion
setSource
in interface Assertion
source
- the string which describe the source of the origin of the
assertionpublic java.lang.String getSource()
Assertion
getSource
in interface Assertion
public void setLineNo(int lineNo)
Assertion
setLineNo
in interface Assertion
lineNo
- public int getLineNo()
Assertion
getLineNo
in interface Assertion
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |