|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteteg.sinon.core.PositioningStep
public class PositioningStep
Class that represents positioning steps inside a page in Sinon.
The properties of instances of this class are:
type: a String containing the
positioning step. The current set of positioning step types are:
JUMP, FROM, and TO.
reference: string used as reference to this
positioning step. It is searched inside the page text.
Loop positioning steps does not have a reference.
direction: search direction. The possible values
are FORWARD and BACKWARD.
Default: FORWARD.
before: string used to specify a position after which
the reference cannot be found. If the reference is found after
the before string, a failure happens.
failIfFound: if true, this positioning
steps is considered a failure if the reference is found.
Default: false.
mustTrimReference:
Tells if the reference must be trimmed (methodo
String.trim before used. Default: true.
| Field Summary | |
|---|---|
static boolean |
BACKWARD
Constants used to specify a backward search. |
static boolean |
FORWARD
Constants used to specify a forward search. |
static java.lang.String |
FROM
Constant that defines the from positioning step type. |
static java.lang.String |
JUMP
Constant that defines the jump positioning step type. |
static java.lang.String |
LOOP
Constant that defines the loop positioning step type. |
static java.lang.String |
TO
Constant that defines the to positioning step type. |
| Constructor Summary | |
|---|---|
PositioningStep()
Constructor without parameters. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBefore()
Returns the value of the before property. |
boolean |
getDirection()
Returns the value of the direction property. |
java.lang.String |
getReference()
Returns the value of the reference property. |
java.lang.String |
getType()
Returns the value of the type property. |
boolean |
isAction()
Returns false. |
boolean |
isDataExtraction()
Returns false. |
boolean |
isFailIfFound()
Returns the value of the failIfFound property. |
boolean |
isFrom()
Tells if the type of this positioning step is from. |
boolean |
isJump()
Tells if the type of this positioning step is jump. |
boolean |
isLoop()
Diz se este passo é um loop. |
boolean |
isMustTrimReference()
Returns the value of the mustTrimReference property. |
boolean |
isPositioningStep()
Returns true. |
boolean |
isTo()
Tells if the type of this positioning step is to. |
void |
setBefore(java.lang.String before)
Sets the value of the before property. |
void |
setDirection(boolean direction)
Sets the value of the direction property. |
void |
setFailIfFound(boolean failIfFound)
Sets the value of the failIfFound property. |
void |
setMustTrimReference(boolean mustTrimReference)
Sets the value of the mustTrimReference property. |
void |
setReference(java.lang.String reference)
Sets the value of the reference property. |
void |
setType(java.lang.String type)
Sets the value of the type property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String JUMP
public static final java.lang.String FROM
public static final java.lang.String TO
public static final java.lang.String LOOP
public static final boolean FORWARD
public static final boolean BACKWARD
| Constructor Detail |
|---|
public PositioningStep()
| Method Detail |
|---|
public java.lang.String getBefore()
before property.
String.public void setBefore(java.lang.String before)
before property.
before - the new before value.public java.lang.String getType()
type property.
String.public void setType(java.lang.String type)
type property.
type - the new type value.public java.lang.String getReference()
reference property.
String.public void setReference(java.lang.String reference)
reference property.
reference - the new reference value.public boolean getDirection()
direction property.
FORWARD or BACKWARD.public void setDirection(boolean direction)
direction property.
{@link - #FORWARD} or BACKWARD.public boolean isFailIfFound()
failIfFound property.
boolean.public void setFailIfFound(boolean failIfFound)
failIfFound property.
failIfFound - the new failIfFound value.public boolean isMustTrimReference()
mustTrimReference property.
String.public void setMustTrimReference(boolean mustTrimReference)
mustTrimReference property.
mustTrimReference - the new mustTrimReference value.public boolean isDataExtraction()
false.
isDataExtraction in interface Stepfalsepublic boolean isPositioningStep()
true.
isPositioningStep in interface Steptruepublic boolean isLoop()
isLoop in interface Steptrue se este passo é um loop,
false caso contrário.public boolean isAction()
false.
isAction in interface Steppublic boolean isFrom()
from.
true if the type of this positioning step is
from, false otherwise.public boolean isTo()
to.
true if the type of this positioning step is
to, false otherwise.public boolean isJump()
jump.
true if the type of this positioning step is
jump, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||