|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.ws.policy.AbstractAssertion
org.apache.ws.policy.PrimitiveAssertion
PrimitiveAssertion wraps an assertion which contain domain specific knowledge. This type of an assertion should only be evaluated by a component which contains the required knowledge. For instance a PrimitiveAssertion which contains a WSSecurity policy assertionshould be processed only by the security module.
| Field Summary |
| Fields inherited from class org.apache.ws.policy.AbstractAssertion |
childTerms, lineNo, parent, source |
| 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 | |
PrimitiveAssertion(javax.xml.namespace.QName qname)
|
|
PrimitiveAssertion(javax.xml.namespace.QName qname,
java.lang.Object value)
|
|
| Method Summary | |
void |
addAttribute(javax.xml.namespace.QName qname,
java.lang.Object value)
|
void |
addTerm(Assertion term)
Adds an assertion as a term of this assertion. |
void |
addTerms(java.util.List terms)
Adds a list of assertions as terms of this assertion. |
java.lang.String |
getAttribute(javax.xml.namespace.QName qname)
|
java.util.Hashtable |
getAttributes()
|
javax.xml.namespace.QName |
getName()
|
Assertion |
getParent()
Returns the parent of self or null if a parent non-exists |
java.lang.String |
getStrValue()
|
java.util.List |
getTerms()
Returns the list of terms of this assertion. |
short |
getType()
Returns a short type which describes the type of the assertion. |
java.lang.Object |
getValue()
|
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. |
boolean |
isOptional()
|
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 |
removeAttribute(javax.xml.namespace.QName qname)
|
void |
setAttributes(java.util.Hashtable attributes)
|
void |
setNormalized(boolean flag)
Marks this assertion as in normalized form. |
void |
setOptional(boolean isOptional)
|
void |
setParent(Assertion parent)
Sets the parent to argument |
void |
setStrValue(java.lang.String strValue)
|
void |
setTerms(java.util.List terms)
|
int |
size()
Returns the number of terms of this assertion. |
| Methods inherited from class org.apache.ws.policy.AbstractAssertion |
getLineNo, getSource, setLineNo, setSource |
| 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 |
getLineNo, getSource, setLineNo, setSource |
| Constructor Detail |
public PrimitiveAssertion(javax.xml.namespace.QName qname)
public PrimitiveAssertion(javax.xml.namespace.QName qname,
java.lang.Object value)
| Method Detail |
public java.lang.Object getValue()
public javax.xml.namespace.QName getName()
public Assertion intersect(Assertion assertion,
PolicyRegistry reg)
Assertion
intersect in interface Assertionassertion - the assertion to intersect with
public Assertion intersect(Assertion assertion)
throws java.lang.UnsupportedOperationException
Assertion
intersect in interface Assertionintersect in class AbstractAssertionassertion - the assertion to intersect with this object.
java.lang.UnsupportedOperationException
public Assertion merge(Assertion assertion,
PolicyRegistry reg)
Assertion
merge in interface Assertionassertion - the assertion to merge withreg - the policy registry that should be used to resolve external
policy references
public Assertion merge(Assertion assertion)
Assertion
merge in interface Assertionmerge in class AbstractAssertionassertion - the assertion to merge with this object.
public Assertion normalize()
Assertion
normalize in interface Assertionnormalize in class AbstractAssertionpublic Assertion normalize(PolicyRegistry reg)
Assertion
normalize in interface Assertionreg - the registry which is used to resolve any policy references in
the process of normalization.
public boolean hasParent()
Assertion
hasParent in interface AssertionhasParent in class AbstractAssertionpublic Assertion getParent()
Assertion
getParent in interface AssertiongetParent in class AbstractAssertionpublic void setAttributes(java.util.Hashtable attributes)
public java.util.Hashtable getAttributes()
public void addAttribute(javax.xml.namespace.QName qname,
java.lang.Object value)
public java.lang.String getAttribute(javax.xml.namespace.QName qname)
public void removeAttribute(javax.xml.namespace.QName qname)
public void setParent(Assertion parent)
Assertion
setParent in interface AssertionsetParent in class AbstractAssertionparent - of this assertion.public java.util.List getTerms()
Assertion
getTerms in interface AssertiongetTerms in class AbstractAssertionpublic void setTerms(java.util.List terms)
public void addTerm(Assertion term)
Assertion
addTerm in interface AssertionaddTerm in class AbstractAssertionterm - the term to addpublic void addTerms(java.util.List terms)
Assertion
addTerms in interface AssertionaddTerms in class AbstractAssertionterms - list of terms to addpublic boolean isNormalized()
Assertion
isNormalized in interface AssertionisNormalized in class AbstractAssertionpublic void setNormalized(boolean flag)
Assertion
setNormalized in interface AssertionsetNormalized in class AbstractAssertionflag - which marks this object as in its normalized format or not.public java.lang.String getStrValue()
public void setStrValue(java.lang.String strValue)
public boolean isOptional()
public void setOptional(boolean isOptional)
public boolean isEmpty()
Assertion
isEmpty in interface AssertionisEmpty in class AbstractAssertionpublic boolean remove(Assertion assertion)
Assertion
remove in interface Assertionremove in class AbstractAssertionpublic int size()
Assertion
size in interface Assertionsize in class AbstractAssertionpublic final short getType()
Assertion
getType in interface Assertion
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||