|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.persistence.HorizontalEntityVisitor
public class HorizontalEntityVisitor
Parcourt en largeur du modele et délegation à un autre visiteur.
| Field Summary | |
|---|---|
protected java.util.List<TopiaEntity> |
alreadyExplored
Cache used to remember entity during exploration. |
protected EntityVisitor |
delegateVisitor
Delegate visitor. |
protected java.util.List<TopiaEntity> |
toVisitEntities
Entity to be visited later. |
| Constructor Summary | |
|---|---|
HorizontalEntityVisitor(EntityVisitor delegateVisitor)
Constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Reset all states of the visitor. |
void |
end(TopiaEntity entity)
Ends the visit of the given entity. |
void |
start(TopiaEntity entity)
Start the visit of the given entity. |
void |
visit(TopiaEntity entity,
java.lang.String propertyName,
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 entity,
java.lang.String propertyName,
java.lang.Class<?> collectionType,
java.lang.Class<?> type,
java.lang.Object value)
Visit a collection property for the given entity. |
void |
visit(TopiaEntity entity,
java.lang.String propertyName,
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 EntityVisitor delegateVisitor
protected java.util.List<TopiaEntity> alreadyExplored
protected java.util.List<TopiaEntity> toVisitEntities
| Constructor Detail |
|---|
public HorizontalEntityVisitor(EntityVisitor delegateVisitor)
delegateVisitor - delegate visitor| Method Detail |
|---|
public void start(TopiaEntity entity)
EntityVisitor
start in interface EntityVisitorentity - the visited entity
public void visit(TopiaEntity entity,
java.lang.String propertyName,
java.lang.Class<?> type,
java.lang.Object value)
EntityVisitor
visit in interface EntityVisitorentity - 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 entity,
java.lang.String propertyName,
java.lang.Class<?> collectionType,
java.lang.Class<?> type,
java.lang.Object value)
EntityVisitor
visit in interface EntityVisitorentity - 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 entity,
java.lang.String propertyName,
java.lang.Class<?> collectionType,
java.lang.Class<?> type,
int index,
java.lang.Object value)
EntityVisitor
visit in interface EntityVisitorentity - 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 entity)
EntityVisitor
end in interface EntityVisitorentity - 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 | |||||||||