Package org.jibx.schema.validation
Class ValidationProblem
- java.lang.Object
-
- org.jibx.schema.validation.ValidationProblem
-
public class ValidationProblem extends Object
Problem reported by schema validation. Provides the details for a specific problem item. TODO: move this out of the schema package, generalize- Author:
- Dennis M. Sosnoski
-
-
Field Summary
Fields Modifier and Type Field Description static intERROR_LEVELstatic intFATAL_LEVELstatic intUNIMPLEMENTED_LEVELstatic intWARNING_LEVEL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringcomponentDescription(Object obj)Create description text for a component of a binding definition.ObjectgetComponent()Get the main binding definition item for the problem.StringgetDescription()Get problem description.intgetSeverity()Get problem severity level.
-
-
-
Field Detail
-
UNIMPLEMENTED_LEVEL
public static final int UNIMPLEMENTED_LEVEL
- See Also:
- Constant Field Values
-
WARNING_LEVEL
public static final int WARNING_LEVEL
- See Also:
- Constant Field Values
-
ERROR_LEVEL
public static final int ERROR_LEVEL
- See Also:
- Constant Field Values
-
FATAL_LEVEL
public static final int FATAL_LEVEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
componentDescription
public static String componentDescription(Object obj)
Create description text for a component of a binding definition.- Parameters:
obj- binding definition component- Returns:
- component description
-
getComponent
public Object getComponent()
Get the main binding definition item for the problem.- Returns:
- element or attribute at root of problem
-
getDescription
public String getDescription()
Get problem description.- Returns:
- problem description
-
getSeverity
public int getSeverity()
Get problem severity level.- Returns:
- severity level for problem
-
-