de.lmu.ifi.dbs.elki.parser
Class AbstractParser<O extends DatabaseObject>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.parser.AbstractParser<O>
- All Implemented Interfaces:
- Loggable, Parser<O>, Parameterizable
- Direct Known Subclasses:
- BitVectorLabelParser, NumberDistanceParser, ParameterizationFunctionLabelParser, RealVectorLabelParser, SparseBitVectorLabelParser
public abstract class AbstractParser<O extends DatabaseObject>
- extends AbstractParameterizable
- implements Parser<O>
Abstract superclass for all parsers providing the option handler for
handling options.
- Author:
- Arthur Zimek
Constructor Summary |
protected |
AbstractParser()
AbstractParser already provides the option handler. |
Method Summary |
String |
toString()
Returns a string representation of the object. |
protected String |
usage(String message)
Returns a usage string based on the usage of optionHandler. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
addOption, checkGlobalParameterConstraints, deleteOption, description, description, description, getAttributeSettings, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters, setParameters |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from interface de.lmu.ifi.dbs.elki.parser.Parser |
parse |
COMMENT
public static final String COMMENT
- The comment character.
- See Also:
- Constant Field Values
ATTRIBUTE_CONCATENATION
public static final String ATTRIBUTE_CONCATENATION
- A sign to separate attributes.
- See Also:
- Constant Field Values
WHITESPACE_PATTERN
public static final Pattern WHITESPACE_PATTERN
- A pattern defining whitespace.
AbstractParser
protected AbstractParser()
- AbstractParser already provides the option handler.
usage
protected String usage(String message)
- Returns a usage string based on the usage of optionHandler.
- Parameters:
message
- a message string to be included in the usage string
- Returns:
- a usage string based on the usage of optionHandler
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
toString
in class Object
- Returns:
- a string representation of the object.