Class PdfCollectionItem

    • Field Detail

      • schema

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

      • PdfCollectionItem

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

      • addItem

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

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

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

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

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

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

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

        public void addItem​(java.lang.String key,
                            double d)
        Sets the value of the collection item.
        Parameters:
        d - the value
        key - the key
      • setPrefix

        public void setPrefix​(java.lang.String key,
                              java.lang.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
        key - the key