java.lang.Objectucot.ModuleProperties
ucot.parser.SimpleParser
public class SimpleParser
Simple parser. Expects that the usecase steps consists of three parts separated with ",". First part is noun, second is verb and the third is noun.
Field Summary |
---|
Fields inherited from class ucot.ModuleProperties |
---|
properties, propertiesURL |
Fields inherited from interface ucot.parser.ParserInterface |
---|
NOUN, OBJECT, SUBJECT, VERB |
Constructor Summary | |
---|---|
SimpleParser()
|
Method Summary | |
---|---|
void |
applyProperties()
Applies current properties for the module. |
java.lang.String |
getName()
Returns adapter's name. |
java.util.Properties |
loadDefaultProperties()
Method which returns the factory default properties for the module. |
ParsedData |
parse(UseCase useCase)
Parses given usecase and returns parsed data as a ParsedData object. |
java.lang.String |
toString()
|
Methods inherited from class ucot.ModuleProperties |
---|
getProperties, loadProperties, saveProperties, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ucot.ModulePropertyInterface |
---|
getProperties, loadProperties, saveProperties, setProperties |
Constructor Detail |
---|
public SimpleParser()
Method Detail |
---|
public ParsedData parse(UseCase useCase)
ParserInterface
parse
in interface ParserInterface
useCase
- Use case to parse.
public java.lang.String getName()
ParserInterface
getName
in interface ParserInterface
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Properties loadDefaultProperties()
ModulePropertyInterface
Method which returns the factory default properties for the module.
loadDefaultProperties
in interface ModulePropertyInterface
loadDefaultProperties
in class ModuleProperties
ModulePropertyInterface.loadDefaultProperties()
public void applyProperties() throws BadPropertyValueException
ModulePropertyInterface
Applies current properties for the module.
applyProperties
in interface ModulePropertyInterface
applyProperties
in class ModuleProperties
BadPropertyValueException
- In this case exception
is thrown only if either the given parser or heuristic
does not exist.ModulePropertyInterface.applyProperties()