public class SingleAttributeCollector<E extends Entity> extends ParameterCollector
MultipleAttributeCollector
as an alternative.event, msg, paramName, parser_text_separator, sourceContext, startLoc, state, text_separator, vox
Constructor and Description |
---|
SingleAttributeCollector(MuLiMessageReceiver<XMLDocumentIdentifier> msg,
String paramName,
ULex<E> entity_lexer,
ULex<String> additionalText_lexer,
Map<Event,E> entity_result,
Map<Event,String> additionalText_result) |
Modifier and Type | Method and Description |
---|---|
void |
finalizeEvent(Event ev)
Does nothing.
|
void |
finalizeTrack()
Does nothing.
|
void |
parseEvent(Event ev,
ULex.State state)
Applies the parameter value lexer, as given with the constructor.
|
error, findLocation, parseVoice, setSourceContext, warning
public void parseEvent(Event ev, ULex.State state)
MixedAlternativesCollector
!)
then an error is issued.
Otherwise the entitiy result and the additional text are entered
into the resp. map.parseEvent
in class ParameterCollector
ev
- the event to processstate
- the input datapublic void finalizeEvent(Event ev)
finalizeEvent
in class ParameterCollector
public void finalizeTrack()
finalizeTrack
in class ParameterCollector