org.sejda.model.parameter
Class SimpleSplitParameters

java.lang.Object
  extended by org.sejda.model.parameter.base.AbstractParameters
      extended by org.sejda.model.parameter.base.AbstractPdfOutputParameters
          extended by org.sejda.model.parameter.base.SinglePdfSourceMultipleOutputParameters
              extended by org.sejda.model.parameter.AbstractSplitByPageParameters
                  extended by org.sejda.model.parameter.SimpleSplitParameters
All Implemented Interfaces:
MultipleOutputTaskParameters, SinglePdfSourceTaskParameters, TaskParameters, PagesSelection

public class SimpleSplitParameters
extends AbstractSplitByPageParameters

Parameter class for a simple split task. Used to perform split types which have a predefined set of pages based on the selected split type.

Author:
Andrea Vacondio

Constructor Summary
SimpleSplitParameters(PredefinedSetOfPages setOfPages)
           
 
Method Summary
 boolean equals(Object other)
           
 Set<Integer> getPages(int upperLimit)
           
 PredefinedSetOfPages getSetOfPages()
           
 PdfSource<?> getSource()
           
 int hashCode()
           
 void setSource(PdfSource<?> source)
          Set the source for this parameter.
 String toString()
           
 
Methods inherited from class org.sejda.model.parameter.base.SinglePdfSourceMultipleOutputParameters
getOutput, getOutputPrefix, setOutput, setOutputPrefix
 
Methods inherited from class org.sejda.model.parameter.base.AbstractPdfOutputParameters
getMinRequiredPdfVersion, getVersion, isCompressXref, setCompress, setVersion
 
Methods inherited from class org.sejda.model.parameter.base.AbstractParameters
isOverwrite, setOverwrite
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sejda.model.parameter.base.TaskParameters
isOverwrite
 

Constructor Detail

SimpleSplitParameters

public SimpleSplitParameters(PredefinedSetOfPages setOfPages)
Method Detail

getPages

public Set<Integer> getPages(int upperLimit)
Specified by:
getPages in interface PagesSelection
Specified by:
getPages in class AbstractSplitByPageParameters
Parameters:
upperLimit - upper limit for the pages set.
Returns:
the set of pages to split at. All pages are greater then 0 and lesser then upperLimit.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class SinglePdfSourceMultipleOutputParameters

equals

public boolean equals(Object other)
Overrides:
equals in class SinglePdfSourceMultipleOutputParameters

getSetOfPages

public PredefinedSetOfPages getSetOfPages()

getSource

public PdfSource<?> getSource()
Specified by:
getSource in interface SinglePdfSourceTaskParameters
Returns:
the source for this parameter.

setSource

public void setSource(PdfSource<?> source)
Description copied from interface: SinglePdfSourceTaskParameters
Set the source for this parameter.

Specified by:
setSource in interface SinglePdfSourceTaskParameters


Copyright © 2013 sejda. All Rights Reserved.