com.itextpdf.text.pdf.collection
Class PdfCollectionItem

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfObject
      extended by com.itextpdf.text.pdf.PdfDictionary
          extended by com.itextpdf.text.pdf.collection.PdfCollectionItem

public class PdfCollectionItem
extends PdfDictionary


Field Summary
 
Fields inherited from class com.itextpdf.text.pdf.PdfDictionary
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES
 
Fields inherited from class com.itextpdf.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
 
Constructor Summary
PdfCollectionItem(PdfCollectionSchema schema)
          Constructs a Collection Item that can be added to a PdfFileSpecification.
 
Method Summary
 void addItem(String key, Calendar c)
          Sets the value of the collection item.
 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 setPrefix(String key, String prefix)
          Adds a prefix for the Collection item.
 
Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 -

setPrefix

public void setPrefix(String key,
                      String prefix)
Adds a prefix for the Collection item. You can only use this method after you have set the value of the item.

Parameters:
prefix - a prefix


Copyright © 2013. All Rights Reserved.