Tuscany Assembly Model

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

java.lang.Object
  extended by org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
      extended by org.apache.tuscany.model.assembly.impl.ExtensibleImpl
          extended by org.apache.tuscany.model.assembly.impl.ComponentTypeImpl
All Implemented Interfaces:
AssemblyObject, ComponentType, Extensible

public class ComponentTypeImpl
extends ExtensibleImpl
implements ComponentType

An implementation of ComponentType.


Constructor Summary
protected ComponentTypeImpl()
           
 
Method Summary
 boolean accept(AssemblyVisitor visitor)
          Accept a visitor
 void freeze()
          Freeze this model object preventing any additional changes.
 java.util.List<Property> getProperties()
          Returns the list of properties that can be used to configure components with this component type.
 Property getProperty(java.lang.String name)
          Returns the specified property
 Reference getReference(java.lang.String name)
          Returns the specified reference.
 java.util.List<Reference> getReferences()
          Returns the list of references this component type consumes.
 Service getService(java.lang.String name)
          Returns the specfied service if exposed by this component type.
 java.util.List<Service> getServices()
          Returns a list of services exposed by this component type.
 void initialize(AssemblyContext modelContext)
          Initialize this model object.
 
Methods inherited from class org.apache.tuscany.model.assembly.impl.ExtensibleImpl
getExtensibilityAttributes, getExtensibilityElements
 
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
 
Methods inherited from interface org.apache.tuscany.model.assembly.Extensible
getExtensibilityAttributes, getExtensibilityElements
 

Constructor Detail

ComponentTypeImpl

protected ComponentTypeImpl()
Method Detail

getReferences

public java.util.List<Reference> getReferences()
Description copied from interface: ComponentType
Returns the list of references this component type consumes.

Specified by:
getReferences in interface ComponentType
Returns:
the list of references this component type consumes

getReference

public Reference getReference(java.lang.String name)
Description copied from interface: ComponentType
Returns the specified reference.

Specified by:
getReference in interface ComponentType
Parameters:
name - the name of the reference
Returns:
the reference identified by the supplied name, or null if there is no reference with that name

getServices

public java.util.List<Service> getServices()
Description copied from interface: ComponentType
Returns a list of services exposed by this component type.

Specified by:
getServices in interface ComponentType
Returns:
a list of services exposed by this component type

getService

public Service getService(java.lang.String name)
Description copied from interface: ComponentType
Returns the specfied service if exposed by this component type.

Specified by:
getService in interface ComponentType
Parameters:
name - the name of the service
Returns:
the service identified by the supplied name, or null if there is no service with that name

getProperties

public java.util.List<Property> getProperties()
Description copied from interface: ComponentType
Returns the list of properties that can be used to configure components with this component type.

Specified by:
getProperties in interface ComponentType
Returns:
the list of properties that can be used to configure components with this component type

getProperty

public Property getProperty(java.lang.String name)
Description copied from interface: ComponentType
Returns the specified property

Specified by:
getProperty in interface ComponentType
Parameters:
name - the name of the property
Returns:
the property with the supplied name, or null if there is no property with that name

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 ExtensibleImpl
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 ExtensibleImpl

accept

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

Specified by:
accept in interface AssemblyObject
Overrides:
accept in class ExtensibleImpl
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

-