Class PropErrorItemValue

java.lang.Object
com.iizix.prop.PropErrorItem
com.iizix.prop.PropErrorItemValue
All Implemented Interfaces:
IPropErrorItem, Cloneable

public class PropErrorItemValue extends PropErrorItem
Class holding information about an error for the Property Editor in the Designer. Several errors can be set for a single property, e.g. when there are of multi-style.
Author:
Christopher Mindus
  • Constructor Details

    • PropErrorItemValue

      public PropErrorItemValue()
      Constructs a new instance from an XML element.
    • PropErrorItemValue

      public PropErrorItemValue(String input, String message)
      Constructs a new instance without ID (empty string).
      Parameters:
      input - The user input string, never null.
      message - The error message string, never null.
      Throws:
      NullPointerException - If input or message is null.
    • PropErrorItemValue

      public PropErrorItemValue(String id, String input, String message)
      Constructs a new instance.
      Parameters:
      id - The ID of the message, never null.
      input - The user input string, never null.
      message - The error message string, never null.
      Throws:
      NullPointerException - If id, input or message is null.
    • PropErrorItemValue

      public PropErrorItemValue(String id, String input, String message, int level)
      Constructs a new instance.
      Parameters:
      id - The ID of the message, never null.
      input - The user input string, never null.
      message - The error message string, never null.
      level - The severity level: INFO, WARNING or ERROR.
      Throws:
      IllegalArgumentException - If level is not INFO, WARNING or ERROR.
      NullPointerException - If id, input or message is null.
    • PropErrorItemValue

      public PropErrorItemValue(String id, String input, String message, int level, String... quickFixes)
      Constructs a new instance.
      Parameters:
      id - The ID of the message, never null.
      input - The user input string, never null.
      message - The error message string, never null.
      level - The severity level: INFO, WARNING or ERROR.
      quickFixes - The quick-fix ID's.
      Throws:
      IllegalArgumentException - If level is not INFO, WARNING or ERROR.
      NullPointerException - If id, input or message is null.
    • PropErrorItemValue

      public PropErrorItemValue(String id, String input, String message, String location, int level, String... quickFixes)
      Constructs a new instance.
      Parameters:
      id - The ID of the message, never null.
      input - The user input string, never null.
      message - The error message string, never null.
      location - The location, null for none.
      level - The severity level: INFO, WARNING or ERROR.
      quickFixes - The quick-fix ID's.
      Throws:
      IllegalArgumentException - If level is not INFO, WARNING or ERROR.
      NullPointerException - If id, input or message is null.
  • Method Details