org.apache.tuscany.sca.binding.sca.impl
Class SCABindingImpl

java.lang.Object
  extended by org.apache.tuscany.sca.binding.sca.impl.SCABindingImpl
All Implemented Interfaces:
java.lang.Cloneable, Base, Binding, AutomaticBinding, Extensible, OptimizableBinding, SCABinding, IntentAttachPoint, PolicySetAttachPoint

public class SCABindingImpl
extends java.lang.Object
implements SCABinding, Extensible, PolicySetAttachPoint, OptimizableBinding, AutomaticBinding

The assembly mode object for an SCA binding.


Constructor Summary
protected SCABindingImpl()
          Constructs a new SCA binding.
 
Method Summary
 java.lang.Object clone()
          Clone the binding
 java.util.List<PolicySet> getApplicablePolicySets()
          Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint.
 java.util.List<java.lang.Object> getExtensions()
          Returns a list of extension objects contained in this model object.
 boolean getIsAutomatic()
           
 java.lang.String getName()
          Setters for the binding name.
 java.util.List<PolicySet> getPolicySets()
          Returns a list of policy sets.
 java.util.List<Intent> getRequiredIntents()
          Returns a list of policy intents.
 Binding getTargetBinding()
           
 Component getTargetComponent()
           
 ComponentService getTargetComponentService()
           
 IntentAttachPointType getType()
          Returns the type of the attach point such as a BindingType or an ImplementationType and so on
 java.lang.String getURI()
          Getters for the binding URI.
 boolean isUnresolved()
          Returns true if the model element is unresolved.
 void setIsAutomatic(boolean isAutomatic)
           
 void setName(java.lang.String name)
          Setter for the binding name
 void setPolicySets(java.util.List<PolicySet> policySets)
           
 void setRequiredIntents(java.util.List<Intent> intents)
           
 void setTargetBinding(Binding targetBinding)
           
 void setTargetComponent(Component targetComponent)
           
 void setTargetComponentService(ComponentService targetComponentService)
           
 void setType(IntentAttachPointType intentAttachPointType)
          Sets the type of the attach point such as a BindingType or an ImplementationType and so on
 void setUnresolved(boolean unresolved)
          Sets whether the model element is unresolved.
 void setURI(java.lang.String uri)
          Setter for the binding URI
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCABindingImpl

protected SCABindingImpl()
Constructs a new SCA binding.

Method Detail

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

getName

public java.lang.String getName()
Setters for the binding name. Defaults to the name of the service or reference with which the binding is associated

Specified by:
getName in interface Binding
Returns:
the binding name

setName

public void setName(java.lang.String name)
Setter for the binding name

Specified by:
setName in interface Binding
Parameters:
name - the binding name

getURI

public java.lang.String getURI()
Getters for the binding URI. The computed URI for the service that the reference is targeting or which the service represents depending on whether the biding is associated with a reference or service

Specified by:
getURI in interface Binding
Returns:
the binding URI

setURI

public void setURI(java.lang.String uri)
Setter for the binding URI

Specified by:
setURI in interface Binding
Parameters:
uri - the binding URI

getExtensions

public java.util.List<java.lang.Object> getExtensions()
Returns a list of extension objects contained in this model object.

Specified by:
getExtensions in interface Extensible
Returns:
a list of extension objects container in this model object

isUnresolved

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

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

setUnresolved

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

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

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: Binding
Clone the binding

Specified by:
clone in interface Binding
Specified by:
clone in interface OptimizableBinding
Overrides:
clone in class java.lang.Object
Returns:
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()

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.

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.

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 intentAttachPointType)
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

getTargetComponent

public Component getTargetComponent()
Specified by:
getTargetComponent in interface OptimizableBinding
Returns:
the targetComponent

setTargetComponent

public void setTargetComponent(Component targetComponent)
Specified by:
setTargetComponent in interface OptimizableBinding
Parameters:
targetComponent - the targetComponent to set

getTargetComponentService

public ComponentService getTargetComponentService()
Specified by:
getTargetComponentService in interface OptimizableBinding
Returns:
the targetComponentService

setTargetComponentService

public void setTargetComponentService(ComponentService targetComponentService)
Specified by:
setTargetComponentService in interface OptimizableBinding
Parameters:
targetComponentService - the targetComponentService to set

getTargetBinding

public Binding getTargetBinding()
Specified by:
getTargetBinding in interface OptimizableBinding
Returns:
the targetBinding

setTargetBinding

public void setTargetBinding(Binding targetBinding)
Specified by:
setTargetBinding in interface OptimizableBinding
Parameters:
targetBinding - the targetBinding to set

setPolicySets

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

setRequiredIntents

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

setIsAutomatic

public void setIsAutomatic(boolean isAutomatic)
Specified by:
setIsAutomatic in interface AutomaticBinding

getIsAutomatic

public boolean getIsAutomatic()
Specified by:
getIsAutomatic in interface AutomaticBinding
Returns:
isAutomatic