|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.persistence.DepthEntityVisitor
public class DepthEntityVisitor
Parcourt du graphe d'entité en profondeur.
| Field Summary | |
|---|---|
protected Collection<TopiaEntity> |
alreadyExplored
Cache of already explored entities. |
protected EntityVisitor |
delegateVisitor
Le visiteur metier (optionel). |
| Constructor Summary | |
|---|---|
DepthEntityVisitor()
|
|
DepthEntityVisitor(EntityVisitor delegateVisitor)
|
|
| Method Summary | |
|---|---|
void |
clear()
Reset all states of the visitor. |
void |
end(TopiaEntity e)
Ends the visit of the given entity. |
void |
start(TopiaEntity e)
Start the visit of the given entity. |
void |
visit(TopiaEntity e,
String propertyName,
Class<?> collectionType,
Class<?> type,
int index,
Object value)
Visit a indexed value from a collection property for the given entity. |
void |
visit(TopiaEntity e,
String propertyName,
Class<?> collectionType,
Class<?> type,
Object value)
Visit a collection property for the given entity. |
void |
visit(TopiaEntity e,
String propertyName,
Class<?> type,
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 Collection<TopiaEntity> alreadyExplored
protected EntityVisitor delegateVisitor
| Constructor Detail |
|---|
public DepthEntityVisitor()
public DepthEntityVisitor(EntityVisitor delegateVisitor)
| Method Detail |
|---|
public void start(TopiaEntity e)
EntityVisitor
start in interface EntityVisitore - the visited entity
public void visit(TopiaEntity e,
String propertyName,
Class<?> type,
Object value)
EntityVisitor
visit in interface EntityVisitore - the visited entitypropertyName - the name of the visited propertytype - the type of the visited propertyvalue - the value of the visited property
public void visit(TopiaEntity e,
String propertyName,
Class<?> collectionType,
Class<?> type,
Object value)
EntityVisitor
visit in interface EntityVisitore - the visited entitypropertyName - 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,
String propertyName,
Class<?> collectionType,
Class<?> type,
int index,
Object value)
EntityVisitor
visit in interface EntityVisitore - the visited entitypropertyName - 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 end(TopiaEntity e)
EntityVisitor
end in interface EntityVisitore - the visited entitypublic void clear()
EntityVisitor
clear in interface EntityVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||