|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IValidationMessage
A validation message stores the fields of a message in the form of attributes. See the ATTRIBUTE_* constants for more details.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_COLUMN_NUMBER
An integer indicating the character location associated with this message |
static java.lang.String |
ATTRIBUTE_LINE_NUMBER
An integer indicating the line number associated with this message |
static java.lang.String |
ATTRIBUTE_MESSAGE
The message attribute. |
static java.lang.String |
ATTRIBUTE_RESOURCE
An object of type IResource indicating the resource associated with this message |
static java.lang.String |
ATTRIBUTE_SEVERITY
The severity attribute. |
static int |
SEVERITY_ERROR
Indicates a severity of error |
static int |
SEVERITY_INFO
Indicates a severity of info |
static int |
SEVERITY_WARNING
Indicates a severity of warning |
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String key)
Retrieve an object attribute |
boolean |
getAttribute(java.lang.String key,
boolean defaultValue)
Retrieve a boolean attribute |
int |
getAttribute(java.lang.String key,
int defaultValue)
Retrieve an integer attribute |
java.lang.String |
getAttribute(java.lang.String key,
java.lang.String defaultValue)
Retrieve a string attribute |
void |
setAttribute(java.lang.String key,
boolean value)
Set a boolean attribute |
void |
setAttribute(java.lang.String key,
int value)
Set an integer attribute |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
Set an object attribute |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set a string attribute |
| Field Detail |
|---|
static final int SEVERITY_INFO
static final int SEVERITY_WARNING
static final int SEVERITY_ERROR
static final java.lang.String ATTRIBUTE_MESSAGE
String
static final java.lang.String ATTRIBUTE_SEVERITY
static final java.lang.String ATTRIBUTE_RESOURCE
static final java.lang.String ATTRIBUTE_LINE_NUMBER
static final java.lang.String ATTRIBUTE_COLUMN_NUMBER
| Method Detail |
|---|
void setAttribute(java.lang.String key,
java.lang.String value)
key - The keyvalue - The value
void setAttribute(java.lang.String key,
int value)
key - The keyvalue - The value
void setAttribute(java.lang.String key,
boolean value)
key - The keyvalue - The value
void setAttribute(java.lang.String key,
java.lang.Object value)
key - The keyvalue - The value
int getAttribute(java.lang.String key,
int defaultValue)
key - The keydefaultValue - The default value
boolean getAttribute(java.lang.String key,
boolean defaultValue)
key - The keydefaultValue - The default value
java.lang.String getAttribute(java.lang.String key,
java.lang.String defaultValue)
key - The keydefaultValue - The default valuejava.lang.Object getAttribute(java.lang.String key)
key - The key
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||