Package com.opentext.ia.sdk.sip
Class PdiAssembler<D>
- java.lang.Object
-
- com.opentext.ia.sdk.sip.PrintWriterAssembler<HashedContents<D>>
-
- com.opentext.ia.sdk.sip.PdiAssembler<D>
-
- Type Parameters:
D
- The type of domain objects to assemble the PDI from
- All Implemented Interfaces:
Assembler<HashedContents<D>>
- Direct Known Subclasses:
TemplatePdiAssembler
,XmlPdiAssembler
public abstract class PdiAssembler<D> extends PrintWriterAssembler<HashedContents<D>>
Assemble a PDI from domain objects.
-
-
Constructor Summary
Constructors Constructor Description PdiAssembler(Validator validator)
Create an instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
add(HashedContents<D> hashedContents, java.io.PrintWriter writer)
Add a domain object.protected abstract void
add(D domainObject, java.util.Map<java.lang.String,ContentInfo> contentInfo, java.io.PrintWriter writer)
Add a domain object.-
Methods inherited from class com.opentext.ia.sdk.sip.PrintWriterAssembler
add, end, end, getMetrics, start, start
-
-
-
-
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 classPrintWriterAssembler<HashedContents<D>>
- Parameters:
hashedContents
- The domain object to addwriter
- 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 addcontentInfo
- The reference information and the encoded hashes of the content associated with the domain objectwriter
- The writer to print the PDI fragment to- Throws:
java.io.IOException
- When an I/O error occures
-
-