com.lowagie.text.pdf.events

Class IndexEvents.Entry

public class IndexEvents.Entry extends Object

Class for an index entry.

In the first step, only in1, in2,in3 and tag are used. After the collections of the index entries, pagenumbers are used.

Field Summary
Stringin1
first level
Stringin2
second level
Stringin3
third level
Listpagenumbers
the list of all page numbers.
Stringtag
the tag
Listtags
the list of all tags.
Constructor Summary
Entry(String aIn1, String aIn2, String aIn3, String aTag)
Create a new object.
Method Summary
voidaddPageNumberAndTag(int number, String tag)
Add a pagenumber.
StringgetIn1()
Returns the in1.
StringgetIn2()
Returns the in2.
StringgetIn3()
Returns the in3.
StringgetKey()
Returns the key for the map-entry.
ListgetPagenumbers()
Returns the pagenumbers.
intgetPageNumber()
Returns the pagenumber for this entry.
StringgetTag()
Returns the tag.
ListgetTags()
Returns the tags.
StringtoString()
print the entry (only for test)

Field Detail

in1

private String in1
first level

in2

private String in2
second level

in3

private String in3
third level

pagenumbers

private List pagenumbers
the list of all page numbers.

tag

private String tag
the tag

tags

private List tags
the list of all tags.

Constructor Detail

Entry

public Entry(String aIn1, String aIn2, String aIn3, String aTag)
Create a new object.

Parameters: aIn1 The first level. aIn2 The second level. aIn3 The third level. aTag The tag.

Method Detail

addPageNumberAndTag

public void addPageNumberAndTag(int number, String tag)
Add a pagenumber.

Parameters: number The page number. tag

getIn1

public String getIn1()
Returns the in1.

Returns: Returns the in1.

getIn2

public String getIn2()
Returns the in2.

Returns: Returns the in2.

getIn3

public String getIn3()
Returns the in3.

Returns: Returns the in3.

getKey

public String getKey()
Returns the key for the map-entry.

Returns: Returns the key for the map-entry.

getPagenumbers

public List getPagenumbers()
Returns the pagenumbers.

Returns: Returns the pagenumbers.

getPageNumber

public int getPageNumber()
Returns the pagenumber for this entry.

Returns: Returns the pagenumber for this entry.

getTag

public String getTag()
Returns the tag.

Returns: Returns the tag.

getTags

public List getTags()
Returns the tags.

Returns: Returns the tags.

toString

public String toString()
print the entry (only for test)

Returns: the toString implementation of the entry