Interface IMessageAcceptor


public interface IMessageAcceptor
The common interface of message acceptor to the model objects.
  • Method Details

    • addError

      void addError(Object object, String message)
      Adds the error message.
      Parameters:
      object - the object, cannot be null.
      message - the message, cannot be null.
    • addWarning

      void addWarning(Object object, String message)
      Adds the warning message.
      Parameters:
      object - the object, cannot be null.
      message - the message, cannot be null.
    • addError

      void addError(Object object, int index, String message)
      Adds the error message.
      Parameters:
      object - the object, cannot be null.
      index - the index in the list
      message - the message, cannot be null.
    • addWarning

      void addWarning(Object object, int index, String message)
      Adds the warning message.
      Parameters:
      object - the object, cannot be null.
      index - the index in the list
      message - the message, cannot be null.
    • addError

      void addError(String message, int line)
      Adds the error message.
      Parameters:
      message - the message, cannot be null.
      line - the line in the file, starts with 1.
    • addWarning

      void addWarning(String message, int line)
      Adds the warning message.
      Parameters:
      message - the message, cannot be null.
      line - the line in the file, starts with 1.