|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.ws.policy.AbstractAssertion
AbstractAssertion provides the default implementation of some basic functions definded in Assertion interface.
| Field Summary | |
protected java.util.ArrayList |
childTerms
To store terms of this assertion |
protected boolean |
flag
Flag to mark whether this assertion is in normalize format |
protected int |
lineNo
To store the line no of the assertion in the file |
protected Assertion |
parent
To refer to the parent of this assertion |
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 | |
AbstractAssertion()
|
|
| 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 this assertion. |
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. |
boolean |
hasParent()
Returns true if this assertion object has a parent. |
Assertion |
intersect(Assertion assertion)
Default implementation of intersect(Assertion) operation. |
boolean |
isEmpty()
Returns true if this assertion has no terms. |
boolean |
isNormalized()
Returns true if this assertion is in normalzied format. |
Assertion |
merge(Assertion assertion)
Default implementation of merge(Assertion) operation. |
Assertion |
normalize()
Default implementation of normalize() operation. |
boolean |
remove(Assertion assertion)
Remove the geven term from the set of terms of this assertion. |
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 it is in normalized format. |
void |
setParent(Assertion parent)
Sets the parent of this assertion. |
void |
setSource(java.lang.String source)
Sets specified string as the source of the assertion. |
int |
size()
Returns the number of terms this assertion has. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.ws.policy.Assertion |
getType, intersect, merge, normalize |
| Field Detail |
protected boolean flag
protected java.util.ArrayList childTerms
protected Assertion parent
protected java.lang.String source
protected int lineNo
| Constructor Detail |
public AbstractAssertion()
| Method Detail |
public Assertion normalize()
throws java.lang.UnsupportedOperationException
normalize in interface Assertionjava.lang.UnsupportedOperationException
public Assertion intersect(Assertion assertion)
throws java.lang.UnsupportedOperationException
intersect in interface Assertionassertion - the assertion to intersect with this object.
java.lang.UnsupportedOperationException
public Assertion merge(Assertion assertion)
throws java.lang.UnsupportedOperationException
merge in interface Assertionassertion - the assertion to merge with this object.
java.lang.UnsupportedOperationExceptionpublic boolean isNormalized()
isNormalized in interface Assertionpublic void setNormalized(boolean flag)
setNormalized in interface Assertionflag - which marks this object as in its normalized format or not.public boolean hasParent()
hasParent in interface Assertionpublic Assertion getParent()
getParent in interface Assertionpublic void setParent(Assertion parent)
setParent in interface Assertionparent - of this assertion.public void addTerm(Assertion assertion)
addTerm in interface Assertionassertion - the term to addpublic void addTerms(java.util.List assertions)
addTerms in interface Assertionassertions - list of terms to addpublic java.util.List getTerms()
getTerms in interface Assertionpublic boolean isEmpty()
isEmpty in interface Assertionpublic boolean remove(Assertion assertion)
remove in interface Assertionassertion - the assertion to remove from the terms list.
public int size()
size in interface Assertionpublic void setSource(java.lang.String source)
Assertion
setSource in interface Assertionsource - the string which describe the source of the origin of the
assertionpublic java.lang.String getSource()
Assertion
getSource in interface Assertionpublic void setLineNo(int lineNo)
Assertion
setLineNo in interface AssertionlineNo - public int getLineNo()
Assertion
getLineNo in interface Assertion
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||