Tuscany Assembly Model

org.apache.tuscany.model.assembly.impl
Class PortImpl

java.lang.Object
  extended by org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
      extended by org.apache.tuscany.model.assembly.impl.PortImpl
All Implemented Interfaces:
AssemblyObject, Port
Direct Known Subclasses:
ReferenceImpl, ServiceImpl

public abstract class PortImpl
extends AssemblyObjectImpl
implements Port

An implementation of Port.


Constructor Summary
protected PortImpl()
           
 
Method Summary
 boolean accept(AssemblyVisitor visitor)
          Accept a visitor
 void freeze()
          Freeze this model object preventing any additional changes.
 java.lang.String getName()
          Returns the name of the port where it is associated with a requestor or provider.
 ServiceContract getServiceContract()
          Returns the contract for invocations of a service using this port.
 void initialize(AssemblyContext modelContext)
          Initialize this model object.
 void setName(java.lang.String value)
          Sets the name of the port where it is associated with a requestor or provider.
 void setServiceContract(ServiceContract value)
          Set the contract for invocations of a service using this port.
 
Methods inherited from class org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
accept, checkInitialized, checkNotFrozen, freeze, initialize, isFrozen, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortImpl

protected PortImpl()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Port
Returns the name of the port where it is associated with a requestor or provider.

Specified by:
getName in interface Port
Returns:
the name of the port

setName

public void setName(java.lang.String value)
Description copied from interface: Port
Sets the name of the port where it is associated with a requestor or provider.

Specified by:
setName in interface Port
Parameters:
value - the name of the port where it is associated with a requestor or provider

getServiceContract

public ServiceContract getServiceContract()
Description copied from interface: Port
Returns the contract for invocations of a service using this port.

Specified by:
getServiceContract in interface Port
Returns:
the oontract for invocations of a service using this port

setServiceContract

public void setServiceContract(ServiceContract value)
Description copied from interface: Port
Set the contract for invocations of a service using this port.

Specified by:
setServiceContract in interface Port
Parameters:
value - the contract for invocations of a service using this port

initialize

public void initialize(AssemblyContext modelContext)
Description copied from interface: AssemblyObject
Initialize this model object.

Specified by:
initialize in interface AssemblyObject
Overrides:
initialize in class AssemblyObjectImpl
Parameters:
modelContext - context providing access to the environment in which this model is being used

freeze

public void freeze()
Description copied from interface: AssemblyObject
Freeze this model object preventing any additional changes.

Specified by:
freeze in interface AssemblyObject
Overrides:
freeze in class AssemblyObjectImpl

accept

public boolean accept(AssemblyVisitor visitor)
Description copied from interface: AssemblyObject
Accept a visitor

Specified by:
accept in interface AssemblyObject
Overrides:
accept in class AssemblyObjectImpl
Parameters:
visitor - a visitor that is visiting the model
Returns:
true if processing is complete and the visitor should stop traversing the model

Tuscany Assembly Model

-