public class SessionEventData extends AbstractEventData
Constructor and Description |
---|
SessionEventData(ScrapingSession session,
java.lang.String variableName,
java.lang.Object variableValue,
java.lang.Object incrementRecordsAmount,
boolean increment) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getIncrementRecordsAmount()
Returns the increment records amount (if the event time deals with records count modifications, null otherwise)
|
ScrapingSession |
getSession()
Returns the current scraping session on which the event was triggered
|
java.lang.String |
getVariableName()
Returns the name of the variable being manipulated (if the event time deals with variable manipulation, null otherwise)
|
java.lang.Object |
getVariableValue()
Returns the value of the variable being manipulated (if the event time deals with variable manipulation, null otherwise).
|
boolean |
isIncrement()
Returns whether or not the record modification number is an increment (true) or is simply setting the value to a new value (false)
|
java.lang.String |
toString() |
getLastReturnValue, setLastReturnValue
SessionEventData(@NotNull ScrapingSession session, @Nullable java.lang.String variableName, @Nullable java.lang.Object variableValue, @Nullable java.lang.Object incrementRecordsAmount, boolean increment)
@NotNull public ScrapingSession getSession()
@Nullable public java.lang.String getVariableName()
@Nullable public java.lang.Object getVariableValue()
@Nullable public java.lang.Object getIncrementRecordsAmount()
public boolean isIncrement()
@NotNull public java.lang.String toString()
toString
in class java.util.EventObject