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

java.lang.Object
  extended by org.apache.tuscany.sca.interfacedef.impl.InterfaceImpl
All Implemented Interfaces:
java.lang.Cloneable, Interface, IntentAttachPoint, PolicySetAttachPoint
Direct Known Subclasses:
JavaInterfaceImpl, WSDLInterfaceImpl

public class InterfaceImpl
extends java.lang.Object
implements Interface

Represents a service interface.


Constructor Summary
InterfaceImpl()
           
 
Method Summary
 java.lang.Object clone()
          Implementations must support cloning.
 boolean equals(java.lang.Object obj)
           
 java.util.List<PolicySet> getApplicablePolicySets()
          Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint.
 java.util.List<Operation> getOperations()
          Returns the operations defined on this interface.
 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
 int hashCode()
           
 boolean isConversational()
          Test if the interface is conversational
 boolean isDynamic()
          Returns true if the Interface is dynamic.
 boolean isRemotable()
          Returns true if the interface is a remotable interface..
 boolean isUnresolved()
           
 void resetDataBinding(java.lang.String dataBinding)
          Reset the databinding for the interface
 void setConversational(boolean conversational)
          Set whether the interface is conversational
 void setDefaultDataBinding(java.lang.String dataBinding)
          Deprecated. 
 void setRemotable(boolean local)
          Sets whether the interface is a remotable or local interface.
 void setType(IntentAttachPointType type)
          Sets the type of the attach point such as a BindingType or an ImplementationType and so on
 void setUnresolved(boolean undefined)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterfaceImpl

public InterfaceImpl()
Method Detail

isRemotable

public boolean isRemotable()
Description copied from interface: Interface
Returns true if the interface is a remotable interface..

Specified by:
isRemotable in interface Interface
Returns:
true if the interface is a remotable interface

setRemotable

public void setRemotable(boolean local)
Description copied from interface: Interface
Sets whether the interface is a remotable or local interface.

Specified by:
setRemotable in interface Interface
Parameters:
local - indicates whether the interface is remotable or local

getOperations

public java.util.List<Operation> getOperations()
Description copied from interface: Interface
Returns the operations defined on this interface.

Specified by:
getOperations in interface Interface
Returns:
the operations defined on this interface

isUnresolved

public boolean isUnresolved()

setUnresolved

public void setUnresolved(boolean undefined)

isConversational

public boolean isConversational()
Description copied from interface: Interface
Test if the interface is conversational

Specified by:
isConversational in interface Interface
Returns:
the conversational

setConversational

public void setConversational(boolean conversational)
Description copied from interface: Interface
Set whether the interface is conversational

Specified by:
setConversational in interface Interface
Parameters:
conversational - the conversational to set

setDefaultDataBinding

@Deprecated
public void setDefaultDataBinding(java.lang.String dataBinding)
Deprecated. 

Description copied from interface: Interface
Set the databinding for the interface

Specified by:
setDefaultDataBinding in interface Interface

resetDataBinding

public void resetDataBinding(java.lang.String dataBinding)
Description copied from interface: Interface
Reset the databinding for the interface

Specified by:
resetDataBinding in interface Interface

isDynamic

public boolean isDynamic()
Description copied from interface: Interface
Returns true if the Interface is dynamic.

Specified by:
isDynamic in interface Interface
Returns:
true if the Interface is dynamic.

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

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 type)
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

clone

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

Specified by:
clone in interface Interface
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)