public class MultipleAttributeCollector<E extends Entity> extends ParameterCollector
Multimap.
SingleAttributeCollector as an alternative.
parseEvent(Event, ULex.State)
does NOT realizse the necessary loop, but must be repeated
as long as possible from a higher level of execution.
This is, because the input context may define some separator characters,
or the calling class may even be a MixedAlternativesCollector.
In neither case a local loop would be appropriate,
which could only parse immediate repetitions,
but not the intermangling with valid inputs of different kind.event, msg, paramName, parser_text_separator, sourceContext, startLoc, state, text_separator, vox| Constructor and Description |
|---|
MultipleAttributeCollector(MuLiMessageReceiver<XMLDocumentIdentifier> msg,
String paramName,
ULex<E> entity_lexer,
Multimap<Event,E> entity_result) |
| Modifier and Type | Method and Description |
|---|---|
void |
finalizeEvent(Event ev)
Does nothing.
|
void |
finalizeTrack()
Does nothing.
|
void |
parseEvent(Event ev,
ULex.State state)
Must be specialized for parsing the parameter values for one
single event, but may never be called directly.
|
error, findLocation, parseVoice, setSourceContext, warningpublic MultipleAttributeCollector(MuLiMessageReceiver<XMLDocumentIdentifier> msg, String paramName, ULex<E> entity_lexer, Multimap<Event,E> entity_result)
public void parseEvent(Event ev, ULex.State state)
ParameterCollectorparseEvent in class ParameterCollectorev - the event to processstate - the input datapublic void finalizeEvent(Event ev)
finalizeEvent in class ParameterCollectorpublic void finalizeTrack()
finalizeTrack in class ParameterCollector