com.canoo.webtest.steps
Class HtmlParserMessage

java.lang.Object
  extended by com.canoo.webtest.steps.HtmlParserMessage
All Implemented Interfaces:
Comparable

public class HtmlParserMessage
extends Object
implements Comparable

Represents a message generated by an html parser.

Author:
Marc Guillemot

Nested Class Summary
static class HtmlParserMessage.MessageCollector
          Listener collecting the messages from parser.
static class HtmlParserMessage.Type
          Safe enum to represent the type of a message.
 
Constructor Summary
HtmlParserMessage(HtmlParserMessage.Type type, URL url, String strMessage, int iLine, int iColumn)
           
 
Method Summary
 int compareTo(Object o)
          Compare to an other HtmlParserMessage according to (url, line, col, type, msg)
 boolean equals(Object o)
          Test for equality with an other HtmlParserMessage according to (url, line, col, type, msg)
 int getColumn()
          Gets the column in the source file for which the message has been generated
 int getLine()
          Gets the line in the source file for which the message has been generated
 String getMessage()
          Gets the description of the message
 HtmlParserMessage.Type getType()
          Gets the type of the message determining its severity
 URL getURL()
          Gets the url of the file which parsing caused this message.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlParserMessage

public HtmlParserMessage(HtmlParserMessage.Type type,
                         URL url,
                         String strMessage,
                         int iLine,
                         int iColumn)
Method Detail

compareTo

public int compareTo(Object o)
Compare to an other HtmlParserMessage according to (url, line, col, type, msg)

Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Test for equality with an other HtmlParserMessage according to (url, line, col, type, msg)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getColumn

public int getColumn()
Gets the column in the source file for which the message has been generated


getLine

public int getLine()
Gets the line in the source file for which the message has been generated


getMessage

public String getMessage()
Gets the description of the message


getType

public HtmlParserMessage.Type getType()
Gets the type of the message determining its severity


getURL

public URL getURL()
Gets the url of the file which parsing caused this message.


Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved.