public class PropErrorItemValue extends PropErrorItem
CHILD_PROP_ERROR_PREFIX, ERROR, INFO, VERIFY_ERROR_CHILD_PREFIX, WARNING
Constructor and Description |
---|
PropErrorItemValue()
Constructs a new instance from an XML element.
|
PropErrorItemValue(String input,
String message)
Constructs a new instance without ID (empty string).
|
PropErrorItemValue(String id,
String input,
String message)
Constructs a new instance.
|
PropErrorItemValue(String id,
String input,
String message,
int level)
Constructs a new instance.
|
PropErrorItemValue(String id,
String input,
String message,
int level,
String... quickFixes)
Constructs a new instance.
|
PropErrorItemValue(String id,
String input,
String message,
String location,
int level,
String... quickFixes)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Checks if two items are equal.
|
String |
getInput()
Gets the user input.
|
void |
load(Element element)
Loads the error from XML.
|
protected String |
paramString()
Formats the error input to a string.
|
void |
save(Element element)
Called when the XML file for the error tree is serialized from properties.
|
clone, getID, getIndex, getLocation, getLocationOrName, getMessage, getQuickFixes, getSeverity, getText, setIndex, toString
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildPropName, isChildPropError
public PropErrorItemValue()
public PropErrorItemValue(String input, String message)
input
- The user input string, never null.message
- The error message string, never null.NullPointerException
- If input or message is null.public PropErrorItemValue(String id, String input, String message)
id
- The ID of the message, never null.input
- The user input string, never null.message
- The error message string, never null.NullPointerException
- If id, input or message is null.public PropErrorItemValue(String id, String input, String message, int level)
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.IllegalArgumentException
- If level is not INFO, WARNING or ERROR.NullPointerException
- If id, input or message is null.public PropErrorItemValue(String id, String input, String message, int level, String... quickFixes)
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.IllegalArgumentException
- If level is not INFO, WARNING or ERROR.NullPointerException
- If id, input or message is null.public PropErrorItemValue(String id, String input, String message, String location, int level, String... quickFixes)
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.IllegalArgumentException
- If level is not INFO, WARNING or ERROR.NullPointerException
- If id, input or message is null.public void load(Element element) throws Exception
load
in interface IPropErrorItem
load
in class PropErrorItem
element
- The errorItem
element.Exception
- For errors in XML.public String getInput()
public boolean equals(Object o)
equals
in interface IPropErrorItem
equals
in class PropErrorItem
protected String paramString()
paramString
in class PropErrorItem
public void save(Element element)
save
in interface IPropErrorItem
save
in class PropErrorItem
element
- The Element
to initialize.iizi® is a registered trademark of Mindus SARL. © Copyright 2019 Mindus SARL. All rights reserved.