Package com.itextpdf.text.pdf.collection
Class PdfCollectionItem
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfDictionary
-
- com.itextpdf.text.pdf.collection.PdfCollectionItem
-
- All Implemented Interfaces:
Serializable
public class PdfCollectionItem extends PdfDictionary
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PdfCollectionItem(PdfCollectionSchema schema)
Constructs a Collection Item that can be added to a PdfFileSpecification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(String key, double d)
Sets the value of the collection item.void
addItem(String key, float f)
Sets the value of the collection item.void
addItem(String key, int i)
Sets the value of the collection item.void
addItem(String key, PdfDate d)
Sets the value of the collection item.void
addItem(String key, PdfNumber n)
Sets the value of the collection item.void
addItem(String key, PdfString value)
Sets the value of the collection item.void
addItem(String key, String value)
Sets the value of the collection item.void
addItem(String key, Calendar c)
Sets the value of the collection item.void
setPrefix(String key, String prefix)
Adds a prefix for the Collection item.-
Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toString
-
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
-
-
-
Constructor Detail
-
PdfCollectionItem
public PdfCollectionItem(PdfCollectionSchema schema)
Constructs a Collection Item that can be added to a PdfFileSpecification.
-
-
Method Detail
-
addItem
public void addItem(String key, String value)
Sets the value of the collection item.- Parameters:
value
-
-
addItem
public void addItem(String key, PdfString value)
Sets the value of the collection item.- Parameters:
value
-
-
addItem
public void addItem(String key, PdfDate d)
Sets the value of the collection item.- Parameters:
d
-
-
addItem
public void addItem(String key, PdfNumber n)
Sets the value of the collection item.- Parameters:
n
-
-
addItem
public void addItem(String key, Calendar c)
Sets the value of the collection item.- Parameters:
c
-
-
addItem
public void addItem(String key, int i)
Sets the value of the collection item.- Parameters:
i
-
-
addItem
public void addItem(String key, float f)
Sets the value of the collection item.- Parameters:
f
-
-
addItem
public void addItem(String key, double d)
Sets the value of the collection item.- Parameters:
d
-
-
-