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. User should
first check that some URL is readable by this reader by invoking
canRead(URL)
method.
It is up to the Input to set each loaded usecase's url correctly.
Method Summary | |
---|---|
boolean |
canRead(java.net.URL url)
Test if this input can read the data in specified url. |
UseCaseCollection |
read(java.net.URL url)
Reads usecase collection from URL. |
java.lang.String |
toString()
Returns inputs name as a String |
Methods inherited from interface ucot.ModulePropertyInterface |
---|
applyProperties, getProperties, loadDefaultProperties, loadProperties, saveProperties, setProperties |
Method Detail |
---|
UseCaseCollection read(java.net.URL url) throws java.lang.Exception
Reads usecase collection from URL.
url
- URL where input is loaded from
java.lang.Exception
boolean canRead(java.net.URL url)
Test if this input can read the data in specified url.
url
- The url.
java.lang.String toString()
toString
in class java.lang.Object