|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.persistence.DepthEntityVisitor
org.nuiton.topia.persistence.util.Collector.CollectorVisitor
public static class Collector.CollectorVisitor
| Field Summary | |
|---|---|
protected java.util.Deque<TopiaEntity> |
stack
la pile des entites en cours de parcours |
| Fields inherited from class org.nuiton.topia.persistence.DepthEntityVisitor |
|---|
alreadyExplored, delegateVisitor |
| Constructor Summary | |
|---|---|
Collector.CollectorVisitor()
|
|
| Method Summary | |
|---|---|
void |
clear()
Reset all states of the visitor. |
void |
end(TopiaEntity e)
Ends the visit of the given entity. |
protected java.util.Collection<TopiaEntity> |
getAlreadyExplored()
|
protected java.util.Deque<TopiaEntity> |
getStack()
|
protected void |
setCollector(Collector<?> collector)
|
void |
start(TopiaEntity e)
Start the visit of the given entity. |
void |
visit(TopiaEntity e,
java.lang.String name,
java.lang.Class<?> collectionType,
java.lang.Class<?> type,
int index,
java.lang.Object value)
Visit a indexed value from a collection property for the given entity. |
void |
visit(TopiaEntity e,
java.lang.String name,
java.lang.Class<?> collectionType,
java.lang.Class<?> type,
java.lang.Object value)
Visit a collection property for the given entity. |
void |
visit(TopiaEntity e,
java.lang.String name,
java.lang.Class<?> type,
java.lang.Object value)
Visit a none indexed property for the given entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Deque<TopiaEntity> stack
| Constructor Detail |
|---|
public Collector.CollectorVisitor()
| Method Detail |
|---|
protected void setCollector(Collector<?> collector)
protected java.util.Deque<TopiaEntity> getStack()
protected java.util.Collection<TopiaEntity> getAlreadyExplored()
public void start(TopiaEntity e)
EntityVisitor
start in interface EntityVisitorstart in class DepthEntityVisitore - the visited entitypublic void end(TopiaEntity e)
EntityVisitor
end in interface EntityVisitorend in class DepthEntityVisitore - the visited entity
public void visit(TopiaEntity e,
java.lang.String name,
java.lang.Class<?> type,
java.lang.Object value)
EntityVisitor
visit in interface EntityVisitorvisit in class DepthEntityVisitore - the visited entityname - the name of the visited propertytype - the type of the visited propertyvalue - the value of the visited property
public void visit(TopiaEntity e,
java.lang.String name,
java.lang.Class<?> collectionType,
java.lang.Class<?> type,
java.lang.Object value)
EntityVisitor
visit in interface EntityVisitorvisit in class DepthEntityVisitore - the visited entityname - the name of the visited propertycollectionType - the type of the visited collectiontype - the type of the visited propertyvalue - the value of the visited property
public void visit(TopiaEntity e,
java.lang.String name,
java.lang.Class<?> collectionType,
java.lang.Class<?> type,
int index,
java.lang.Object value)
EntityVisitor
visit in interface EntityVisitorvisit in class DepthEntityVisitore - the visited entityname - the name of the visited propertycollectionType - the type of the container of the visited propertytype - the type of the visited propertyindex - the index of the visited property in his containervalue - the value of the visited propertypublic void clear()
EntityVisitor
clear in interface EntityVisitorclear in class DepthEntityVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||