|
Tuscany Assembly Model | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
public abstract class AssemblyObjectImpl
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
|
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 |
---|
protected AssemblyObjectImpl()
Method Detail |
---|
public boolean accept(AssemblyVisitor visitor)
AssemblyObject
accept
in interface AssemblyObject
visitor
- a visitor that is visiting the model
protected boolean accept(java.util.Collection collection, AssemblyVisitor visitor)
collection
- visitor
- public void freeze()
AssemblyObject
freeze
in interface AssemblyObject
protected boolean isFrozen()
protected <T> java.util.List<T> freeze(java.util.List<T> list)
protected void checkNotFrozen()
java.lang.IllegalStateException
public void initialize(AssemblyContext modelContext)
AssemblyObject
initialize
in interface AssemblyObject
modelContext
- context providing access to the environment in which this model is being usedprotected boolean isInitialized()
protected void initialize(java.util.Collection collection, AssemblyContext modelContext)
protected void checkInitialized()
java.lang.IllegalStateException
|
Tuscany Assembly Model | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |