org.apache.tuscany.sca.binding.jsonrpc.impl
Class JSONRPCBindingImpl

java.lang.Object
  extended by org.apache.tuscany.sca.binding.jsonrpc.impl.JSONRPCBindingImpl
All Implemented Interfaces:
java.lang.Cloneable, Base, Binding, JSONRPCBinding, IntentAttachPoint, PolicySetAttachPoint

public class JSONRPCBindingImpl
extends java.lang.Object
implements JSONRPCBinding

A model for the JSONRPC binding.


Constructor Summary
JSONRPCBindingImpl()
           
 
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.lang.String getName()
          Returns 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.
 IntentAttachPointType getType()
          Returns the type of the attach point such as a BindingType or an ImplementationType and so on
 java.lang.String getURI()
          Returns the binding URI.
 boolean isUnresolved()
          Returns true if the model element is unresolved.
 void setName(java.lang.String name)
          Sets the binding name.
 void setPolicySets(java.util.List<PolicySet> policySets)
           
 void setRequiredIntents(java.util.List<Intent> intents)
           
 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)
          Sets the binding URI.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONRPCBindingImpl

public JSONRPCBindingImpl()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Binding
Returns the binding name.

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

getURI

public java.lang.String getURI()
Description copied from interface: Binding
Returns the binding URI.

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

setURI

public void setURI(java.lang.String uri)
Description copied from interface: Binding
Sets the binding URI.

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

setName

public void setName(java.lang.String name)
Description copied from interface: Binding
Sets the binding name.

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

isUnresolved

public boolean isUnresolved()
Description copied from interface: Base
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)
Description copied from interface: Base
Sets whether the model element is unresolved.

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

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

setPolicySets

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

setRequiredIntents

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

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

clone

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

Specified by:
clone in interface Binding
Overrides:
clone in class java.lang.Object
Returns:
Throws:
java.lang.CloneNotSupportedException