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 Type
    Method
    Description
    void
    onAttribute(String name, Object value)
    Called when an attribute is read from a UDMF structure.
    void
    Called when reading a UDMF document ends.
    void
    Called when an object is ended in a UDMF structure.
    void
    Called when the start of an object is read from a UDMF structure.
    void
    Called when a parsing error occurs.
    void
    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

      void onAttribute(String name, Object value)
      Called when an attribute is read from a UDMF structure.
      Parameters:
      name - the name of the field.
      value - the parsed value.
    • onObjectStart

      void onObjectStart(String name)
      Called when the start of an object is read from a UDMF structure.
      Parameters:
      name - the name (type) of the structure.
    • onObjectEnd

      void onObjectEnd(String name)
      Called when an object is ended in a UDMF structure.
      Parameters:
      name - the name (type) of the structure.
    • onParseError

      void onParseError(String error)
      Called when a parsing error occurs.
      Parameters:
      error - the error message.