org.codehaus.spice.configkit
Class ValidationIssue

java.lang.Object
  |
  +--org.codehaus.spice.configkit.ValidationIssue

public class ValidationIssue
extends Object

This class records a specific issue that occured during validation.

Version:
$Revision: 1.1 $ $Date: 2003/12/03 03:19:28 $
Author:
Peter Donald
, Peter Royal

Constructor Summary
ValidationIssue(int type, org.xml.sax.SAXParseException exception)
          Create an issue with specified type and exception that caused issue.
 
Method Summary
 org.xml.sax.SAXParseException getException()
          The exception that caused issue.
 boolean isError()
          Return true if the issue is an error, false otherwise.
 boolean isFatalError()
          Return true if the issue is a fatal error, false otherwise.
 boolean isWarning()
          Return true if the issue is a warning, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationIssue

public ValidationIssue(int type,
                       org.xml.sax.SAXParseException exception)
Create an issue with specified type and exception that caused issue.

Parameters:
type - the type of issue
exception - the exception that caused issue.
Method Detail

isWarning

public boolean isWarning()
Return true if the issue is a warning, false otherwise.

Returns:
true if the issue is a warning, false otherwise.

isError

public boolean isError()
Return true if the issue is an error, false otherwise.

Returns:
true if the issue is an error, false otherwise.

isFatalError

public boolean isFatalError()
Return true if the issue is a fatal error, false otherwise.

Returns:
true if the issue is a fatal error, false otherwise.

getException

public org.xml.sax.SAXParseException getException()
The exception that caused issue.

Returns:
the exception that caused issue.


Copyright © 2003 Codehaus. All Rights Reserved.