public abstract class AbstractInstanceWriter extends GZipEnabledExport implements InstanceWriter
InstanceWriter
base implementationGZipEnabledExport.GZipOutputSupplier
PARAM_TARGET
PARAM_CHARSET, PARAM_CONTENT_TYPE
Constructor and Description |
---|
AbstractInstanceWriter() |
Modifier and Type | Method and Description |
---|---|
void |
checkCompatibility()
Validate the basic
InstanceWriter configuration, to determine if
the target schema (and instances if set) are compatible to the writer. |
protected InstanceCollection |
getInstances() |
SchemaSpace |
getTargetSchema()
Get the target schema.
|
List<? extends Locatable> |
getValidationSchemas()
Returns the target schema; override to return another set of schemas
|
void |
setInstances(InstanceCollection instances)
Set the instances to write.
|
void |
setTargetSchema(SchemaSpace targetSchema)
Set the target schema for the output.
|
void |
validate()
Additionally checks for instances.
|
getTarget
createReporter, setParameter, setTarget, storeConfiguration
addSupportedParameter, execute, execute, fail, getCharset, getContentType, getDefaultCharset, getDefaultTypeName, getParameter, getSupportedParameters, getTypeName, loadConfiguration, setCharset, setContentType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTarget, setTarget
createReporter, execute, getCharset, getContentType, getParameter, getSupportedParameters, isCancelable, loadConfiguration, setCharset, setContentType, setParameter, storeConfiguration
public void validate() throws IOProviderConfigurationException
validate
in interface IOProvider
validate
in class AbstractExportProvider
IOProviderConfigurationException
- if the I/O provider was not
configured properlyAbstractExportProvider.validate()
public void checkCompatibility() throws IOProviderConfigurationException
InstanceWriter
InstanceWriter
configuration, to determine if
the target schema (and instances if set) are compatible to the writer.
Other parameters should be ignored for the check.checkCompatibility
in interface InstanceWriter
IOProviderConfigurationException
- if the I/O provider was not
configured properlyInstanceWriter.checkCompatibility()
public List<? extends Locatable> getValidationSchemas()
getValidationSchemas
in interface InstanceWriter
InstanceWriter.getValidationSchemas()
public void setInstances(InstanceCollection instances)
InstanceWriter
setInstances
in interface InstanceWriter
instances
- the instances to writeInstanceWriter.setInstances(InstanceCollection)
public void setTargetSchema(SchemaSpace targetSchema)
InstanceWriter
setTargetSchema
in interface InstanceWriter
targetSchema
- the target schemaInstanceWriter.setTargetSchema(SchemaSpace)
protected InstanceCollection getInstances()
public SchemaSpace getTargetSchema()
InstanceWriter
getTargetSchema
in interface InstanceWriter
InstanceWriter.getTargetSchema()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a