D
- The type of domain objects to assemblepublic class TemplatePdiAssembler<D> extends PdiAssembler<D>
Constructor and Description |
---|
TemplatePdiAssembler(Template<D> template)
Create an instance that doesn't validate the PDI.
|
TemplatePdiAssembler(Template<D> template,
Validator validator)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
add(D domainObject,
java.util.Map<java.lang.String,ContentInfo> contentInfo,
java.io.PrintWriter writer)
Add a domain object.
|
protected void |
end(java.io.PrintWriter writer)
End the assembly process.
|
protected void |
start(java.io.PrintWriter writer)
Start the assembly process.
|
add
add, end, getMetrics, start
public TemplatePdiAssembler(Template<D> template)
template
- The template to useprotected final void start(java.io.PrintWriter writer) throws java.io.IOException
PrintWriterAssembler
start
in class PrintWriterAssembler<HashedContents<D>>
writer
- Where to write outputjava.io.IOException
- When an I/O error occuresprotected final void add(D domainObject, java.util.Map<java.lang.String,ContentInfo> contentInfo, java.io.PrintWriter writer) throws java.io.IOException
PdiAssembler
add
in class PdiAssembler<D>
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 tojava.io.IOException
- When an I/O error occuresprotected final void end(java.io.PrintWriter writer) throws java.io.IOException
PrintWriterAssembler
end
in class PrintWriterAssembler<HashedContents<D>>
writer
- Where to write outputjava.io.IOException
- When an I/O error occures