|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.neethi.PolicyReference
public class PolicyReference
PolicyReference is a wrapper that holds explict PolicyReferences.
| Constructor Summary | |
|---|---|
PolicyReference()
|
|
| Method Summary | |
|---|---|
boolean |
equal(PolicyComponent policyComponent)
Returns true if the argument is equal to self. |
org.apache.axiom.om.OMElement |
getRemoteReferedElement(java.lang.String uri)
|
Policy |
getRemoteReferencedPolicy(java.lang.String uri)
|
short |
getType()
Returns short value of Constants.TYPE_POLICY_REF |
java.lang.String |
getURI()
Gets the Policy URI that is refered by self. |
PolicyComponent |
normalize()
Throws an UnsupportedOperationException since PolicyReference.normalize() can't resolve the Policy that it refers to unless a PolicyRegistry is provided. |
PolicyComponent |
normalize(PolicyRegistry reg,
boolean deep)
Returns normalized version of the Policy that is refered by self. |
void |
serialize(javax.xml.stream.XMLStreamWriter writer)
Serializes the PolicyComponent using an XMLStreamWriter. |
void |
setURI(java.lang.String uri)
Sets the Policy URI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolicyReference()
| Method Detail |
|---|
public void setURI(java.lang.String uri)
uri - the Policy URIpublic java.lang.String getURI()
public boolean equal(PolicyComponent policyComponent)
PolicyComponent
equal in interface PolicyComponentpolicyComponent - the PolicyComponent to check whether self is
logically equal or not
public short getType()
getType in interface PolicyComponentpublic PolicyComponent normalize()
public PolicyComponent normalize(PolicyRegistry reg,
boolean deep)
reg - the PolicyRegistry that is used to resolved the Policy refered by selfdeep - the falg to indicate whether returning Policy should be fully normailized
public void serialize(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
PolicyComponent
serialize in interface PolicyComponentwriter - the writer that the component should write itself
javax.xml.stream.XMLStreamException - if an errors in the process of serialization of the
PolicyComponent.public org.apache.axiom.om.OMElement getRemoteReferedElement(java.lang.String uri)
public Policy getRemoteReferencedPolicy(java.lang.String uri)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||