org.apache.tuscany.sca.policy.impl
Class PolicySetImpl

java.lang.Object
  extended by org.apache.tuscany.sca.policy.impl.PolicySetImpl
All Implemented Interfaces:
PolicySet

public class PolicySetImpl
extends java.lang.Object
implements PolicySet

Represents a policy set.


Constructor Summary
protected PolicySetImpl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 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
 int hashCode()
           
 boolean isUnresolved()
          Returns true if the model element is unresolved.
 void setAlwaysAppliesTo(java.lang.String alwaysAppliesTo)
          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 alwaysAppliesToXPathExpression)
          Set the XPath expression for the alwaysAppliesTo attribute
 void setAppliesTo(java.lang.String appliesTo)
          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 appliesToXPathExpression)
          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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolicySetImpl

protected PolicySetImpl()
Method Detail

getAlwaysAppliesTo

public java.lang.String getAlwaysAppliesTo()
Description copied from interface: PolicySet
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

Specified by:
getAlwaysAppliesTo in interface PolicySet
Returns:
the XPath expression

setAlwaysAppliesTo

public void setAlwaysAppliesTo(java.lang.String alwaysAppliesTo)
Description copied from interface: PolicySet
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

Specified by:
setAlwaysAppliesTo in interface PolicySet

getName

public javax.xml.namespace.QName getName()
Description copied from interface: PolicySet
Returns the intent name.

Specified by:
getName in interface PolicySet
Returns:
the intent name

setName

public void setName(javax.xml.namespace.QName name)
Description copied from interface: PolicySet
Sets the intent name

Specified by:
setName in interface PolicySet
Parameters:
name - the intent name

getAppliesTo

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

Specified by:
getAppliesTo in interface PolicySet
Returns:
the XPath expression

setAppliesTo

public void setAppliesTo(java.lang.String appliesTo)
Description copied from interface: PolicySet
Sets the XPath expression that is to be used to evaluate if this PolicySet applies to specific attachment point

Specified by:
setAppliesTo in interface PolicySet

getProvidedIntents

public java.util.List<Intent> getProvidedIntents()
Description copied from interface: PolicySet
Returns the list of provided intents

Specified by:
getProvidedIntents in interface PolicySet
Returns:

getReferencedPolicySets

public java.util.List<PolicySet> getReferencedPolicySets()
Description copied from interface: PolicySet
Returns the list of

Specified by:
getReferencedPolicySets in interface PolicySet
Returns:

getPolicies

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

Specified by:
getPolicies in interface PolicySet
Returns:
the list of concrete policies

isUnresolved

public boolean isUnresolved()
Description copied from interface: PolicySet
Returns true if the model element is unresolved.

Specified by:
isUnresolved in interface PolicySet
Returns:
true if the model element is unresolved.

setUnresolved

public void setUnresolved(boolean unresolved)
Description copied from interface: PolicySet
Sets whether the model element is unresolved.

Specified by:
setUnresolved in interface PolicySet
Parameters:
unresolved - whether the model element is unresolved

getMappedPolicies

public java.util.Map<Intent,java.util.List<java.lang.Object>> getMappedPolicies()
Description copied from interface: PolicySet
Returns the policies / policy attachments provided thro intent maps

Specified by:
getMappedPolicies in interface PolicySet
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAppliesToXPathExpression

public javax.xml.xpath.XPathExpression getAppliesToXPathExpression()
Description copied from interface: PolicySet
Get the XPath expression for the appliesTo attribute

Specified by:
getAppliesToXPathExpression in interface PolicySet
Returns:
the XPath expression for the appliesTo attribute

setAppliesToXPathExpression

public void setAppliesToXPathExpression(javax.xml.xpath.XPathExpression appliesToXPathExpression)
Description copied from interface: PolicySet
Set the XPath expression for the appliesTo attribute

Specified by:
setAppliesToXPathExpression in interface PolicySet
Parameters:
appliesToXPathExpression - the XPath expression for the appliesTo attribute

getAlwaysAppliesToXPathExpression

public javax.xml.xpath.XPathExpression getAlwaysAppliesToXPathExpression()
Description copied from interface: PolicySet
Get the XPath expression for the alwaysAppliesTo attribute

Specified by:
getAlwaysAppliesToXPathExpression in interface PolicySet
Returns:
the XPath expression for the alwaysAppliesTo attribute

setAlwaysAppliesToXPathExpression

public void setAlwaysAppliesToXPathExpression(javax.xml.xpath.XPathExpression alwaysAppliesToXPathExpression)
Description copied from interface: PolicySet
Set the XPath expression for the alwaysAppliesTo attribute

Specified by:
setAlwaysAppliesToXPathExpression in interface PolicySet
Parameters:
alwaysAppliesToXPathExpression - the XPath expression for the alwaysAppliesTo attribute