|
|||||||||||
| 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.Policy
Policy class is the runtime representation of a policy. It provides a convenient model to store process any policy. Policy object requires that all its terms are met.
| Field Summary |
| Fields inherited from class org.apache.ws.policy.AbstractAssertion |
childTerms, flag, 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 | |
Policy()
Creates a policy object |
|
Policy(java.lang.String id)
Creates a policy object with the specified Id |
|
Policy(java.lang.String xmlBase,
java.lang.String id)
Creates a policy object with the specified xml-base and id. |
|
| Method Summary | |
java.lang.String |
getBase()
Returns the xml-base of the policy object. |
java.lang.String |
getId()
Returns the Id of the Policy object. |
java.lang.String |
getPolicyURI()
Returns a String which uniquely identify the policy object. |
short |
getType()
Returns a short value which indicates this is a Policy. |
Assertion |
intersect(Assertion assertion,
PolicyRegistry reg)
Returns an assertion which is equivalent of intersect 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. |
void |
setBase(java.lang.String xmlBase)
Set the xml-base of the policy object |
void |
setId(java.lang.String id)
Sets the id of the Policy object |
| Methods inherited from class org.apache.ws.policy.AbstractAssertion |
addTerm, addTerms, getLineNo, getParent, getSource, getTerms, hasParent, intersect, isEmpty, isNormalized, merge, remove, setLineNo, setNormalized, setParent, setSource, size |
| 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 |
addTerm, addTerms, getLineNo, getParent, getSource, getTerms, hasParent, intersect, isEmpty, isNormalized, merge, remove, setLineNo, setNormalized, setParent, setSource, size |
| Constructor Detail |
public Policy()
public Policy(java.lang.String id)
id - a string as the id
public Policy(java.lang.String xmlBase,
java.lang.String id)
xmlBase - the xml-baseid - a string as the id| Method Detail |
public void setBase(java.lang.String xmlBase)
xmlBase - the xml base of the policy objectpublic java.lang.String getBase()
public void setId(java.lang.String id)
id - public java.lang.String getId()
public java.lang.String getPolicyURI()
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 Assertion intersect(Assertion assertion,
PolicyRegistry reg)
Assertion
intersect in interface Assertionassertion - the assertion to intersect with
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 final short getType()
getType in interface Assertion
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||