Package net.mtrop.doom.map.udmf
Interface UDMFParserListener
- All Known Implementing Classes:
UDMFFullTableListener
,UDMFInlineTypeListener
,UDMFTypeListener
public interface UDMFParserListener
A listener for each new parsed entry or field that gets parsed in a UDMF structure.
- Author:
- Matthew Tropiano
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAttribute
(String name, Object value) Called when an attribute is read from a UDMF structure.void
onEnd()
Called when reading a UDMF document ends.void
onObjectEnd
(String name) Called when an object is ended in a UDMF structure.void
onObjectStart
(String name) Called when the start of an object is read from a UDMF structure.void
onParseError
(String error) Called when a parsing error occurs.void
onStart()
Called when reading a UDMF document starts.
-
Method Details
-
onStart
void onStart()Called when reading a UDMF document starts. -
onEnd
void onEnd()Called when reading a UDMF document ends. -
onAttribute
Called when an attribute is read from a UDMF structure.- Parameters:
name
- the name of the field.value
- the parsed value.
-
onObjectStart
Called when the start of an object is read from a UDMF structure.- Parameters:
name
- the name (type) of the structure.
-
onObjectEnd
Called when an object is ended in a UDMF structure.- Parameters:
name
- the name (type) of the structure.
-
onParseError
Called when a parsing error occurs.- Parameters:
error
- the error message.
-