Class PowerpointCollector<T>

java.lang.Object
pro.verron.officestamper.experimental.PowerpointCollector<T>
Type Parameters:
T - the type of instances to collect

public class PowerpointCollector<T> extends Object
The PowerpointCollector class is used to collect instances of a specific class in a PowerPoint presentation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    The PowerpointCollector class is used to collect instances of a specific class in a PowerPoint presentation.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    before(Object object)
    This abstract method is responsible for executing some tasks before a specific operation.
    Retrieves the collected instances of a specific class.
    static <T> List<T>
    collect(Object template, Class<T> aClass)
    Collects instances of a specific class in a PowerPoint presentation.
    final void
    visit(Object object)
    Signal the visited object through the before method, then apply logic to know the visit next elements or ignore deeper nesting based on the object type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PowerpointCollector

      public PowerpointCollector(Class<T> aClass)
      The PowerpointCollector class is used to collect instances of a specific class in a PowerPoint presentation.
      Parameters:
      aClass - the type of instances to collect
  • Method Details

    • collect

      public static <T> List<T> collect(Object template, Class<T> aClass)
      Collects instances of a specific class in a PowerPoint presentation.
      Type Parameters:
      T - the type of instances to collect
      Parameters:
      template - the PowerPoint presentation template
      aClass - the type of instances to collect
      Returns:
      a list of instances of the specified class
    • collect

      public List<T> collect()
      Retrieves the collected instances of a specific class.
      Returns:
      an instance list of the specified class
    • before

      protected void before(Object object)
      This abstract method is responsible for executing some tasks before a specific operation. It is intended to be implemented by subclasses.
      Parameters:
      object - The optional object that can be used as a parameter for the pre-operation tasks.
    • visit

      public final void visit(@Nullable Object object)
      Signal the visited object through the before method, then apply logic to know the visit next elements or ignore deeper nesting based on the object type.
      Parameters:
      object - the object to visit