public class ValidationMessage extends Object
Constructor and Description |
---|
ValidationMessage(String text)
Create a validation message with the specified text.
|
Modifier and Type | Method and Description |
---|---|
Object |
getElement()
Return the topology element associated with this message.
|
String |
getText()
Return the text of the message.
|
boolean |
isCritical()
Return the critical status of this message.
|
ValidationMessage |
setCritical(boolean critical)
Set the critical status of this message.
|
ValidationMessage |
setElement(Object element)
Set the topology element associated with this message.
|
public ValidationMessage(String text)
text
- the text of the messagepublic String getText()
public Object getElement()
public ValidationMessage setElement(Object element)
element
- the associated topology elementpublic boolean isCritical()
public ValidationMessage setCritical(boolean critical)
critical
- true if the topology cannot be written and read, false otherwise