Humboldt Alignment Editor 2.5.0

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

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.AbstractInstanceValidator
All Implemented Interfaces:
ImportProvider, IOProvider, InstanceValidator
Direct Known Subclasses:
XmlInstanceValidator

public abstract class AbstractInstanceValidator
extends GZipEnabledImport
implements InstanceValidator

Abstract InstanceValidator base implementation

Since:
2.5
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
AbstractInstanceValidator()
           
 
Method Summary
protected  Locatable[] getSchemas()
           
 void setSchemas(Locatable... schemas)
          Set the schemas to be used for validation.
 void validate()
          Additionally fails if there are no schemas set
 
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.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

AbstractInstanceValidator

public AbstractInstanceValidator()
Method Detail

setSchemas

public void setSchemas(Locatable... schemas)
Description copied from interface: InstanceValidator
Set the schemas to be used for validation.

Specified by:
setSchemas in interface InstanceValidator
Parameters:
schemas - the validation schema locations
See Also:
InstanceValidator.setSchemas(Locatable[])

getSchemas

protected Locatable[] getSchemas()
Returns:
the schemas

validate

public void validate()
              throws IOProviderConfigurationException
Additionally fails if there are no schemas set

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()

Humboldt Alignment Editor 2.5.0

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