public class ValidationProblem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_LEVEL |
static int |
FATAL_LEVEL |
private java.lang.Object |
m_component
Component that reported problem.
|
private java.lang.String |
m_description
Description of problem found.
|
private int |
m_severity
Problem severity level.
|
static int |
UNIMPLEMENTED_LEVEL |
static int |
WARNING_LEVEL |
Constructor and Description |
---|
ValidationProblem(int level,
java.lang.String msg,
java.lang.Object obj)
Full constructor.
|
ValidationProblem(java.lang.String msg,
java.lang.Object obj)
Constructor using default (error) severity level.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
componentDescription(java.lang.Object obj)
Create description text for a component of a binding definition.
|
java.lang.Object |
getComponent()
Get the main binding definition item for the problem.
|
java.lang.String |
getDescription()
Get problem description.
|
int |
getSeverity()
Get problem severity level.
|
public static final int FATAL_LEVEL
public static final int ERROR_LEVEL
public static final int WARNING_LEVEL
public static final int UNIMPLEMENTED_LEVEL
private final int m_severity
private final java.lang.String m_description
private final java.lang.Object m_component
ValidationProblem(int level, java.lang.String msg, java.lang.Object obj)
level
- severity level of problemmsg
- problem descriptionobj
- source object for validation error (may be null
if not specific to a particular
component)ValidationProblem(java.lang.String msg, java.lang.Object obj)
msg
- problem descriptionobj
- source object for validation errorpublic static java.lang.String componentDescription(java.lang.Object obj)
obj
- binding definition componentpublic java.lang.Object getComponent()
public java.lang.String getDescription()
public int getSeverity()