uk.ac.starlink.ttools.task
Interface WordParser
public interface WordParser
Defines a parser which can turn a string into some other value.
- Since:
- 9 May 2006
- Author:
- Mark Taylor
parseWord
Object parseWord(String word)
throws TaskException
- Parses a string to return a value of some kind.
If the word cannot be parsed, a
TaskException
,
preferably with an explanatory (user-directed) message,
should be thrown. This method serves the purpose of validation
as well as translation.
- Parameters:
word
- string form
- Returns:
- parsed value
- Throws:
TaskException
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.