|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.parser.meta.MetaParser<O>
O - the type of DatabaseObject used in the ParsingResult
retrieved by the base parser and provided in the ParsingResult
of the Parser.parse(InputStream)-method of this Parser's subclass.public abstract class MetaParser<O extends DatabaseObject>
A MetaParser uses any Parser as specified by the user via parameter
setting as base parser and may perform certain transformations on the
retrieved ParsingResult.
| Field Summary | |
|---|---|
private Parser<O> |
baseparser
Holds an instance of the current base parser. |
static OptionID |
BASEPARSER_ID
OptionID for BASEPARSER_PARAM. |
private ClassParameter<? extends Parser<O>> |
BASEPARSER_PARAM
The parameter for setting the base parser. |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
MetaParser(Parameterization config)
Constructor, adhering to Parameterizable |
|
| Method Summary | |
|---|---|
protected ParsingResult<O> |
retrieveBaseParsingresult(InputStream in)
Retrieves the ParsingResult of the base parser. |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.lmu.ifi.dbs.elki.parser.Parser |
|---|
parse |
| Field Detail |
|---|
public static final OptionID BASEPARSER_ID
BASEPARSER_PARAM.
private final ClassParameter<? extends Parser<O extends DatabaseObject>> BASEPARSER_PARAM
Key: -metaparser.baseparser
Default: DoubleVectorLabelParser
private Parser<O extends DatabaseObject> baseparser
| Constructor Detail |
|---|
public MetaParser(Parameterization config)
Parameterizable
config - Parameterization| Method Detail |
|---|
protected ParsingResult<O> retrieveBaseParsingresult(InputStream in)
Retrieves the ParsingResult of the base parser.
in - the InputStream to be parsed
ParsingResult of the base parserpublic String toString()
toString in class Object
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||