This object gives access to the most recently extracted data record. This will most likely only be used in scripts that get accessed after each time an extractor pattern is applied. This object simply extends Hashtable (documentation on its methods can be found in Java's documentation).
The dataRecord is populated using the token names in the extractor patterns. You'll find a few of the most commonly used methods below. DataRecord objects can also be created from scratch, and subsequently added to DataSet objects using the addDataRecord method.
See example usage: Iterate over DataSets & DataRecords.
Create a new DataRecord object.
This method does not receive any parameters.
Returns DataRecord object.
Version | Description |
---|---|
4.5 | Available for all editions. |
com.screenscraper.common.DataRecord
See additional example usage: Iterate over DataSets & DataRecords.
Get the value of a DataRecord field.
Returns the value associated with the specified key. Usually it will be a string but, if you have manually added fields, it can be an integer, boolean, long, or other object.
Version | Description |
---|---|
4.5 | Available for all editions. |
Add a new field to the DataRecord or update the value of an existing field.
Returns the value previously associated with the specified key. If the key did not exist then it will return null.
Version | Description |
---|---|
4.5 | Available for all editions. |
See additional example usage: Iterate over DataSets & DataRecords.
Remove a field from the DataRecord.
Returns the value previously associated with the specified key. If the key did not exist then it will return null.
Version | Description |
---|---|
4.5 | Available for all editions. |