org.apache.tuscany.sca.interfacedef.impl
Class InterfaceContractImpl

java.lang.Object
  extended by org.apache.tuscany.sca.interfacedef.impl.InterfaceContractImpl
All Implemented Interfaces:
java.lang.Cloneable, InterfaceContract
Direct Known Subclasses:
JavaInterfaceContractImpl, WSDLInterfaceContractImpl

public abstract class InterfaceContractImpl
extends java.lang.Object
implements InterfaceContract

Represents an interface contract. InterfaceContractImpl


Constructor Summary
InterfaceContractImpl()
           
 
Method Summary
 InterfaceContractImpl clone()
          Implementations must support cloning.
 boolean equals(java.lang.Object obj)
           
 Interface getCallbackInterface()
          Returns the interface definition representing the interface for invocations from the provider to the requestor.
 Interface getInterface()
          Returns the interface definition representing the interface for invocations from the requestor to the provider.
 int hashCode()
           
 InterfaceContract makeUnidirectional(boolean isCallback)
          Convert an interface contract to a unidirectional interface contract
 void setCallbackInterface(Interface callbackInterface)
          Sets the interface definition representing the interface for invocations from the provider to the requestor.
 void setInterface(Interface callInterface)
          Sets the interface definition representing the interface for invocations from the requestor to the provider.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterfaceContractImpl

public InterfaceContractImpl()
Method Detail

getCallbackInterface

public Interface getCallbackInterface()
Description copied from interface: InterfaceContract
Returns the interface definition representing the interface for invocations from the provider to the requestor.

Specified by:
getCallbackInterface in interface InterfaceContract
Returns:
the interface definition representing the interface for invocations from the provider to the requestor.

getInterface

public Interface getInterface()
Description copied from interface: InterfaceContract
Returns the interface definition representing the interface for invocations from the requestor to the provider.

Specified by:
getInterface in interface InterfaceContract
Returns:
the interface definition representing the interface for invocations from the requestor to the provider

setCallbackInterface

public void setCallbackInterface(Interface callbackInterface)
Description copied from interface: InterfaceContract
Sets the interface definition representing the interface for invocations from the provider to the requestor.

Specified by:
setCallbackInterface in interface InterfaceContract
Parameters:
callbackInterface - the interface definition representing the interface for invocations from the provider to the requestor.

setInterface

public void setInterface(Interface callInterface)
Description copied from interface: InterfaceContract
Sets the interface definition representing the interface for invocations from the requestor to the provider.

Specified by:
setInterface in interface InterfaceContract
Parameters:
callInterface - the interface definition representing the interface for invocations from the requestor to the provider

makeUnidirectional

public InterfaceContract makeUnidirectional(boolean isCallback)
Description copied from interface: InterfaceContract
Convert an interface contract to a unidirectional interface contract

Specified by:
makeUnidirectional in interface InterfaceContract
Parameters:
isCallback - true for a callback interface contract, false for a forward interface contract
Returns:
A unidirectional interface contract, cloned if necessary

clone

public InterfaceContractImpl clone()
                            throws java.lang.CloneNotSupportedException
Description copied from interface: InterfaceContract
Implementations must support cloning.

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)