org.jacaranda.verifier
Class ErrorRecord

java.lang.Object
  extended by org.jacaranda.verifier.ErrorRecord

public class ErrorRecord
extends java.lang.Object

A record that holds the type and position of a filter error (see the FILTER_CDATA rule of the Jacaranda specification).


Field Summary
static java.lang.String CDATA
          A CDATA error indicates code that might be misinterpreted as an end-of-CDATA marker.
 int charPositionInLine
          The char index of the error from the start of the line.
 int column
          The column number of the error (1-based).
static java.lang.String ENTITY
          An ENTITY error indicates code that might be misinterpreted as an HTML/XML character entity.
 int index
          The char index of the error from the start of the input stream.
 int line
          The line number of the error (1-based).
static java.lang.String TAG
          A TAG error indicates code that might be misinterpreted as an HTML/XML end-tag or processing instruction.
 java.lang.String type
          The type of this ErrorRecord: ENTITY, TAG or CDATA.
 
Constructor Summary
ErrorRecord(java.lang.String type, int index, int line, int charPositionInLine, int column)
          Construct an ErrorRecord with given type and position information.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENTITY

public static final java.lang.String ENTITY
An ENTITY error indicates code that might be misinterpreted as an HTML/XML character entity.

See Also:
Constant Field Values

TAG

public static final java.lang.String TAG
A TAG error indicates code that might be misinterpreted as an HTML/XML end-tag or processing instruction.

See Also:
Constant Field Values

CDATA

public static final java.lang.String CDATA
A CDATA error indicates code that might be misinterpreted as an end-of-CDATA marker.

See Also:
Constant Field Values

type

public final java.lang.String type
The type of this ErrorRecord: ENTITY, TAG or CDATA.


index

public final int index
The char index of the error from the start of the input stream.


line

public final int line
The line number of the error (1-based).


charPositionInLine

public final int charPositionInLine
The char index of the error from the start of the line.


column

public final int column
The column number of the error (1-based).

Constructor Detail

ErrorRecord

public ErrorRecord(java.lang.String type,
                   int index,
                   int line,
                   int charPositionInLine,
                   int column)
Construct an ErrorRecord with given type and position information.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object