Class ProcessorDependency

java.lang.Object
org.mapfish.print.processor.ProcessorDependency

public class ProcessorDependency extends Object
Models a dependency between two processors.
  • Constructor Details

    • ProcessorDependency

      public ProcessorDependency(Class<? extends Processor<?,?>> required, Class<? extends Processor<?,?>> dependent, Set<String> commonInputs)
      Constructor. The processor dependent requires the processor required.
      Parameters:
      required - The processor which is required to be executed before the other.
      dependent - The processor which requires the other to be executed first.
      commonInputs - The dependency is only enforced if the two processors have these inputs in common.
    • ProcessorDependency

      public ProcessorDependency(Class<? extends Processor<?,?>> required, Class<? extends Processor<?,?>> dependent)
      Constructor. The processor dependent requires the processor required.
      Parameters:
      required - The processor which is required to be executed before the other.
      dependent - The processor which requires the other to be executed first.
  • Method Details

    • getRequired

      public final Class<? extends Processor<?,?>> getRequired()
      Returns the processor which is required to be executed before the other.
    • getDependent

      public final Class<? extends Processor<?,?>> getDependent()
      Returns the processor which requires the other to be executed first.
    • getCommonInputs

      public final Set<String> getCommonInputs()
      The inputs that both processors must have in common.
    • addCommonInput

      public final void addCommonInput(String inputName)
      Add a common input to this dependency.
      Parameters:
      inputName - the name of the input to add
    • toString

      public final String toString()
      Overrides:
      toString in class Object