public class PolicyReference extends Object implements PolicyComponent
Constructor and Description |
---|
PolicyReference() |
PolicyReference(PolicyBuilder p) |
Modifier and Type | Method and Description |
---|---|
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(XMLStreamWriter writer)
Serializes the PolicyComponent using an XMLStreamWriter.
|
void |
setURI(String uri)
Sets the Policy URI
|
public PolicyReference()
public PolicyReference(PolicyBuilder p)
public void setURI(String uri)
uri
- the Policy URIpublic String getURI()
public boolean equal(PolicyComponent policyComponent)
PolicyComponent
equal
in interface PolicyComponent
policyComponent
- the PolicyComponent to check whether self is
logically equal or notpublic short getType()
getType
in interface PolicyComponent
public 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 normalizedpublic void serialize(XMLStreamWriter writer) throws XMLStreamException
PolicyComponent
serialize
in interface PolicyComponent
writer
- the writer that the component should write itselfXMLStreamException
- if an errors in the process of serialization of the
PolicyComponent.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.