ua.gradsoft.termware
Class TermLoader

java.lang.Object
  extended by ua.gradsoft.termware.TermLoader
Direct Known Subclasses:
ClassPathTermLoader, FileOrClassTermLoader, FileSystemTermLoader

public abstract class TermLoader
extends Object

Abstract class for loading of terms from extern al storage. (such as file system or classpath or more)

Author:
Ruslan Shevchenko

Field Summary
protected  TermWareInstance instance_
           
 
Constructor Summary
TermLoader()
           
 
Method Summary
abstract  void addSearchPath(String path)
          add search path
abstract  List<String> getSearchPathes()
          return read-only list of searh patches.
abstract  InputStreamSource getSource(String name)
          locate source by absolute name.
 Term load(String name, IParserFactory parserFactory, Term parserFactoryArgs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance_

protected TermWareInstance instance_
Constructor Detail

TermLoader

public TermLoader()
Method Detail

load

public Term load(String name,
                 IParserFactory parserFactory,
                 Term parserFactoryArgs)
          throws TermWareException
Throws:
TermWareException

getSource

public abstract InputStreamSource getSource(String name)
                                     throws ResourceNotFoundException,
                                            ExternalException
locate source by absolute name.

Throws:
ResourceNotFoundException
ExternalException

addSearchPath

public abstract void addSearchPath(String path)
                            throws ExternalException
add search path

Throws:
ExternalException

getSearchPathes

public abstract List<String> getSearchPathes()
                                      throws ExternalException
return read-only list of searh patches.

Throws:
ExternalException