com.lowagie.text.pdf

Class SequenceList

public class SequenceList extends Object

This class expands a string into a list of numbers. The main use is to select a range of pages.

The general systax is:
[!][o][odd][e][even]start-end

You can have multiple ranges separated by commas ','. The '!' modifier removes the range from what is already selected. The range changes are incremental, that is, numbers are added or deleted as the range appears. The start or the end, but not both, can be ommited.

Field Summary
protected static intCOMMA
static intDIGIT
static intDIGIT2
protected booleaneven
protected static intEND
protected static charEOT
static intFIRST
protected inthigh
protected booleaninverse
protected intlow
protected static intMINUS
protected intnumber
protected static intNOT
static StringNOT_OTHER
protected static intNUMBER
protected booleanodd
protected Stringother
static intOTHER
protected intptr
protected char[]text
protected static intTEXT
Constructor Summary
protected SequenceList(String range)
Method Summary
static Listexpand(String ranges, int maxNumber)
Generates a list of numbers from a string.
protected booleangetAttributes()
protected intgetType()
protected charnextChar()
voidotherProc()
protected voidputBack()

Field Detail

COMMA

protected static final int COMMA

DIGIT

private static final int DIGIT

DIGIT2

private static final int DIGIT2

even

protected boolean even

END

protected static final int END

EOT

protected static final char EOT

FIRST

private static final int FIRST

high

protected int high

inverse

protected boolean inverse

low

protected int low

MINUS

protected static final int MINUS

number

protected int number

NOT

protected static final int NOT

NOT_OTHER

private static final String NOT_OTHER

NUMBER

protected static final int NUMBER

odd

protected boolean odd

other

protected String other

OTHER

private static final int OTHER

ptr

protected int ptr

text

protected char[] text

TEXT

protected static final int TEXT

Constructor Detail

SequenceList

protected SequenceList(String range)

Method Detail

expand

public static List expand(String ranges, int maxNumber)
Generates a list of numbers from a string.

Parameters: ranges the comma separated ranges maxNumber the maximum number in the range

Returns: a list with the numbers as Integer

getAttributes

protected boolean getAttributes()

getType

protected int getType()

nextChar

protected char nextChar()

otherProc

private void otherProc()

putBack

protected void putBack()