Class PdiAssembler<D>

    • Constructor Detail

      • PdiAssembler

        public PdiAssembler​(Validator validator)
        Create an instance.
        Parameters:
        validator - Optional validator for checking whether the PDI meets expectations
    • Method Detail

      • add

        protected final void add​(HashedContents<D> hashedContents,
                                 java.io.PrintWriter writer)
                          throws java.io.IOException
        Description copied from class: PrintWriterAssembler
        Add a domain object.
        Specified by:
        add in class PrintWriterAssembler<HashedContents<D>>
        Parameters:
        hashedContents - The domain object to add
        writer - Where to write output
        Throws:
        java.io.IOException - When an I/O error occures
      • add

        protected abstract void add​(D domainObject,
                                    java.util.Map<java.lang.String,​ContentInfo> contentInfo,
                                    java.io.PrintWriter writer)
                             throws java.io.IOException
        Add a domain object.
        Parameters:
        domainObject - The domain object to add
        contentInfo - The reference information and the encoded hashes of the content associated with the domain object
        writer - The writer to print the PDI fragment to
        Throws:
        java.io.IOException - When an I/O error occures