|
||||||||||
| 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 explicit PolicyReferences.
| Constructor Summary | |
|---|---|
PolicyReference()
|
|
PolicyReference(PolicyBuilder p)
|
|
| Method Summary | |
|---|---|
boolean |
equal(PolicyComponent policyComponent)
Returns true if the argument is equal to self. |
Policy |
getRemoteReferencedPolicy(String u)
|
short |
getType()
Returns short value of Constants.TYPE_POLICY_REF |
String |
getURI()
Gets the Policy URI that is referred 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 referred by self. |
void |
serialize(javax.xml.stream.XMLStreamWriter writer)
Serializes the PolicyComponent using an XMLStreamWriter. |
void |
setURI(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()
public PolicyReference(PolicyBuilder p)
| Method Detail |
|---|
public void setURI(String uri)
uri - the Policy URIpublic 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 referred by selfdeep - the flag to indicate whether returning Policy should be fully normalized
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 Policy getRemoteReferencedPolicy(String u)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||