com.ibm.sketch.utilities
Interface IError


public interface IError

This interface represents an error that might be found in an W3C XML Schema. Creation date: (3/27/2001 4:16:19 PM)


Field Summary
static int CONSTRAINT_ON_SCHEMA
          error type constant
static java.lang.String copyright
           
static int ERROR
          error severity constant
static int FATAL_ERROR
          error severity constant
static int WARNING
          error severity constant
static int WELLFORMNESS
          error type constant
static int XML_SCHEMA_REPRESENTATION
          error type constant
 
Method Summary
 int getErrorType()
          returns the type of this error.
 java.lang.Exception[] getExceptions()
          returns the list of exceptions which encapsulate detailed information on the nature of this Error
 org.xml.sax.Locator getLocator()
          returns an org.xml.sax.Locator Object which encapsulates information on the location of this error ( line, column and file name) .
 java.lang.String getMessage()
          returns the error message
 int getSeverity()
          returns an integer indicating the severity of this error.
 

Field Detail

copyright

public static final java.lang.String copyright

WARNING

public static final int WARNING
error severity constant

ERROR

public static final int ERROR
error severity constant

FATAL_ERROR

public static final int FATAL_ERROR
error severity constant

WELLFORMNESS

public static final int WELLFORMNESS
error type constant

XML_SCHEMA_REPRESENTATION

public static final int XML_SCHEMA_REPRESENTATION
error type constant

CONSTRAINT_ON_SCHEMA

public static final int CONSTRAINT_ON_SCHEMA
error type constant
Method Detail

getErrorType

public int getErrorType()
returns the type of this error.

The type of an error is one of the following constant defined in IError interface:

1/ WELLFORMNESS : an error occured because the XML representation of a Schema is not wellformed.

2/ XML_SCHEMA_REPRESENTATION : an error occured because the XML represenation is not valid against DTD for Schema and/or against other constraints on the way an XML Schema should be represented as XML document.

3/ CONSTRAINT_ON_SCHEMA : an error occured because at least one constraint on schema component is not valid .


getLocator

public org.xml.sax.Locator getLocator()
returns an org.xml.sax.Locator Object which encapsulates information on the location of this error ( line, column and file name) .

getMessage

public java.lang.String getMessage()
returns the error message

getSeverity

public int getSeverity()
returns an integer indicating the severity of this error. The returned value is one of the constants defined in this class : WARNING, ERROR or FATAL_ERROR.

getExceptions

public java.lang.Exception[] getExceptions()
returns the list of exceptions which encapsulate detailed information on the nature of this Error