Class PdfCollectionItem


public class PdfCollectionItem extends PdfDictionary
  • Field Details

    • schema

      The PdfCollectionSchema with the names and types of the items.
  • Constructor Details

    • PdfCollectionItem

      public PdfCollectionItem(PdfCollectionSchema schema)
      Constructs a Collection Item that can be added to a PdfFileSpecification.
      Parameters:
      schema - the PdfCollectionSchema
  • Method Details

    • addItem

      public void addItem(String key, String value)
      Sets the value of the collection item.
      Parameters:
      key - the key
      value - the value (a String)
    • addItem

      public void addItem(String key, PdfString value)
      Sets the value of the collection item.
      Parameters:
      key - the key
      value - the value (a PdfString)
    • addItem

      public void addItem(String key, PdfDate d)
      Sets the value of the collection item.
      Parameters:
      key - the key
      d - the value (a PdfDate)
    • addItem

      public void addItem(String key, PdfNumber n)
      Sets the value of the collection item.
      Parameters:
      key - the key
      n - the value (a PdfNumber)
    • addItem

      public void addItem(String key, Calendar c)
      Sets the value of the collection item.
      Parameters:
      key - the key
      c - the value (a Calendar)
    • addItem

      public void addItem(String key, int i)
      Sets the value of the collection item.
      Parameters:
      key - the key
      i - the value
    • addItem

      public void addItem(String key, float f)
      Sets the value of the collection item.
      Parameters:
      key - the key
      f - the value
    • addItem

      public void addItem(String key, double d)
      Sets the value of the collection item.
      Parameters:
      key - the key
      d - the value
    • 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:
      key - the key
      prefix - a prefix