public class PdfCollectionItem extends PdfDictionary
| Modifier and Type | Field and Description |
|---|---|
(package private) PdfCollectionSchema |
schema
The PdfCollectionSchema with the names and types of the items.
|
| Constructor and Description |
|---|
PdfCollectionItem(PdfCollectionSchema schema)
Constructs a Collection Item that can be added to a PdfFileSpecification.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(java.lang.String key,
java.util.Calendar c)
Sets the value of the collection item.
|
void |
addItem(java.lang.String key,
double d)
Sets the value of the collection item.
|
void |
addItem(java.lang.String key,
float f)
Sets the value of the collection item.
|
void |
addItem(java.lang.String key,
int i)
Sets the value of the collection item.
|
void |
addItem(java.lang.String key,
PdfDate d)
Sets the value of the collection item.
|
void |
addItem(java.lang.String key,
PdfNumber n)
Sets the value of the collection item.
|
void |
addItem(java.lang.String key,
PdfString value)
Sets the value of the collection item.
|
void |
addItem(java.lang.String key,
java.lang.String value)
Sets the value of the collection item.
|
void |
setPrefix(java.lang.String key,
java.lang.String prefix)
Adds a prefix for the Collection item.
|
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, toStringcanBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, typePdfCollectionSchema schema
public PdfCollectionItem(PdfCollectionSchema schema)
public void addItem(java.lang.String key,
java.lang.String value)
value - public void addItem(java.lang.String key,
PdfString value)
value - public void addItem(java.lang.String key,
PdfDate d)
d - public void addItem(java.lang.String key,
PdfNumber n)
n - public void addItem(java.lang.String key,
java.util.Calendar c)
c - public void addItem(java.lang.String key,
int i)
i - public void addItem(java.lang.String key,
float f)
f - public void addItem(java.lang.String key,
double d)
d - public void setPrefix(java.lang.String key,
java.lang.String prefix)
prefix - a prefix