ucot.input
Interface InputInterface

All Known Implementing Classes:
ProcessMlInputAdapter, SimpleInputAdapter

public interface InputInterface

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.
 java.util.Properties getOptions()
          Returns adapter's options
 UseCaseCollection read(java.net.URL url)
          Parses given usecase.
 void setOptions(java.util.Properties options)
          Sets options for the adapter
 

Method Detail

read

UseCaseCollection read(java.net.URL url)
                       throws java.io.IOException
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.io.IOException

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

setOptions

void setOptions(java.util.Properties options)
Sets options for the adapter

Parameters:
options - options for the adapter

getOptions

java.util.Properties getOptions()
Returns adapter's options

Returns:
adapter's options