Tuscany Assembly Model

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

java.lang.Object
  extended by org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
All Implemented Interfaces:
AssemblyObject
Direct Known Subclasses:
ConfiguredPortImpl, ConfiguredPropertyImpl, ExtensibleImpl, ImportWSDLImpl, PortImpl

public abstract class AssemblyObjectImpl
extends java.lang.Object
implements AssemblyObject

A base class for assembly model objects.


Constructor Summary
protected AssemblyObjectImpl()
           
 
Method Summary
 boolean accept(AssemblyVisitor visitor)
          Accept a visitor
protected  boolean accept(java.util.Collection collection, AssemblyVisitor visitor)
          Walk a visitor through a collection of model objects.
protected  void checkInitialized()
          Check that the current model object is initialized.
protected  void checkNotFrozen()
          Check that the current model object can be modified.
 void freeze()
          Freeze this model object preventing any additional changes.
protected
<T> java.util.List<T>
freeze(java.util.List<T> list)
          Freeze a list and its members
 void initialize(AssemblyContext modelContext)
          Initialize this model object.
protected  void initialize(java.util.Collection collection, AssemblyContext modelContext)
          Initialize members of a collection
protected  boolean isFrozen()
          Returns true if the object is frozen
protected  boolean isInitialized()
          Returns true if the object is initialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssemblyObjectImpl

protected AssemblyObjectImpl()
Method Detail

accept

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

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

accept

protected boolean accept(java.util.Collection collection,
                         AssemblyVisitor visitor)
Walk a visitor through a collection of model objects.

Parameters:
collection -
visitor -

freeze

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

Specified by:
freeze in interface AssemblyObject

isFrozen

protected boolean isFrozen()
Returns true if the object is frozen


freeze

protected <T> java.util.List<T> freeze(java.util.List<T> list)
Freeze a list and its members


checkNotFrozen

protected void checkNotFrozen()
Check that the current model object can be modified.

Throws:
java.lang.IllegalStateException

initialize

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

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

isInitialized

protected boolean isInitialized()
Returns true if the object is initialized


initialize

protected void initialize(java.util.Collection collection,
                          AssemblyContext modelContext)
Initialize members of a collection


checkInitialized

protected void checkInitialized()
Check that the current model object is initialized.

Throws:
java.lang.IllegalStateException

Tuscany Assembly Model

-