public class DesignFormExporter extends AbstractDesignExporterProvider<Form>
限定符和类型 | 方法和说明 |
---|---|
void |
beforeExport(DesignExportType type,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> para,
Form form)
导出之前的操作
|
void |
export(java.io.OutputStream outputStream,
DesignExportType type,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> para)
执行导出
|
ExporterWrapper<Form> |
getExporter(DesignExportType type,
Form tpl)
依据到处类型和模板对象,获取具体的导出器
|
static DesignFormExporter |
getInstance() |
void |
pureExport(java.io.OutputStream outputStream,
DesignExportType type,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> para)
单纯的执行导出,不走before after 这些操作
|
Form |
readTemplate(java.lang.String path)
模板读取策略
|
java.lang.String |
scopeName()
调用区分
|
afterExport, afterRead, beforeRead
public static DesignFormExporter getInstance()
public ExporterWrapper<Form> getExporter(DesignExportType type, Form tpl)
DesignExporterProvider
type
- 导出类型tpl
- 模板对象public java.lang.String scopeName()
DesignExporterProvider
public Form readTemplate(java.lang.String path) throws java.lang.Exception
DesignExporterProvider
path
- 路径java.lang.Exception
- epublic void beforeExport(DesignExportType type, java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> para, Form form) throws java.lang.Exception
DesignExporterProvider
beforeExport
在接口中 DesignExporterProvider<Form>
beforeExport
在类中 AbstractDesignExporterProvider<Form>
type
- 导出类型path
- 路径para
- 模板对象的参数form
- 模板类型java.lang.Exception
- epublic void export(java.io.OutputStream outputStream, DesignExportType type, java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> para) throws java.lang.Exception
DesignExporterProvider
outputStream
- 输出流type
- 导出类型path
- 路径para
- 参数java.lang.Exception
- epublic void pureExport(java.io.OutputStream outputStream, DesignExportType type, java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> para) throws java.lang.Exception
DesignExporterProvider
outputStream
- 输出流type
- 导出类型path
- 路径para
- 参数java.lang.Exception
- e