org.apache.tuscany.sca.binding.rmi.impl
Class RMIBindingImpl

java.lang.Object
  extended by org.apache.tuscany.sca.binding.rmi.impl.RMIBindingImpl
All Implemented Interfaces:
java.lang.Cloneable, Base, Binding, RMIBinding

public class RMIBindingImpl
extends java.lang.Object
implements RMIBinding

Represents a binding to an RMI service.


Constructor Summary
RMIBindingImpl()
           
 
Method Summary
 java.lang.Object clone()
          Clone the binding
 java.lang.String getHost()
           
 java.lang.String getName()
          Returns the binding name.
 java.lang.String getPort()
           
 java.lang.String getServiceName()
           
 java.lang.String getURI()
          Returns the binding URI.
 boolean isUnresolved()
          Returns true if the model element is unresolved.
 void setHost(java.lang.String rmiHostName)
           
 void setName(java.lang.String name)
          Sets the binding name.
 void setPort(java.lang.String rmiPort)
           
 void setServiceName(java.lang.String rmiServiceName)
          Sets the service name for the RMI Server
 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

RMIBindingImpl

public RMIBindingImpl()
Method Detail

getHost

public java.lang.String getHost()
Specified by:
getHost in interface RMIBinding
Returns:
the host name of the RMI Service

setHost

public void setHost(java.lang.String rmiHostName)
Specified by:
setHost in interface RMIBinding
Parameters:
rmiHostName - the hostname of the RMI Service

getPort

public java.lang.String getPort()
Specified by:
getPort in interface RMIBinding
Returns:
the port number for the RMI Service

setPort

public void setPort(java.lang.String rmiPort)
Specified by:
setPort in interface RMIBinding
Parameters:
rmiPort - the port number for the RMI Service

getServiceName

public java.lang.String getServiceName()
Specified by:
getServiceName in interface RMIBinding
Returns:
returns the RMI Service Name

setServiceName

public void setServiceName(java.lang.String rmiServiceName)
Sets the service name for the RMI Server

Specified by:
setServiceName in interface RMIBinding
Parameters:
rmiServiceName - the name of the RMI service

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

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