Package com.lowagie.text.pdf.collection
Class PdfCollectionItem
java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.collection.PdfCollectionItem
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) PdfCollectionSchema
The PdfCollectionSchema with the names and types of the items. -
Constructor Summary
ConstructorsConstructorDescriptionPdfCollectionItem
(PdfCollectionSchema schema) Constructs a Collection Item that can be added to a PdfFileSpecification. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the value of the collection item.void
Sets the value of the collection item.void
Sets the value of the collection item.void
Sets the value of the collection item.void
Sets the value of the collection item.void
Sets the value of the collection item.void
Sets the value of the collection item.void
Sets the value of the collection item.void
Adds a prefix for the Collection item.Methods inherited from class com.lowagie.text.pdf.PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toString
Methods inherited from class com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Field Details
-
schema
PdfCollectionSchema schemaThe PdfCollectionSchema with the names and types of the items.
-
-
Constructor Details
-
PdfCollectionItem
Constructs a Collection Item that can be added to a PdfFileSpecification.- Parameters:
schema
- the PdfCollectionSchema
-
-
Method Details
-
addItem
Sets the value of the collection item.- Parameters:
key
- the keyvalue
- the value (a String)
-
addItem
Sets the value of the collection item.- Parameters:
key
- the keyvalue
- the value (a PdfString)
-
addItem
Sets the value of the collection item.- Parameters:
key
- the keyd
- the value (a PdfDate)
-
addItem
Sets the value of the collection item.- Parameters:
key
- the keyn
- the value (a PdfNumber)
-
addItem
Sets the value of the collection item.- Parameters:
key
- the keyc
- the value (a Calendar)
-
addItem
Sets the value of the collection item.- Parameters:
key
- the keyi
- the value
-
addItem
Sets the value of the collection item.- Parameters:
key
- the keyf
- the value
-
addItem
Sets the value of the collection item.- Parameters:
key
- the keyd
- the value
-
setPrefix
Adds a prefix for the Collection item. You can only use this method after you have set the value of the item.- Parameters:
key
- the keyprefix
- a prefix
-