org.apache.tuscany.sca.binding.corba.impl
Class CorbaBindingImpl

java.lang.Object
  extended by org.apache.tuscany.sca.binding.corba.impl.CorbaBindingImpl
All Implemented Interfaces:
java.lang.Cloneable, Base, Binding, CorbaBinding, IntentAttachPoint, PolicySetAttachPoint

public class CorbaBindingImpl
extends java.lang.Object
implements CorbaBinding, PolicySetAttachPoint


Field Summary
 
Fields inherited from interface org.apache.tuscany.sca.binding.corba.CorbaBinding
BINDING_CORBA_QNAME
 
Constructor Summary
CorbaBindingImpl()
           
 
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 getCorbaname()
           
 java.lang.String getHost()
           
 java.lang.String getId()
           
 java.lang.String getName()
          Returns the binding name.
 java.util.List<PolicySet> getPolicySets()
          Returns a list of policy sets.
 int getPort()
           
 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 setHost(java.lang.String host)
           
 void setId(java.lang.String id)
           
 void setName(java.lang.String name)
          Sets the binding name.
 void setPolicySets(java.util.List<PolicySet> policySets)
           
 void setPort(int port)
           
 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

CorbaBindingImpl

public CorbaBindingImpl()
Method Detail

getHost

public java.lang.String getHost()
Specified by:
getHost in interface CorbaBinding

setHost

public void setHost(java.lang.String host)
Specified by:
setHost in interface CorbaBinding

getPort

public int getPort()
Specified by:
getPort in interface CorbaBinding

setPort

public void setPort(int port)
Specified by:
setPort in interface CorbaBinding

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

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

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

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

getId

public java.lang.String getId()
Specified by:
getId in interface CorbaBinding

setId

public void setId(java.lang.String id)
Specified by:
setId in interface CorbaBinding

getCorbaname

public java.lang.String getCorbaname()
Specified by:
getCorbaname in interface CorbaBinding