com.canoo.webtest.steps
Class HtmlParserMessage.Type

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

public static final class HtmlParserMessage.Type
extends Object
implements Comparable

Safe enum to represent the type of a message.


Field Summary
static HtmlParserMessage.Type ERROR
           
static String ERROR_NAME
           
static HtmlParserMessage.Type WARNING
           
static String WARNING_NAME
           
 
Method Summary
 int compareTo(Object o)
          Compares with following rule: error > warning (no need to override equals(): in this case it is equivalent to ==)
 String getName()
          Gets the name of the type
 boolean isError()
           
 boolean isWarning()
           
 String toString()
          Gets the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_NAME

public static final String ERROR_NAME
See Also:
Constant Field Values

WARNING_NAME

public static final String WARNING_NAME
See Also:
Constant Field Values

ERROR

public static final HtmlParserMessage.Type ERROR

WARNING

public static final HtmlParserMessage.Type WARNING
Method Detail

compareTo

public int compareTo(Object o)
Compares with following rule: error > warning (no need to override equals(): in this case it is equivalent to ==)

Specified by:
compareTo in interface Comparable
Throws:
ClassCastException - if the argument is not a HtmlParserMessage.Type

getName

public String getName()
Gets the name of the type


isError

public boolean isError()

isWarning

public boolean isWarning()

toString

public String toString()
Gets the name.

Overrides:
toString in class Object

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