org.apache.tuscany.sca.assembly.impl
Class ConfiguredOperationImpl

java.lang.Object
  extended by org.apache.tuscany.sca.assembly.impl.BaseImpl
      extended by org.apache.tuscany.sca.assembly.impl.ConfiguredOperationImpl
All Implemented Interfaces:
Base, ConfiguredOperation, IntentAttachPoint, PolicySetAttachPoint

public class ConfiguredOperationImpl
extends BaseImpl
implements ConfiguredOperation

Represents an Operation.


Constructor Summary
protected ConfiguredOperationImpl()
          Constructs a new Operation.
 
Method Summary
 java.util.List<PolicySet> getApplicablePolicySets()
          Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint.
 java.lang.String getContractName()
          Returns the name of the service or reference to which this operation belongs.
 java.lang.String getName()
          Returns the name of the operation.
 java.util.List<PolicySet> getPolicySets()
          Returns a list of policy sets.
 java.util.List<Intent> getRequiredIntents()
          Returns a list of policy intents.
 IntentAttachPointType getType()
          Returns the type of the attach point such as a BindingType or an ImplementationType and so on
 void setContractName(java.lang.String contractName)
          Sets the name of the service or reference to which this operation belongs.
 void setName(java.lang.String name)
          Sets the name of the operation.
 void setPolicySets(java.util.List<PolicySet> policySets)
           
 void setRequiredIntents(java.util.List<Intent> intents)
           
 void setType(IntentAttachPointType type)
          Sets the type of the attach point such as a BindingType or an ImplementationType and so on
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.BaseImpl
isUnresolved, setUnresolved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 

Constructor Detail

ConfiguredOperationImpl

protected ConfiguredOperationImpl()
Constructs a new Operation.

Method Detail

getPolicySets

public java.util.List<PolicySet> getPolicySets()
Description copied from interface: PolicySetAttachPoint
Returns a list of policy sets. See the Policy Framework specification for a description of this attribute.

Specified by:
getPolicySets in interface PolicySetAttachPoint
Returns:
a list of policy sets.

setPolicySets

public void setPolicySets(java.util.List<PolicySet> policySets)

getName

public java.lang.String getName()
Description copied from interface: ConfiguredOperation
Returns the name of the operation.

Specified by:
getName in interface ConfiguredOperation
Returns:
the name of the operation

setName

public void setName(java.lang.String name)
Description copied from interface: ConfiguredOperation
Sets the name of the operation.

Specified by:
setName in interface ConfiguredOperation
Parameters:
name - the name of the operation

getRequiredIntents

public java.util.List<Intent> getRequiredIntents()
Description copied from interface: IntentAttachPoint
Returns a list of policy intents. See the Policy Framework specification for a description of this attribute.

Specified by:
getRequiredIntents in interface IntentAttachPoint
Returns:
a list of policy intents.

setRequiredIntents

public void setRequiredIntents(java.util.List<Intent> intents)

getContractName

public java.lang.String getContractName()
Description copied from interface: ConfiguredOperation
Returns the name of the service or reference to which this operation belongs. This method is particularly useful when operation elements are specified under implementation elements and it is necessary to identify which of the various services provided by the implementation is referred to by the operation element in question

Specified by:
getContractName in interface ConfiguredOperation
Returns:
the name of the contract to which this operation belongs

setContractName

public void setContractName(java.lang.String contractName)
Description copied from interface: ConfiguredOperation
Sets the name of the service or reference to which this operation belongs.

Specified by:
setContractName in interface ConfiguredOperation
Parameters:
contractName - the name of the contract to which this operation belongs

getType

public IntentAttachPointType getType()
Description copied from interface: IntentAttachPoint
Returns the type of the attach point such as a BindingType or an ImplementationType and so on

Specified by:
getType in interface IntentAttachPoint
Returns:

setType

public void setType(IntentAttachPointType type)
Description copied from interface: IntentAttachPoint
Sets the type of the attach point such as a BindingType or an ImplementationType and so on

Specified by:
setType in interface IntentAttachPoint

getApplicablePolicySets

public java.util.List<PolicySet> getApplicablePolicySets()
Description copied from interface: PolicySetAttachPoint
Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint. An applicable PolicySet is one that include this PolicySetAttachPoint as part of its 'appliesTo' XPath attribute.

Specified by:
getApplicablePolicySets in interface PolicySetAttachPoint
Returns:
a list of policy sets applicable to this PolicySetAttachPoint