- java.lang.Object
-
- com.itextpdf.text.pdf.events.IndexEvents.Entry
-
- Enclosing class:
- IndexEvents
public class IndexEvents.Entry extends java.lang.ObjectClass 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.
-
-
Constructor Summary
Constructors Constructor Description Entry(java.lang.String aIn1, java.lang.String aIn2, java.lang.String aIn3, java.lang.String aTag)Create a new object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPageNumberAndTag(int number, java.lang.String tag)Add a pagenumber.java.lang.StringgetIn1()Returns the in1.java.lang.StringgetIn2()Returns the in2.java.lang.StringgetIn3()Returns the in3.java.lang.StringgetKey()Returns the key for the map-entry.intgetPageNumber()Returns the pagenumber for this entry.java.util.ListgetPagenumbers()Returns the pagenumbers.java.lang.StringgetTag()Returns the tag.java.util.ListgetTags()Returns the tags.java.lang.StringtoString()print the entry (only for test)
-
-
-
Method Detail
-
getIn1
public java.lang.String getIn1()
Returns the in1.- Returns:
- Returns the in1.
-
getIn2
public java.lang.String getIn2()
Returns the in2.- Returns:
- Returns the in2.
-
getIn3
public java.lang.String getIn3()
Returns the in3.- Returns:
- Returns the in3.
-
getTag
public java.lang.String getTag()
Returns the tag.- Returns:
- Returns the tag.
-
getPageNumber
public int getPageNumber()
Returns the pagenumber for this entry.- Returns:
- Returns the pagenumber for this entry.
-
addPageNumberAndTag
public void addPageNumberAndTag(int number, java.lang.String tag)Add a pagenumber.- Parameters:
number- The page number.tag-
-
getKey
public java.lang.String getKey()
Returns the key for the map-entry.- Returns:
- Returns the key for the map-entry.
-
getPagenumbers
public java.util.List getPagenumbers()
Returns the pagenumbers.- Returns:
- Returns the pagenumbers.
-
getTags
public java.util.List getTags()
Returns the tags.- Returns:
- Returns the tags.
-
toString
public java.lang.String toString()
print the entry (only for test)- Overrides:
toStringin classjava.lang.Object- Returns:
- the toString implementation of the entry
-
-