public abstract class AbstractExporterDelegate<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Archive<?> |
archive
The archive being exported
|
private static java.util.logging.Logger |
log
Logger
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractExporterDelegate(Archive<?> archive)
Creates a new abstract exporter delegate for the provided
Archive |
Modifier and Type | Method and Description |
---|---|
protected void |
doExport()
Primary method providing a template for exporting the contents of an archive
|
T |
export()
Runs the export operation, returning the result
|
protected Archive<?> |
getArchive()
Return the archive being exported
|
protected abstract T |
getResult()
Return the results of the export.
|
protected abstract void |
processNode(ArchivePath path,
Node node)
Template method for processing a single node.
|
private void |
processNode(Node node)
Recursive call to process all the node hierarchy
|
private static final java.util.logging.Logger log
private final Archive<?> archive
public final T export()
protected void doExport()
private void processNode(Node node)
node
- protected abstract void processNode(ArchivePath path, Node node)
path
- node
- protected abstract T getResult()
protected Archive<?> getArchive()