org.apache.tuscany.sca.extension.helper.utils
Class AbstractBinding

java.lang.Object
  extended by org.apache.tuscany.sca.extension.helper.utils.AbstractBinding
All Implemented Interfaces:
java.lang.Cloneable, Base, Binding
Direct Known Subclasses:
PojoBinding

public class AbstractBinding
extends java.lang.Object
implements Binding

Helper for implementing Bindings, implements all the standard getters and setters on the binding interface.


Constructor Summary
AbstractBinding()
           
 
Method Summary
 java.lang.Object clone()
          Clone the binding
 java.util.List<java.lang.Object> getExtensions()
           
 java.lang.String getName()
          Returns the binding name.
 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 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

AbstractBinding

public AbstractBinding()
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

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

getExtensions

public java.util.List<java.lang.Object> getExtensions()

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