Class UDMFFullTableListener

java.lang.Object
net.mtrop.doom.map.udmf.listener.UDMFFullTableListener
All Implemented Interfaces:
UDMFParserListener

public class UDMFFullTableListener extends Object implements UDMFParserListener
A parser listener that generates full UDMF tables. Can be fairly memory-intensive. Can be re-used.
Author:
Matthew Tropiano
  • Constructor Details

    • UDMFFullTableListener

      public UDMFFullTableListener()
  • Method Details

    • onStart

      public void onStart()
      Description copied from interface: UDMFParserListener
      Called when reading a UDMF document starts.
      Specified by:
      onStart in interface UDMFParserListener
    • getTable

      public UDMFTable getTable()
      Returns:
      the parsed table.
    • getErrorMessages

      public String[] getErrorMessages()
      Returns:
      the list of error messages during parse.
    • onObjectStart

      public void onObjectStart(String name)
      Description copied from interface: UDMFParserListener
      Called when the start of an object is read from a UDMF structure.
      Specified by:
      onObjectStart in interface UDMFParserListener
      Parameters:
      name - the name (type) of the structure.
    • onObjectEnd

      public void onObjectEnd(String name)
      Description copied from interface: UDMFParserListener
      Called when an object is ended in a UDMF structure.
      Specified by:
      onObjectEnd in interface UDMFParserListener
      Parameters:
      name - the name (type) of the structure.
    • onAttribute

      public void onAttribute(String name, Object value)
      Description copied from interface: UDMFParserListener
      Called when an attribute is read from a UDMF structure.
      Specified by:
      onAttribute in interface UDMFParserListener
      Parameters:
      name - the name of the field.
      value - the parsed value.
    • onParseError

      public void onParseError(String error)
      Description copied from interface: UDMFParserListener
      Called when a parsing error occurs.
      Specified by:
      onParseError in interface UDMFParserListener
      Parameters:
      error - the error message.
    • onEnd

      public void onEnd()
      Description copied from interface: UDMFParserListener
      Called when reading a UDMF document ends.
      Specified by:
      onEnd in interface UDMFParserListener