eteg.sinon.executor
Class PageState

java.lang.Object
  extended by eteg.sinon.executor.PageState

public class PageState
extends java.lang.Object

Class that represents the state of processing of a page.

Since:
1.0
Version:
$Revision: 1.2 $
Author:
Thiago H. de Paula Figueiredo, Last modified by $Author: thiagohp $

Field Summary
static PageState AFTER_PROCESSING
          Constant that defines the state of a page before after download and processing.
static PageState BEFORE_DOWNLOAD
          Constant that defines the state of a page before its processing begins.
static PageState BEFORE_PROCESSING
          Constant that defines the state of a page before its download.
static PageState FINISHED
          Constant that defines the state of a page before after all its actions were executed.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getStateName()
          Returns a String containing the name of this state.
 boolean isAfterProcessing()
          Returns true if this state is AFTER_PROCESSING.
 boolean isBeforeDownload()
          Returns true if this state is BEFORE_DOWNLOAD.
 boolean isBeforeProcessing()
          Returns true if this state is BEFORE_PROCESSING.
 boolean isFinished()
          Returns true if this state is FINISHED.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEFORE_DOWNLOAD

public static final PageState BEFORE_DOWNLOAD
Constant that defines the state of a page before its processing begins.


BEFORE_PROCESSING

public static final PageState BEFORE_PROCESSING
Constant that defines the state of a page before its download. begins.


AFTER_PROCESSING

public static final PageState AFTER_PROCESSING
Constant that defines the state of a page before after download and processing.


FINISHED

public static final PageState FINISHED
Constant that defines the state of a page before after all its actions were executed.

Method Detail

isBeforeDownload

public boolean isBeforeDownload()
Returns true if this state is BEFORE_DOWNLOAD.

Returns:
true if this state is BEFORE_DOWNLOAD, false otherwise.

isBeforeProcessing

public boolean isBeforeProcessing()
Returns true if this state is BEFORE_PROCESSING.

Returns:
true if this state is BEFORE_PROCESSING, false otherwise.

isAfterProcessing

public boolean isAfterProcessing()
Returns true if this state is AFTER_PROCESSING.

Returns:
true if this state is AFTER_PROCESSING, false otherwise.

isFinished

public boolean isFinished()
Returns true if this state is FINISHED.

Returns:
true if this state is BEFORE_DOWNLOAD, false otherwise.

getStateName

public java.lang.String getStateName()
Returns a String containing the name of this state.

Returns:
a String.

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object


Copyright © 2004-2005 ETEG Internet Ltda.. All Rights Reserved.