Class Collector.CollectorVisitor

java.lang.Object
org.nuiton.topia.persistence.DepthEntityVisitor
org.nuiton.topia.persistence.legacy.Collector.CollectorVisitor
All Implemented Interfaces:
TopiaEntityVisitor
Enclosing class:
Collector<R>

public static class Collector.CollectorVisitor extends DepthEntityVisitor
  • Field Details

    • stack

      protected Deque<TopiaEntity> stack
      la pile des entites en cours de parcours
  • Constructor Details

    • CollectorVisitor

      public CollectorVisitor()
  • Method Details

    • setCollector

      protected void setCollector(Collector<?> collector)
    • getStack

      public Deque<TopiaEntity> getStack()
    • getAlreadyExplored

      public Collection<TopiaEntity> getAlreadyExplored()
    • start

      public void start(TopiaEntity e)
      Description copied from interface: TopiaEntityVisitor
      Start the visit of the given entity.
      Specified by:
      start in interface TopiaEntityVisitor
      Overrides:
      start in class DepthEntityVisitor
      Parameters:
      e - the visited entity
    • end

      public void end(TopiaEntity e)
      Description copied from interface: TopiaEntityVisitor
      Ends the visit of the given entity.
      Specified by:
      end in interface TopiaEntityVisitor
      Overrides:
      end in class DepthEntityVisitor
      Parameters:
      e - the visited entity
    • visit

      public void visit(TopiaEntity e, String name, Class<?> type, Object value)
      Description copied from interface: TopiaEntityVisitor
      Visit a none indexed property for the given entity. The property visited is defined by the other parameters.
      Specified by:
      visit in interface TopiaEntityVisitor
      Overrides:
      visit in class DepthEntityVisitor
      Parameters:
      e - the visited entity
      name - the name of the visited property
      type - the type of the visited property
      value - the value of the visited property
    • visit

      public void visit(TopiaEntity e, String name, Class<?> collectionType, Class<?> type, Object value)
      Description copied from interface: TopiaEntityVisitor
      Visit a collection property for the given entity. The property visited is defined by the other parameters.
      Specified by:
      visit in interface TopiaEntityVisitor
      Overrides:
      visit in class DepthEntityVisitor
      Parameters:
      e - the visited entity
      name - the name of the visited property
      collectionType - the type of the visited collection
      type - the type of the visited property
      value - the value of the visited property
    • visit

      public void visit(TopiaEntity e, String name, Class<?> collectionType, Class<?> type, int index, Object value)
      Description copied from interface: TopiaEntityVisitor
      Visit a indexed value from a collection property for the given entity. The property visited is defined by the other parameters.
      Specified by:
      visit in interface TopiaEntityVisitor
      Overrides:
      visit in class DepthEntityVisitor
      Parameters:
      e - the visited entity
      name - the name of the visited property
      collectionType - the type of the container of the visited property
      type - the type of the visited property
      index - the index of the visited property in his container
      value - the value of the visited property
    • clear

      public void clear()
      Description copied from interface: TopiaEntityVisitor
      Reset all states of the visitor. If you use internal states inside the visitor, this method should clean all of them. This method should be invoked after usage of the visitor.
      Specified by:
      clear in interface TopiaEntityVisitor
      Overrides:
      clear in class DepthEntityVisitor