public class ValidateMessage extends java.lang.Object implements IValidationMessage
IValidationMessage.| Constructor and Description |
|---|
ValidateMessage(java.lang.String pMsgText,
char pSeverity,
java.util.List<java.lang.Integer> pPositions)
Constructor for creating a position based validation message.
|
ValidateMessage(java.lang.String pMsgText,
char pSeverity,
Property pProperty)
Constructor for creating a property based validation message.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMsgText()
Gets the that will be shown in the dialog.
|
java.util.List<java.lang.Integer> |
getPositions()
Gets the positions of the dialog fields to which the validate message
refers.
|
Property |
getProperty()
Gets the property to which the validation message is referring to.
|
char |
getSeverity()
Gets the severity of a validate message.
|
public ValidateMessage(java.lang.String pMsgText,
char pSeverity,
java.util.List<java.lang.Integer> pPositions)
pMsgText - contains the validate text that will be shown in the dialogpSeverity - contains the severity of a validate message. Permitted values
are "I" for Information, "W" for Warning and "E" for Error.
The default value is "I"pPositions - contains the position of the dialog field to which the
validate message refers. A validate message can correspond to
multiple dialog fields. In this case the positions are
separated by blank or comma. Dialog fields corresponding to
these positions are decorated with a validation message text
depending on the severity. The focus is set to the dialog
field corresponding to the lowest position valuepublic ValidateMessage(java.lang.String pMsgText,
char pSeverity,
Property pProperty)
pMsgText - contains the validate text that will be shown in the dialogpSeverity - contains the severity of a validate message. Permitted values
are "I" for Information, "W" for Warning and "E" for Error.
The default value is "I"pProperty - the invalid property. Can be null if the message
is not aimed at a specific propertypublic java.lang.String getMsgText()
IValidationMessagegetMsgText in interface IValidationMessagepublic char getSeverity()
IValidationMessagegetSeverity in interface IValidationMessagepublic java.util.List<java.lang.Integer> getPositions()
IValidationMessagegetPositions in interface IValidationMessagepublic Property getProperty()
IValidationMessagenull.getProperty in interface IValidationMessagenullCopyright © 2015 Micro Focus GmbH. All rights reserved.