|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.util.build.SimpleBuildingContext
public final class SimpleBuildingContext
Implementation of a simple building context object
WARNING! This class is not meant to be thread safe
| Constructor Summary | |
|---|---|
SimpleBuildingContext(java.lang.Object root)
|
|
| Method Summary | |
|---|---|
void |
enterObject(java.lang.String name,
java.lang.Object block)
Enter to a given level path |
void |
exitObject()
Exit the current level path. |
java.util.Iterator<java.lang.Object> |
getBlockIterator()
Get an iterator with all the blocks |
java.lang.Object |
getCurrent()
Get the current building block |
java.lang.Object |
getRoot()
Get the root building block |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleBuildingContext(java.lang.Object root)
root - A not-null BuildingBlock instance| Method Detail |
|---|
public final java.lang.Object getRoot()
getRoot in interface BuildingContextpublic final java.lang.Object getCurrent()
getCurrent in interface BuildingContext
public final void enterObject(java.lang.String name,
java.lang.Object block)
enterObject in interface BuildingContextlevel - A not-null not-empty valid level valuepublic final void exitObject()
exitObject in interface BuildingContextpublic final java.util.Iterator<java.lang.Object> getBlockIterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||