org.sejda.model.parameter
Class AbstractSplitByPageParameters

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
All Implemented Interfaces:
MultipleOutputTaskParameters, SinglePdfSourceTaskParameters, TaskParameters, PagesSelection
Direct Known Subclasses:
SimpleSplitParameters, SplitByPagesParameters

public abstract class AbstractSplitByPageParameters
extends SinglePdfSourceMultipleOutputParameters
implements PagesSelection

Skeletal implementation for a split by page parameter class.

Author:
Andrea Vacondio

Constructor Summary
AbstractSplitByPageParameters()
           
 
Method Summary
abstract  Set<Integer> getPages(int upperLimit)
           
 PdfSource<?> getSource()
           
 void setSource(PdfSource<?> source)
          Set the source for this parameter.
 
Methods inherited from class org.sejda.model.parameter.base.SinglePdfSourceMultipleOutputParameters
equals, getOutput, getOutputPrefix, hashCode, 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, toString, wait, wait, wait
 
Methods inherited from interface org.sejda.model.parameter.base.TaskParameters
isOverwrite
 

Constructor Detail

AbstractSplitByPageParameters

public AbstractSplitByPageParameters()
Method Detail

getPages

public abstract Set<Integer> getPages(int upperLimit)
Specified by:
getPages in interface PagesSelection
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.

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.