ucot.input
Interface InputInterface

All Superinterfaces:
ModulePropertyInterface
All Known Implementing Classes:
DummyInput, ProcessMlInputAdapter, SimpleInputAdapter

public interface InputInterface
extends ModulePropertyInterface

Interface for inputs used by UCOT core. Inputs are the modules that handle reading data from given url and parsing usecases from it.

Author:
vevijopi

Method Summary
 boolean canRead(java.net.URL url)
          Test if this input can read file specified in url.
 UseCaseCollection read(java.net.URL url)
          Parses given usecase.
 java.lang.String toString()
          Returns inputs name as a String
 
Methods inherited from interface ucot.ModulePropertyInterface
applyProperties, getProperties, loadDefaultProperties, loadProperties, saveProperties, setProperties
 

Method Detail

read

UseCaseCollection read(java.net.URL url)
                       throws java.lang.Exception
Parses given usecase. Stores Parsed data to given ParsedData object.

Parameters:
url - Url where input is loaded from
Returns:
Steps read from the input
Throws:
java.lang.Exception

canRead

boolean canRead(java.net.URL url)
Test if this input can read file specified in url.

Parameters:
url - url of the file to try
Returns:
true if input can read the file

toString

java.lang.String toString()
Returns inputs name as a String

Overrides:
toString in class java.lang.Object
Returns:
String of inputs name