public class XsltExport extends AbstractAlignmentWriter implements XmlWriterBase, ProjectInfoAware
GroupLayout.Alignment
to XSLT.PARAM_ROOT_ELEMENT_NAME, PARAM_ROOT_ELEMENT_NAMESPACE
PARAM_CHARSET, PARAM_CONTENT_TYPE
PARAM_TARGET
Constructor and Description |
---|
XsltExport()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected IOReport |
execute(ProgressIndicator progress,
IOReporter reporter)
Execute the I/O provider.
|
protected String |
getDefaultTypeName()
Get the default type name if no content type is provided
|
protected SourceContextProvider |
getSourceContext()
Get the custom source context provider to use during the export.
|
SchemaSpace |
getTargetSchema()
Get the source schema.
|
protected void |
init(XmlIndex sourceIndex,
XmlIndex targetIndex)
Initialize the provider before execution.
|
boolean |
isCancelable()
States if the execution of the provider is cancelable
|
void |
setProjectInfo(ProjectInfo projectInfo)
Set information about the current project.
|
void |
validate()
Checks for the alignment being available.
|
protected void |
writeContainerIntro(XMLStreamWriter writer,
XsltGenerationContext context)
Write additional content into the container before it is populated by the
type relations.
|
getAlignment, getProjectInfo, getProjectLocation, getSourceSchema, setAlignment, setProjectLocation, setSourceSchema, setTargetSchema
createReporter, getTarget, setParameter, setTarget, storeConfiguration
addSupportedParameter, execute, fail, getCharset, getContentType, getDefaultCharset, getParameter, getSupportedParameters, getTypeName, loadConfiguration, setCharset, setContentType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createReporter, execute, getCharset, getContentType, getParameter, getSupportedParameters, loadConfiguration, setCharset, setContentType, setParameter, storeConfiguration
setProjectLocation
getTarget, setTarget
public boolean isCancelable()
IOProvider
isCancelable
in interface IOProvider
public void validate() throws IOProviderConfigurationException
AbstractAlignmentWriter
validate
in interface IOProvider
validate
in class AbstractAlignmentWriter
IOProviderConfigurationException
- if the I/O provider was not
configured properlyAbstractExportProvider.validate()
public void setProjectInfo(ProjectInfo projectInfo)
ProjectInfoAware
setProjectInfo
in interface ProjectInfoAware
setProjectInfo
in class AbstractAlignmentWriter
projectInfo
- the project information, may be null
if
no project is availableprotected IOReport execute(ProgressIndicator progress, IOReporter reporter) throws IOProviderConfigurationException, IOException
AbstractIOProvider
execute
in class AbstractIOProvider
progress
- the progress indicatorreporter
- the reporter to use for the execution reportIOProviderConfigurationException
- if the I/O provider was not
configured properlyIOException
- if an I/O operation failsprotected SourceContextProvider getSourceContext()
protected void init(XmlIndex sourceIndex, XmlIndex targetIndex) throws IOProviderConfigurationException
sourceIndex
- the source schematargetIndex
- the target schemaIOProviderConfigurationException
- if the initialization was not
successful and the execution should not proceedprotected void writeContainerIntro(XMLStreamWriter writer, XsltGenerationContext context) throws XMLStreamException, IOException
writer
- the XML stream writercontext
- the XSLT generation contextXMLStreamException
- if an error occurs while writing to the
containerIOException
- if an error occurs writing to the fileprotected String getDefaultTypeName()
AbstractIOProvider
getDefaultTypeName
in class AbstractIOProvider
public SchemaSpace getTargetSchema()
AbstractAlignmentWriter
getTargetSchema
in interface XmlWriterBase
getTargetSchema
in class AbstractAlignmentWriter
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a