Class Parser

java.lang.Object
com.vivoka.vsdk.nlu.Parser

public abstract class Parser extends Object
Abstract class representing a parser.
  • Field Details

    • _name

      protected final String _name
    • _listener

      protected IParserListener _listener
    • _active

      protected boolean _active
  • Constructor Details

  • Method Details

    • release

      protected abstract void release() throws Exception
      Throws:
      Exception
    • setListener

      public void setListener(IParserListener listener)
    • getName

      public String getName()
      Returns:
      The name of the parser.
    • process

      public abstract void process(String text) throws Exception
      Processes the given text.
      Parameters:
      text - The text to process.
      Throws:
      Exception - If the text is null or an empty string.