org.jibx.binding.model
Class ValidationProblem

java.lang.Object
  extended by org.jibx.binding.model.ValidationProblem

public class ValidationProblem
extends Object

Problem reported by model validation. Provides the details for a specific problem item.

Version:
1.0
Author:
Dennis M. Sosnoski

Field Summary
static int ERROR_LEVEL
           
static int FATAL_LEVEL
           
static int WARNING_LEVEL
           
 
Method Summary
static String componentDescription(Object obj)
          Create description text for a component of a binding definition.
 Object getComponent()
          Get the main binding definition item for the problem.
 String getDescription()
          Get problem description.
 int getSeverity()
          Get problem severity level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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:
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


Copyright © 2005-2011 jibx.org. All Rights Reserved.