org.pdfsam.console.business.dto.commands
Class MixParsedCommand

java.lang.Object
  extended by org.pdfsam.console.business.dto.commands.AbstractParsedCommand
      extended by org.pdfsam.console.business.dto.commands.MixParsedCommand
All Implemented Interfaces:
java.io.Serializable

public class MixParsedCommand
extends AbstractParsedCommand

Mix parsed command dto filled by parsing service and used by worker service

Author:
Andrea Vacondio
See Also:
Serialized Form

Field Summary
static int DEFAULT_STEP
           
static java.lang.String F1_ARG
           
static java.lang.String F2_ARG
           
static java.lang.String O_ARG
           
static java.lang.String REVERSE_FIRST_ARG
           
static java.lang.String REVERSE_SECOND_ARG
           
static java.lang.String SECOND_STEP_ARG
           
static java.lang.String STEP_ARG
           
 
Fields inherited from class org.pdfsam.console.business.dto.commands.AbstractParsedCommand
COMMAND_CONCAT, COMMAND_DECRYPT, COMMAND_ENCRYPT, COMMAND_MIX, COMMAND_PAGELABELS, COMMAND_ROTATE, COMMAND_SETDOCINFO, COMMAND_SETVIEWER, COMMAND_SLIDESHOW, COMMAND_SPLIT, COMMAND_UNPACK, COMPRESSED_ARG, LOG_ARG, OVERWRITE_ARG, PDFVERSION_ARG, VERSION_1_2, VERSION_1_3, VERSION_1_4, VERSION_1_5, VERSION_1_6, VERSION_1_7
 
Constructor Summary
MixParsedCommand()
           
MixParsedCommand(java.io.File outputFile, PdfFile firstInputFile, PdfFile secondInputFile, boolean reverseFirst, boolean reverseSecond, int step, boolean overwrite, boolean compress, java.io.File logFile, char outputPdfVersion)
          Deprecated. use the constructor without the logFile parameter
MixParsedCommand(java.io.File outputFile, PdfFile firstInputFile, PdfFile secondInputFile, boolean reverseFirst, boolean reverseSecond, int step, int secondStep)
           
MixParsedCommand(java.io.File outputFile, PdfFile firstInputFile, PdfFile secondInputFile, boolean reverseFirst, boolean reverseSecond, int step, int secondStep, boolean overwrite, boolean compress, char outputPdfVersion)
           
 
Method Summary
 java.lang.String getCommand()
           
 PdfFile getFirstInputFile()
           
 java.io.File getOutputFile()
           
 PdfFile getSecondInputFile()
           
 int getSecondStep()
           
 int getStep()
           
 boolean isReverseFirst()
           
 boolean isReverseSecond()
           
 void setFirstInputFile(PdfFile firstInputFile)
           
 void setOutputFile(java.io.File outputFile)
           
 void setReverseFirst(boolean reverseFirst)
           
 void setReverseSecond(boolean reverseSecond)
           
 void setSecondInputFile(PdfFile secondInputFile)
           
 void setSecondStep(int secondStep)
           
 void setStep(int step)
           
 java.lang.String toString()
           
 
Methods inherited from class org.pdfsam.console.business.dto.commands.AbstractParsedCommand
getLogFile, getOutputPdfVersion, isCompress, isOverwrite, setCompress, setLogFile, setOutputPdfVersion, setOutputPdfVersion, setOverwrite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_STEP

public static final int DEFAULT_STEP
See Also:
Constant Field Values

F1_ARG

public static final java.lang.String F1_ARG
See Also:
Constant Field Values

REVERSE_FIRST_ARG

public static final java.lang.String REVERSE_FIRST_ARG
See Also:
Constant Field Values

F2_ARG

public static final java.lang.String F2_ARG
See Also:
Constant Field Values

REVERSE_SECOND_ARG

public static final java.lang.String REVERSE_SECOND_ARG
See Also:
Constant Field Values

O_ARG

public static final java.lang.String O_ARG
See Also:
Constant Field Values

STEP_ARG

public static final java.lang.String STEP_ARG
See Also:
Constant Field Values

SECOND_STEP_ARG

public static final java.lang.String SECOND_STEP_ARG
See Also:
Constant Field Values
Constructor Detail

MixParsedCommand

public MixParsedCommand()

MixParsedCommand

public MixParsedCommand(java.io.File outputFile,
                        PdfFile firstInputFile,
                        PdfFile secondInputFile,
                        boolean reverseFirst,
                        boolean reverseSecond,
                        int step,
                        int secondStep)

MixParsedCommand

public MixParsedCommand(java.io.File outputFile,
                        PdfFile firstInputFile,
                        PdfFile secondInputFile,
                        boolean reverseFirst,
                        boolean reverseSecond,
                        int step,
                        boolean overwrite,
                        boolean compress,
                        java.io.File logFile,
                        char outputPdfVersion)
Deprecated. use the constructor without the logFile parameter


MixParsedCommand

public MixParsedCommand(java.io.File outputFile,
                        PdfFile firstInputFile,
                        PdfFile secondInputFile,
                        boolean reverseFirst,
                        boolean reverseSecond,
                        int step,
                        int secondStep,
                        boolean overwrite,
                        boolean compress,
                        char outputPdfVersion)
Method Detail

getOutputFile

public java.io.File getOutputFile()
Returns:
the outputFile

setOutputFile

public void setOutputFile(java.io.File outputFile)
Parameters:
outputFile - the outputFile to set

getFirstInputFile

public PdfFile getFirstInputFile()
Returns:
the firstInputFile

setFirstInputFile

public void setFirstInputFile(PdfFile firstInputFile)
Parameters:
firstInputFile - the firstInputFile to set

getSecondInputFile

public PdfFile getSecondInputFile()
Returns:
the secondInputFile

setSecondInputFile

public void setSecondInputFile(PdfFile secondInputFile)
Parameters:
secondInputFile - the secondInputFile to set

isReverseFirst

public boolean isReverseFirst()
Returns:
the reverseFirst

setReverseFirst

public void setReverseFirst(boolean reverseFirst)
Parameters:
reverseFirst - the reverseFirst to set

isReverseSecond

public boolean isReverseSecond()
Returns:
the reverseSecond

setReverseSecond

public void setReverseSecond(boolean reverseSecond)
Parameters:
reverseSecond - the reverseSecond to set

getCommand

public final java.lang.String getCommand()
Specified by:
getCommand in class AbstractParsedCommand
Returns:
The command associated with this dto

getStep

public int getStep()
Returns:
the step

setStep

public void setStep(int step)
Parameters:
step - the step to set

getSecondStep

public int getSecondStep()
Returns:
the secondStep

setSecondStep

public void setSecondStep(int secondStep)
Parameters:
secondStep - the secondStep to set

toString

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