eteg.sinon.core
Class DataExtraction

java.lang.Object
  extended by eteg.sinon.core.DataExtraction
All Implemented Interfaces:
Step

public class DataExtraction
extends java.lang.Object
implements Step

Class that represents a data extraction from a page. Classe que implementa a extração de um determinado dado de uma página.

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

Constructor Summary
DataExtraction()
          Constructor without parameters.
 
Method Summary
 void addStep(Step step)
          Adds a Step to this data extraction.
 DataExtraction copy()
          Creates and returns a copy of this object.
 java.lang.String getId()
          Returns the value of the id property.
 Step[] getSteps()
          Returns the value of the steps property.
 java.lang.String getValueOnError()
          Returns the value of the valueOnError property.
 boolean isAction()
          Returns false.
 boolean isAllowDuplicates()
          Returns the value of the allowDuplicates property.
 boolean isDataExtraction()
          Returns true.
 boolean isFailOnError()
          Returns the value of the failOnError property.
 boolean isLoop()
          Returns false.
 boolean isMultivalued()
          Returns the value of the multivalued property.
 boolean isPositioningStep()
          Returns false.
 boolean isResetPositionNeeded()
          Returns the value of the resetPositionNeeded property.
 boolean isTrimValueNeeded()
          Returns the value of the trimValueNeeded property.
 void setAllowDuplicates(boolean allowDuplicates)
          Sets the value of the allowDuplicates property.
 void setFailOnError(boolean failOnError)
          Sets the value of the failOnError property.
 void setId(java.lang.String id)
          Sets the value of the id property.
 void setMultivalued(boolean multiValued)
          Sets the value of the multiValued property.
 void setResetPositionNeeded(boolean resetPositionNeeded)
          Sets the value of the resetPositionNeeded property.
 void setTrimValueNeeded(boolean trimValueNeeded)
          Sets the value of the trimValueNeeded property.
 void setValueOnError(java.lang.String valueOnError)
          Sets the value of the valueOnError property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataExtraction

public DataExtraction()
Constructor without parameters.

Method Detail

getId

public java.lang.String getId()
Returns the value of the id property.

Returns:
a String.

setId

public void setId(java.lang.String id)
Sets the value of the id property.

Parameters:
id - the new id value.

isTrimValueNeeded

public boolean isTrimValueNeeded()
Returns the value of the trimValueNeeded property.

Returns:
a boolean.

setTrimValueNeeded

public void setTrimValueNeeded(boolean trimValueNeeded)
Sets the value of the trimValueNeeded property.

Parameters:
trimValueNeeded - the new trimValueNeeded value.

isResetPositionNeeded

public boolean isResetPositionNeeded()
Returns the value of the resetPositionNeeded property.

Returns:
a boolean.

setResetPositionNeeded

public void setResetPositionNeeded(boolean resetPositionNeeded)
Sets the value of the resetPositionNeeded property.

Parameters:
resetPositionNeeded - the new resetPositionNeeded value.

isMultivalued

public boolean isMultivalued()
Returns the value of the multivalued property.

Returns:
a boolean.

setMultivalued

public void setMultivalued(boolean multiValued)
Sets the value of the multiValued property.

Parameters:
multiValued - the new multivalued value.

isFailOnError

public boolean isFailOnError()
Returns the value of the failOnError property.

Returns:
a boolean.

setFailOnError

public void setFailOnError(boolean failOnError)
Sets the value of the failOnError property.

Parameters:
failOnError - the new failOnError value.

getValueOnError

public java.lang.String getValueOnError()
Returns the value of the valueOnError property.

Returns:
a String.

setValueOnError

public void setValueOnError(java.lang.String valueOnError)
Sets the value of the valueOnError property.

Parameters:
valueOnError - the new valueOnError value.

addStep

public void addStep(Step step)
Adds a Step to this data extraction.

Parameters:
step - a Step instance.
Throws:
java.lang.IllegalArgumentException - if step is null.

getSteps

public Step[] getSteps()
Returns the value of the steps property.

Returns:
a Step array.

isAllowDuplicates

public boolean isAllowDuplicates()
Returns the value of the allowDuplicates property.

Returns:
a boolean.

setAllowDuplicates

public void setAllowDuplicates(boolean allowDuplicates)
Sets the value of the allowDuplicates property.

Parameters:
allowDuplicates - the new allowDuplicates value.

copy

public DataExtraction copy()
Creates and returns a copy of this object.

Returns:
a DataExtraction instance.

isDataExtraction

public boolean isDataExtraction()
Returns true.

Specified by:
isDataExtraction in interface Step
Returns:
true.

isPositioningStep

public boolean isPositioningStep()
Returns false.

Specified by:
isPositioningStep in interface Step
Returns:
false.

isAction

public boolean isAction()
Returns false.

Specified by:
isAction in interface Step
Returns:
false.

isLoop

public boolean isLoop()
Returns false.

Specified by:
isLoop in interface Step
Returns:
false.


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