org.apache.tuscany.sca.policy
Interface PolicySet

All Known Implementing Classes:
PolicySetImpl

public interface PolicySet

Represents a policy set. See the Policy Framework specification for a description of this element.


Method Summary
 java.lang.String getAlwaysAppliesTo()
          Gets the XPath expression that is to be used to evaluate the SCA Artifacts that this policyset will always apply to immaterial of an intent declared on the SCA Artifact
 javax.xml.xpath.XPathExpression getAlwaysAppliesToXPathExpression()
          Get the XPath expression for the alwaysAppliesTo attribute
 java.lang.String getAppliesTo()
          Returns the XPath expression that is to be used to evaluate if this PolicySet applies to specific attachment point
 javax.xml.xpath.XPathExpression getAppliesToXPathExpression()
          Get the XPath expression for the appliesTo attribute
 java.util.Map<Intent,java.util.List<java.lang.Object>> getMappedPolicies()
          Returns the policies / policy attachments provided thro intent maps
 javax.xml.namespace.QName getName()
          Returns the intent name.
 java.util.List<java.lang.Object> getPolicies()
          Returns the list of concrete policies, either WS-Policy policy attachments, policy references, or policies expressed in another policy language.
 java.util.List<Intent> getProvidedIntents()
          Returns the list of provided intents
 java.util.List<PolicySet> getReferencedPolicySets()
          Returns the list of
 boolean isUnresolved()
          Returns true if the model element is unresolved.
 void setAlwaysAppliesTo(java.lang.String xpath)
          Sets the XPath expression that is to be used to evaluate the SCA Artifacts that this policyset will always apply to immaterial of an intent declared on the SCA Artifact
 void setAlwaysAppliesToXPathExpression(javax.xml.xpath.XPathExpression xpathExpression)
          Set the XPath expression for the alwaysAppliesTo attribute
 void setAppliesTo(java.lang.String xpath)
          Sets the XPath expression that is to be used to evaluate if this PolicySet applies to specific attachment point
 void setAppliesToXPathExpression(javax.xml.xpath.XPathExpression xpathExpression)
          Set the XPath expression for the appliesTo attribute
 void setName(javax.xml.namespace.QName name)
          Sets the intent name
 void setUnresolved(boolean unresolved)
          Sets whether the model element is unresolved.
 

Method Detail

getName

javax.xml.namespace.QName getName()
Returns the intent name.

Returns:
the intent name

setName

void setName(javax.xml.namespace.QName name)
Sets the intent name

Parameters:
name - the intent name

getReferencedPolicySets

java.util.List<PolicySet> getReferencedPolicySets()
Returns the list of

Returns:

getProvidedIntents

java.util.List<Intent> getProvidedIntents()
Returns the list of provided intents

Returns:

getPolicies

java.util.List<java.lang.Object> getPolicies()
Returns the list of concrete policies, either WS-Policy policy attachments, policy references, or policies expressed in another policy language.

Returns:
the list of concrete policies

isUnresolved

boolean isUnresolved()
Returns true if the model element is unresolved.

Returns:
true if the model element is unresolved.

setUnresolved

void setUnresolved(boolean unresolved)
Sets whether the model element is unresolved.

Parameters:
unresolved - whether the model element is unresolved

getAppliesTo

java.lang.String getAppliesTo()
Returns the XPath expression that is to be used to evaluate if this PolicySet applies to specific attachment point

Returns:
the XPath expression

setAppliesTo

void setAppliesTo(java.lang.String xpath)
Sets the XPath expression that is to be used to evaluate if this PolicySet applies to specific attachment point


getMappedPolicies

java.util.Map<Intent,java.util.List<java.lang.Object>> getMappedPolicies()
Returns the policies / policy attachments provided thro intent maps

Returns:

getAlwaysAppliesTo

java.lang.String getAlwaysAppliesTo()
Gets the XPath expression that is to be used to evaluate the SCA Artifacts that this policyset will always apply to immaterial of an intent declared on the SCA Artifact

Returns:
the XPath expression

setAlwaysAppliesTo

void setAlwaysAppliesTo(java.lang.String xpath)
Sets the XPath expression that is to be used to evaluate the SCA Artifacts that this policyset will always apply to immaterial of an intent declared on the SCA Artifact


getAppliesToXPathExpression

javax.xml.xpath.XPathExpression getAppliesToXPathExpression()
Get the XPath expression for the appliesTo attribute

Returns:
the XPath expression for the appliesTo attribute

setAppliesToXPathExpression

void setAppliesToXPathExpression(javax.xml.xpath.XPathExpression xpathExpression)
Set the XPath expression for the appliesTo attribute

Parameters:
xpathExpression - the XPath expression for the appliesTo attribute

getAlwaysAppliesToXPathExpression

javax.xml.xpath.XPathExpression getAlwaysAppliesToXPathExpression()
Get the XPath expression for the alwaysAppliesTo attribute

Returns:
the XPath expression for the alwaysAppliesTo attribute

setAlwaysAppliesToXPathExpression

void setAlwaysAppliesToXPathExpression(javax.xml.xpath.XPathExpression xpathExpression)
Set the XPath expression for the alwaysAppliesTo attribute

Parameters:
xpathExpression - the XPath expression for the alwaysAppliesTo attribute