|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.neethi.AbstractPolicyOperator
org.apache.neethi.All
org.apache.neethi.Policy
public class Policy
Policy is a PolicyOperator that requires to statisfy all of its PolicyComponents. It is always the outermost component of a Policy.
Field Summary |
---|
Fields inherited from class org.apache.neethi.AbstractPolicyOperator |
---|
policyComponents |
Constructor Summary | |
---|---|
Policy()
|
Method Summary | |
---|---|
void |
addAttribute(javax.xml.namespace.QName name,
String value)
Adds an attribute to self. |
Iterator |
getAlternatives()
Returns an Iterator that will return a list of assertions correspond to a Policy alternative if any. |
String |
getAttribute(javax.xml.namespace.QName name)
Returns the value of the attribute specified by the QName. |
Map |
getAttributes()
Returns a Map of all attributes of self. |
String |
getId()
Returns the Id attribute of self. |
String |
getName()
Returns the Name attribute of self. |
short |
getType()
Returns Constants.TYPE_POLICY |
Policy |
intersect(Policy policy)
Throws an UnSupportedOpertionException. |
Policy |
merge(Policy policy)
Returns a Policy that is the merge of specified Policy and self. |
PolicyComponent |
normalize(boolean deep)
Returns a Normalized version of self. |
PolicyComponent |
normalize(PolicyRegistry reg,
boolean deep)
Returns a normalized version of self.If deep is set false then the assertions are not normalized and it returns a partially normalized version of self. |
void |
serialize(javax.xml.stream.XMLStreamWriter writer)
Serializes the Policy to a XMLStreamWriter. |
void |
setId(String id)
Sets the wsu:Id attribute of self. |
void |
setName(String name)
Sets the Name attribute of self. |
Methods inherited from class org.apache.neethi.All |
---|
addAssertion, getAssertions |
Methods inherited from class org.apache.neethi.AbstractPolicyOperator |
---|
addPolicyComponent, addPolicyComponents, equal, getFirstPolicyComponent, getPolicyComponents, isEmpty, normalize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Policy()
Method Detail |
---|
public PolicyComponent normalize(boolean deep)
deep
- a flag to indicate whether to normalize the assertions
public PolicyComponent normalize(PolicyRegistry reg, boolean deep)
reg
- a PolicyRegistry from which the PolicyReferences are resolveddeep
- a flag to indicate whether to normalize the assertions
public Policy merge(Policy policy)
policy
- the Policy to be merged with self
public Policy intersect(Policy policy)
public void serialize(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
serialize
in interface PolicyComponent
serialize
in class All
writer
- the writer that the component should write itself
javax.xml.stream.XMLStreamException
- if an errors in the process of serialization of the
PolicyComponent.public short getType()
getType
in interface PolicyComponent
getType
in class All
public Iterator getAlternatives()
public void addAttribute(javax.xml.namespace.QName name, String value)
name
- the name of the attributevalue
- the value of the attributepublic String getAttribute(javax.xml.namespace.QName name)
name
- the QName of the attribute
public Map getAttributes()
public void setName(String name)
name
- the Name attribute of selfpublic String getName()
public void setId(String id)
id
- the Id attribute of selfpublic String getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |