PAJES 2.3.9

org.pajes.html
Class PajeTemplateWarning

java.lang.Object
  extended byorg.pajes.html.PajeTemplateWarning

public class PajeTemplateWarning
extends java.lang.Object

Handles warnings generated by PajeTemplate when parsing a source HTML file. Warnings are chained together, and accessed from their preceding warning using the @link #getNextWarning} method.


Constructor Summary
PajeTemplateWarning(java.lang.String message, java.lang.String[][] attributes, int line, int column)
          Create a new warning message.
 
Method Summary
 java.lang.String[][] getAttributes()
          Returns the attributes for the tag to which this warning relates.
 java.lang.String getMessage()
          Returns the message relating to this warning.
 PajeTemplateWarning getNextWarning()
          Returns the next warning message relating to this document.
 java.lang.String toString()
          Converts the warning to a human-readable message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PajeTemplateWarning

public PajeTemplateWarning(java.lang.String message,
                           java.lang.String[][] attributes,
                           int line,
                           int column)
Create a new warning message.

Parameters:
message - the warning message.
attributes - the tag being processed the the warning was detected.
line - the line in the source file where the warning was detected.
column - the column within the line of the source file where the warning was detected.
Method Detail

getAttributes

public java.lang.String[][] getAttributes()
Returns the attributes for the tag to which this warning relates.

Returns:
the tag attributes.
See Also:
PajeParser.getAttributes()

getMessage

public java.lang.String getMessage()
Returns the message relating to this warning.

Returns:
the warning message.

getNextWarning

public PajeTemplateWarning getNextWarning()
Returns the next warning message relating to this document.

Returns:
the next chained warning, or null if there are no more warnings.

toString

public java.lang.String toString()
Converts the warning to a human-readable message.


PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.