Class CurrentProductGeneration

  • All Implemented Interfaces:
    LifeCycleHolder, Statement, com.rapiddweller.common.Resettable, java.io.Closeable, java.lang.AutoCloseable

    public class CurrentProductGeneration
    extends java.lang.Object
    implements Statement, LifeCycleHolder
    Uses a Generator to create the currently processed object.

    Created: 01.09.2011 19:03:38
    Since:
    0.7.0
    Author:
    Volker Bergmann
    • Constructor Detail

      • CurrentProductGeneration

        public CurrentProductGeneration​(java.lang.String instanceName,
                                        Generator<?> source)
        Instantiates a new Current product generation.
        Parameters:
        instanceName - the instance name
        source - the source
    • Method Detail

      • execute

        public boolean execute​(BeneratorContext context)
        Description copied from interface: Statement
        Execute boolean.
        Specified by:
        execute in interface Statement
        Parameters:
        context - the context
        Returns:
        the boolean
      • reset

        public void reset()
        Specified by:
        reset in interface com.rapiddweller.common.Resettable
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object