Package 

Class DocumentMetadata

  • All Implemented Interfaces:

    
    public class DocumentMetadata
    
                        

    Use this class to pass additional information for a document when uploading it to the Gini API. Besides the predefined metadata fields you may also add custom fields.

    • Constructor Detail

      • DocumentMetadata

        DocumentMetadata()
        Create a new instance.
    • Method Detail

      • setBranchId

         void setBranchId(@NonNull() String branchId)

        Set a branch identifier to associate the document with a particular branch.

        Parameters:
        branchId - an identifier as an ASCII compatible string
      • add

         void add(@NonNull() String name, @NonNull() String value)

        Add a custom metadata field. If there is already a field with the same name, the previous value will be overwritten with this one.

        Parameters:
        name - field name as an ASCII compatible string
        value - field value as an ASCII compatible string