Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.core.io.project.impl
Class AbstractProjectReader

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.project.impl.AbstractProjectReader
All Implemented Interfaces:
ImportProvider, IOProvider, ProjectReader
Direct Known Subclasses:
ArchiveProjectReader, DefaultProjectReader

public abstract class AbstractProjectReader
extends AbstractImportProvider
implements ProjectReader

Abstract project reader with information on project and projectfiles

Author:
Patrick Lieb

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
AbstractProjectReader()
           
 
Method Summary
protected  String getDefaultTypeName()
          Get the default type name if no content type is provided
 Project getProject()
          Get the loaded main project
 Map<String,ProjectFile> getProjectFiles()
          Get the additional project files
 boolean isCancelable()
          States if the execution of the provider is cancelable
 void setProject(Project project)
           
 void setProjectFiles(Map<String,ProjectFile> projectFiles)
          Set the project files to read if applicable.
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.AbstractImportProvider
createReporter, execute, generateResourceId, getResourceIdentifier, getSource, setParameter, setSource, storeConfiguration, validate
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider
addSupportedParameter, execute, fail, getContentType, 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, loadConfiguration, setContentType, setParameter, storeConfiguration, validate
 

Constructor Detail

AbstractProjectReader

public AbstractProjectReader()
Method Detail

setProjectFiles

public void setProjectFiles(Map<String,ProjectFile> projectFiles)
Description copied from interface: ProjectReader
Set the project files to read if applicable.

Specified by:
setProjectFiles in interface ProjectReader
Parameters:
projectFiles - the project files to read (file name mapped to project file)
See Also:
ProjectReader.setProjectFiles(Map)

getProjectFiles

public Map<String,ProjectFile> getProjectFiles()
Description copied from interface: ProjectReader
Get the additional project files

Specified by:
getProjectFiles in interface ProjectReader
Returns:
the project files (file name mapped to project file)
See Also:
ProjectReader.getProjectFiles()

getProject

public Project getProject()
Description copied from interface: ProjectReader
Get the loaded main project

Specified by:
getProject in interface ProjectReader
Returns:
the project or null if it has not been loaded
See Also:
ProjectReader.getProject()

setProject

public void setProject(Project project)
Parameters:
project - set the current project

isCancelable

public boolean isCancelable()
Description copied from interface: IOProvider
States if the execution of the provider is cancelable

Specified by:
isCancelable in interface IOProvider
Returns:
if the execution is cancelable
See Also:
IOProvider.isCancelable()

getDefaultTypeName

protected String getDefaultTypeName()
Description copied from class: AbstractIOProvider
Get the default type name if no content type is provided

Specified by:
getDefaultTypeName in class AbstractIOProvider
Returns:
the default content type
See Also:
AbstractIOProvider.getDefaultTypeName()

Humboldt Alignment Editor 2.5.0

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