Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.io.impl
Class AbstractInstanceReader

java.lang.Object
  extended by eu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider
      extended by eu.esdihumboldt.hale.common.core.io.impl.AbstractImportProvider
          extended by eu.esdihumboldt.hale.common.core.io.impl.GZipEnabledImport
              extended by eu.esdihumboldt.hale.common.instance.io.impl.AbstractInstanceReader
All Implemented Interfaces:
ImportProvider, IOProvider, InstanceReader
Direct Known Subclasses:
CSVInstanceReader, ShapeInstanceReader, StreamGmlReader

public abstract class AbstractInstanceReader
extends GZipEnabledImport
implements InstanceReader

Abstract InstanceReader base implementation

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Nested Class Summary
 
Nested classes/interfaces inherited from class eu.esdihumboldt.hale.common.core.io.impl.GZipEnabledImport
GZipEnabledImport.GZipInputSupplier
 
Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.common.core.io.ImportProvider
PARAM_RESOURCE_ID, PARAM_SOURCE
 
Fields inherited from interface eu.esdihumboldt.hale.common.core.io.IOProvider
PARAM_CONTENT_TYPE
 
Constructor Summary
AbstractInstanceReader()
           
 
Method Summary
protected  CRSProvider getCrsProvider()
          Get the CRS provider.
 TypeIndex getSourceSchema()
          Get the source schema
 void setCRSProvider(CRSProvider crsProvider)
          Set a CRS provider that is queried if no CRS can be determined for a property value and no default CRS is configured for the associated property definition.
 void setSourceSchema(TypeIndex sourceSchema)
          Set the instance source schema
 void validate()
          Validate the I/O provider configuration
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.GZipEnabledImport
getSource
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.AbstractImportProvider
createReporter, execute, generateResourceId, getResourceIdentifier, setParameter, setSource, storeConfiguration
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider
addSupportedParameter, execute, fail, getContentType, getDefaultTypeName, getParameter, getSupportedParameters, getTypeName, loadConfiguration, setContentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.esdihumboldt.hale.common.instance.io.InstanceReader
getInstances
 
Methods inherited from interface eu.esdihumboldt.hale.common.core.io.ImportProvider
getResourceIdentifier, getSource, setSource
 
Methods inherited from interface eu.esdihumboldt.hale.common.core.io.IOProvider
createReporter, execute, getContentType, getParameter, getSupportedParameters, isCancelable, loadConfiguration, setContentType, setParameter, storeConfiguration
 

Constructor Detail

AbstractInstanceReader

public AbstractInstanceReader()
Method Detail

setSourceSchema

public void setSourceSchema(TypeIndex sourceSchema)
Description copied from interface: InstanceReader
Set the instance source schema

Specified by:
setSourceSchema in interface InstanceReader
Parameters:
sourceSchema - the source schema
See Also:
InstanceReader.setSourceSchema(TypeIndex)

getSourceSchema

public TypeIndex getSourceSchema()
Description copied from interface: InstanceReader
Get the source schema

Specified by:
getSourceSchema in interface InstanceReader
Returns:
the source schema
See Also:
InstanceReader.getSourceSchema()

validate

public void validate()
              throws IOProviderConfigurationException
Description copied from interface: IOProvider
Validate the I/O provider configuration

Specified by:
validate in interface IOProvider
Overrides:
validate in class AbstractImportProvider
Throws:
IOProviderConfigurationException - if the I/O provider was not configured properly
See Also:
AbstractImportProvider.validate()

setCRSProvider

public void setCRSProvider(CRSProvider crsProvider)
Description copied from interface: InstanceReader
Set a CRS provider that is queried if no CRS can be determined for a property value and no default CRS is configured for the associated property definition.

Specified by:
setCRSProvider in interface InstanceReader
Parameters:
crsProvider - the CRS provider
See Also:
InstanceReader.setCRSProvider(CRSProvider)

getCrsProvider

protected CRSProvider getCrsProvider()
Get the CRS provider.

Returns:
the CRS provider

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d