Module pro.verron.officestamper
Class PowerpointCollector<T>
java.lang.Object
pro.verron.officestamper.experimental.PowerpointCollector<T>
- Type Parameters:
T
- the type of instances to collect
The PowerpointCollector class is used to collect instances of a specific class in a PowerPoint presentation.
-
Constructor Summary
ConstructorDescriptionPowerpointCollector
(Class<T> aClass) The PowerpointCollector class is used to collect instances of a specific class in a PowerPoint presentation. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This abstract method is responsible for executing some tasks before a specific operation.collect()
Retrieves the collected instances of a specific class.static <T> List
<T> Collects instances of a specific class in a PowerPoint presentation.final void
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.
-
Constructor Details
-
PowerpointCollector
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
Collects instances of a specific class in a PowerPoint presentation.- Type Parameters:
T
- the type of instances to collect- Parameters:
template
- the PowerPoint presentation templateaClass
- the type of instances to collect- Returns:
- a list of instances of the specified class
-
collect
Retrieves the collected instances of a specific class.- Returns:
- an instance list of the specified class
-
before
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
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
-