This class also used in (click to expand):
Archive.getData()
AudioFile.getRecordingData()
AudioFile.toData()
BillingEvent.getData()
Buffer.addData(Data)
Buffer.addDataMap(String, Data)
CacheManager.getData(String)
CacheManager.putData(String, Data)
Cell.getData()
Cell.getMeta()
Cell.getSlices()
Cell.setData(Data)
Cell.setMeta(Data)
Cell.toData()
Chunk.addData(Data)
Chunk.addDataMap(String, Data)
ConsolePacket.getData(String)
ConsolePacket.getProperties()
ConsolePacket.setData(String, Data)
ConsoleSystemController.createData()
ConsoleSystemController.createMobileLink(PalInfo, String, Data)
ConsoleSystemController.debugData(Data)
Cube.createCell(String, String, Data)
Cube.getCubeStats()
DataList.toData(String, String, boolean)
DataList.toJsonArray(boolean, Data)
DataReader.readData()
DataRecord.getData()
DataSet.insert(Data)
DataSet.update(Data)
DataSet.validate(Data)
DataSetRecord.getData()
DataSetRecord.getSystemData(String)
DataSetRecord.setData(Data)
DataSetResult.getErrors()
DataSetResult.setErrors(Data)
DataViewList.toData(String, String, boolean)
DataViewList.toJsonArray(boolean, Data)
DataViewRecord.getData()
DataViewRecord.getSystemData(String)
DatasetFile.toData()
DateUtil.getDateDiff(Date, Date)
DisplaySettings.filterDocumentData(Data)
DisplaySettings.setDisplaySettings(Data)
Document.getAllData(String)
Document.getData()
Document.rebuildFromPal(Data)
Document.setData(Data)
Document.validate(Data, String, String, boolean)
DocumentFile.toData()
Email.addData(Data)
Email.addDataMap(String, Data)
Email.getData()
Email.setCreateOrAccessTransactionLink(String, String, Data)
Email.setCreateTransactionLink(String, String, Data)
Email.setData(String, Data)
EncryptionUtil.createOtpAuth(String, String)
EncryptionUtil.createPGPKeyPair(String)
EncryptionUtil.createRSAKeyPair(int)
Enterprise.getData()
EnterpriseInfo.getData()
ExcelFile.toData()
File.toData()
Fragment.addData(Data)
Fragment.addDataMap(String, Data)
Fragment.getData()
Fragment.setData(String, Data)
GeoUtil.getCenter(DataList)
GeoUtil.getEast(DataList, double)
GeoUtil.getNorth(DataList, double)
GeoUtil.getSouth(DataList, double)
GeoUtil.getWest(DataList, double)
GeoUtil.inject(DataList, Data)
ImageFile.getImageMetadata()
ImageFile.toData()
JSONBuffer.setData(Data)
JSONParser.readData(String, boolean)
MailResponse.getMetaData()
Message.getData()
Modules.getConfigData(String)
Packet.addDocument(String, Data)
Packet.addDocumentFromFile(File, String, String, Data)
Packet.addDocumentFromPal(String, String, String, String, Data)
Packet.addDuplicateDocument(String, String, String, Data)
Packet.createData(String)
Packet.createDocument(SmartDoc, Data)
Packet.getData()
Packet.getProperties()
Packet.setData(String, Data)
PacketDataList.toData(String, String, boolean)
PacketDataList.toJsonArray(boolean, Data)
PacketDataRecord.getData()
PacketDataRecord.setData(Data)
PagingInfo.getData()
Pal.getConsolePacketProperties()
Pal.getConsoleUserPacketProperties()
Pal.getData(String)
Pal.getTransactionProperties()
PalActivationKeyInfo.getData()
PalInfo.getData()
Payload.addData(Data)
Payload.addDataMap(String, Data)
Payload.getData(String)
Payload.setData(String, Data)
PdfFile.analyze()
PdfFile.getImageMetadata()
PdfFile.setData(Data)
PdfFile.toData()
PieChart.setData(Data)
Profile.getData()
Profile.getGroupPermissions(String)
Profile.getPalManagerGroupSettings(String)
Profile.getPalManagerPalSettings(PalInfo)
Profile.getPermissions()
Profile.getTransactionManagerGroupSettings(String)
ProfileInfo.getData()
ProfilePacket.getData(String)
ProfilePacket.getProperties()
ProfilePacket.setData(String, Data)
Render.addData(Data)
Render.addDataMap(String, Data)
Render.getData()
Render.setData(String, Data)
RuntimePal.createRemoteReturnUrl(Data)
RuntimePal.getConsolePacketProperties()
RuntimePal.getConsoleUserPacketProperties()
RuntimePal.getData(String)
RuntimePal.getTransactionProperties()
ServiceRequest.addData(Data)
ServiceRequest.getFormParameters()
ServiceRequest.setFormParameters(Data)
ServiceRequest.setOauth(String, Data)
ServiceResponse.getResponseHeaders()
ServiceResponse.readAllTextData(String)
ServiceResponse.readAttributeData(String)
ServiceResponse.readTextData(String)
ShellPal.getConsolePacketProperties()
ShellPal.getConsoleUserPacketProperties()
ShellPal.getData()
ShellPal.getPacketProperties()
ShellPal.getTransactionProperties()
ShellPal.setConsolePacketProperties(Data)
ShellPal.setConsoleUserPacketProperties(Data)
ShellPal.setData(String, Data)
ShellPal.setPacketProperties(Data)
SmartDoc.getData()
Socket.setData(Data)
Socket.setHeaders(Data)
SocketResponse.getResponseHeaders()
StorageProvider.getAuthData(Data)
StorageProvider.uploadObject(boolean, String, File)
StorageProvider.uploadPublic(String, File)
StorageProviderDataList.toData(String, String, boolean)
StorageProviderDataList.toJsonArray(boolean, Data)
StoredObject.getMetadata()
TextEmail.addData(Data)
TextEmail.addDataMap(String, Data)
TextEmail.getData()
TextEmail.setData(String, Data)
TextMessage.getData()
TransactionPacket.addDocument(String, Data)
TransactionPacket.addDocumentFromFile(File, String, String, Data)
TransactionPacket.addDocumentFromPal(String, String, String, String, Data)
TransactionPacket.addDuplicateDocument(String, String, String, Data)
TransactionPacket.createData(String)
TransactionPacket.createDocument(SmartDoc, Data)
TransactionPacket.getData()
TransactionPacket.getProperties()
TransactionPacket.setData(String, Data)
TunnelResult.getData()
VCardFile.getData()
VCardFile.toData()
ValidityCheck.getErrors()
ValidityCheck.setErrors(Data)
Wizard.getData()
Wizard.getDialogData(String)
XMLReader.readAllTextData(String)
XMLReader.readAttributeData(String)
XMLReader.readTextData(String)
ZoneAccess.getData()
|
addData(Data data)
Adds all of the entries in data to this Data object, over-writing duplicates.
|
|
addJSONData(String json)
Decodes the JSON string and adds the payload to this Data object.
|
|
addNewData(Data data, boolean emptyAsNull)
Adds all of the entries in data to this Data object. If the entry already exists, it is NOT over-written unless its value is empty and emtpyAsNull is true.
|
Boolean
|
addPrefix(String prefix, Boolean camelBack)
Adds the prefix to all keys. Returns true if an update was made.
|
String
|
calcMD5()
Returns an MD5 checksum of the contents of this Data.
|
String
|
combineValues(String JEXL)
Substitutes in JEXL values. Treats null values as "" (empty string). (ex: data.combineValues("${first} ${last}") could be converted to John Doe). Nesting is permitted up to 50 iterations after which an exception occurs.
|
|
deleteData()
Removes all entries.
|
String
|
evaluate(String jexlExpression)
Evaluates the JEXL expression using information from this Data object.
|
Data
|
filter(Data filter, Boolean remove)
Returns a new Data object with values from this Data set to keys from the filter. Non matching items are removed if remove is true.
|
String
|
get(String key)
Returns the value associated with key if it exists, null otherwise.
|
Boolean
|
getBoolean(String field)
Returns the given field as a boolean. The value must be true or false. Throws exception if the value does not exist or cannot be cast to the correct type.
|
Boolean
|
getCommonBoolean(String field)
Returns the given field as a boolean. The value must be any of the following combinations: [true/false], [1/0], [yes,no], [on,off]. Throws exception if the value does not exist or cannot be cast to the correct type.
|
Date
|
getDate(String field)
Returns the given field as a Date. Throws exception if the value does not exist or cannot be cast to the correct type.
|
Boolean
|
getDefaultBoolean(String field, Boolean defaultBoolean)
Returns the given field as a boolean. If the field does not exist or refers to a non-boolean field, it returns the default value
|
Date
|
getDefaultDate(String field, Date defaultDate)
Returns the given field as a date. If the field does not exist or refers to a non-date field, it returns the default value
|
Double
|
getDefaultDouble(String field, Number defaultDouble)
Returns the given field as a double. If the field does not exist or refers to a non-double field, it returns the default value
|
Integer
|
getDefaultInt(String field, Number defaultInt)
Returns the given field as an int. If the field does not exist or refers to a non-int field, it returns the default value
|
String
|
getDefaultValue(String field, String defaultValue, boolean emptyIsNull)
Returns the given field. If the field does not exist, it returns the default value. If the field exists but is value is empty, this method returns defaultValue only if emptyIsNull=true.
|
Double
|
getDouble(String key)
Returns the given value of the given key as a double. Throws exception if the value does not exist or cannot be cast to the correct type.
|
Integer
|
getInt(String key)
Returns the given value of the given key as an Java Int which is smaller than a Javascript Int. Throws exception if the value does not exist or cannot be cast to the correct type.
|
String
|
getJSON(String key)
Returns the value of the specified key as unescaped JSON.
|
Long
|
getLong(String key)
Returns the given value of the given key as Java Long which is larger. Throws exception if the value does not exist or cannot be cast to the correct type.
|
String[]
|
getNameSet(String prefix)
Returns the names of this Data object as an array of strings that start with the given prefix. If no values exist, this will return an empty array.
|
String[]
|
getNames()
Returns the names of this Data object as an array of strings. If no values exist, this will return an empty array.
|
Integer
|
getSize()
Returns the length of all keys and entries in this Data object. This is roughly the length of this object in bytes.
|
String
|
getValue(String key)
Returns the value associated with key if it exists, null otherwise.
|
String
|
getValue(String name, int maxLength, boolean allowEmpty)
Returns the given value. Throws exception if the max length is exceeded or value is null/empty and allowEmpty=false.
|
String[]
|
getValues()
Returns the values of this Data object as an array of strings. If no values exist, this will return an empty array.
|
String[]
|
getValues(String prefix)
Returns the names of this Data object as an array of strings that start with the given prefix. If no values exist, this will return an empty array.
|
boolean
|
hasName(String name)
Returns true if the name exists in the data map.
|
Boolean
|
hasValue(String name)
Returns true if the value exists in the data map.
|
Boolean
|
isEmpty()
Returns true if there are no entries.
|
|
loadQueryString(String queryString)
Decodes the query string and adds name/value pairs to this data.
|
Integer
|
parse(String rawText, String[] fields)
Parses information from rawText matching fields and storing them in this Data object and returns the number found.
|
Data
|
removeControlChars(Boolean all)
Returns a new Data object with all control characters in the range x0000 to x001F inclusive removed if all is true. If all is false, this will remove all control characters except tab, line feed, and carriage return.
|
Data
|
removeNonAsciiChars()
Returns a new Data object having removed characters outside of the UTF-8 C1 Controls and Latin1 Supplement (keeps those in the range of 0-255 decimal).
|
Boolean
|
removePrefix(String prefix, Boolean camelBack)
Removes the prefix from any key that has it. Returns true if an update was made.
|
String
|
removeValue(String key)
Removes the associated key from the data map.
|
boolean
|
set(String name, Object value)
Sets the string value referenced by name. Returns false on fail (e.g. if the column does not exist, etc). The object must be capable of being serialized as a String.
|
boolean
|
setBoolean(String name, Boolean value)
Sets the boolean value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
|
boolean
|
setDate(String name, Date value)
Sets the date value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
|
boolean
|
setDouble(String name, Number double)
Sets the decimal value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
|
boolean
|
setInt(String name, Number value)
Sets the integer value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
|
boolean
|
setString(String name, String value)
Sets the string value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
|
|
setValue(String key, Object value)
Sets the string value referenced by name. The object must be capable of being serialized as a String.
|
Boolean
|
setValues(String value)
Sets all key values to the specified value. If value is null, the keys are deleted. Returns true if changes were made.
|
PacketDataList
|
toDataList(String name)
Returns the data as a DataList. This DataList can be modified but will not modify the original Data Object.
|
File
|
toFile()
Converts this data object to file. Expected entries: filename - contains file name, contentType - contains file content type, base64 - contains base64 encoded file contents OR plain - contains plain text content of the file
|
String
|
toJSON()
Returns contents as a JSON string.
|
String
|
toJson()
Returns contents as a JSON string.
|
String
|
toJson(boolean preserveType)
Returns contents as a JSON string with types preserved.
|
String
|
toQueryString()
Returns all entries as a name/value querystring.
|
String
|
toString()
Returns a description of this object.
|
|
trim(Boolean includeNonBreaking)
Trims all of the values with leading and trailing whitespace, including non breaking spaces.
|
boolean
|
updateData(Data data)
Updates matching entries in this Data from the values in the supplied Data. Returns true if any changes were made.
|
Method Detail
addData(Data data)
Adds all of the entries in data to this Data object, over-writing duplicates.
Parameters:
Since:
07-11-2008
addJSONData(String json)
Decodes the JSON string and adds the payload to this Data object.
Parameters:
Since:
01-19-2010
addNewData(Data data, boolean emptyAsNull)
Adds all of the entries in data to this Data object. If the entry already exists, it is NOT over-written unless its value is empty and emtpyAsNull is true.
Parameters:
-
Data
data
-
boolean
emptyAsNull
Since:
09-11-2008
Boolean addPrefix(String prefix, Boolean camelBack)
Adds the prefix to all keys. Returns true if an update was made.
Parameters:
-
String
prefix
- prefix to add.
Required parameter.
-
Boolean
camelBack
Returns:
Boolean
Since:
04-06-2010
String calcMD5()
Returns an MD5 checksum of the contents of this Data.
Returns:
String
Since:
05-15-2014
String combineValues(String JEXL)
Substitutes in JEXL values. Treats null values as "" (empty string). (ex: data.combineValues("${first} ${last}") could be converted to John Doe). Nesting is permitted up to 50 iterations after which an exception occurs.
Parameters:
Returns:
String
Since:
11-05-2009
deleteData()
Removes all entries.
Since:
07-11-2008
String evaluate(String jexlExpression)
Evaluates the JEXL expression using information from this Data object.
Parameters:
Returns:
String
Since:
05-27-2010
Data filter(Data filter, Boolean remove)
Returns a new Data object with values from this Data set to keys from the filter. Non matching items are removed if remove is true.
Parameters:
-
Data
filter
Required parameter.
-
Boolean
remove
Returns:
Data
Since:
07-25-2019
String get(String key)
Returns the value associated with key if it exists, null otherwise.
Parameters:
Returns:
String
Since:
08-28-2018
Boolean getBoolean(String field)
Returns the given field as a boolean. The value must be true or false. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns:
Boolean
Since:
07-11-2008
Boolean getCommonBoolean(String field)
Returns the given field as a boolean. The value must be any of the following combinations: [true/false], [1/0], [yes,no], [on,off]. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns:
Boolean
Since:
08-22-2008
Date getDate(String field)
Returns the given field as a Date. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns:
Date
Since:
07-11-2008
Boolean getDefaultBoolean(String field, Boolean defaultBoolean)
Returns the given field as a boolean. If the field does not exist or refers to a non-boolean field, it returns the default value
Parameters:
-
String
field
-
Boolean
defaultBoolean
Returns:
Boolean
Since:
09-05-2008
Date getDefaultDate(String field, Date defaultDate)
Returns the given field as a date. If the field does not exist or refers to a non-date field, it returns the default value
Parameters:
-
String
field
-
Date
defaultDate
Returns:
Date
Since:
09-05-2008
Double getDefaultDouble(String field, Number defaultDouble)
Returns the given field as a double. If the field does not exist or refers to a non-double field, it returns the default value
Parameters:
-
String
field
-
Number
defaultDouble
Returns:
Double
Since:
09-05-2008
Integer getDefaultInt(String field, Number defaultInt)
Returns the given field as an int. If the field does not exist or refers to a non-int field, it returns the default value
Parameters:
-
String
field
-
Number
defaultInt
Returns:
Integer
Since:
09-05-2008
String getDefaultValue(String field, String defaultValue, boolean emptyIsNull)
Returns the given field. If the field does not exist, it returns the default value. If the field exists but is value is empty, this method returns defaultValue only if emptyIsNull=true.
Parameters:
-
String
field
-
String
defaultValue
-
boolean
emptyIsNull
Returns:
String
Since:
09-05-2008
Double getDouble(String key)
Returns the given value of the given key as a double. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
-
String
key
Required parameter.
Returns:
Double
Since:
07-11-2008
Integer getInt(String key)
Returns the given value of the given key as an Java Int which is smaller than a Javascript Int. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
-
String
key
Required parameter.
Returns:
Integer
Since:
07-11-2008
String getJSON(String key)
Returns the value of the specified key as unescaped JSON.
Parameters:
Returns:
String
Since:
08-30-2010
Long getLong(String key)
Returns the given value of the given key as Java Long which is larger. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
-
String
key
Required parameter.
Returns:
Long
Since:
05-28-2022
String[] getNameSet(String prefix)
Returns the names of this Data object as an array of strings that start with the given prefix. If no values exist, this will return an empty array.
Parameters:
Returns:
String[]
Since:
07-11-2008
String[] getNames()
Returns the names of this Data object as an array of strings. If no values exist, this will return an empty array.
Returns:
String[]
Since:
07-11-2008
Integer getSize()
Returns the length of all keys and entries in this Data object. This is roughly the length of this object in bytes.
Returns:
Integer
Since:
04-18-2012
String getValue(String key)
Returns the value associated with key if it exists, null otherwise.
Parameters:
Returns:
String
Since:
07-11-2008
String getValue(String name, int maxLength, boolean allowEmpty)
Returns the given value. Throws exception if the max length is exceeded or value is null/empty and allowEmpty=false.
Parameters:
-
String
name
-
int
maxLength
-
boolean
allowEmpty
Returns:
String
Since:
06-07-2012
String[] getValues()
Returns the values of this Data object as an array of strings. If no values exist, this will return an empty array.
Returns:
String[]
Since:
05-31-2007
String[] getValues(String prefix)
Returns the names of this Data object as an array of strings that start with the given prefix. If no values exist, this will return an empty array.
Parameters:
Returns:
String[]
Since:
07-11-2008
boolean hasName(String name)
Returns true if the name exists in the data map.
Parameters:
Returns:
boolean
Since:
06-11-2010
Boolean hasValue(String name)
Returns true if the value exists in the data map.
Parameters:
Returns:
Boolean
Since:
07-11-2008
Boolean isEmpty()
Returns true if there are no entries.
Returns:
Boolean
Since:
05-29-2012
loadQueryString(String queryString)
Decodes the query string and adds name/value pairs to this data.
Parameters:
Since:
06-09-2010
Integer parse(String rawText, String[] fields)
Parses information from rawText matching fields and storing them in this Data object and returns the number found.
Parameters:
-
String
rawText
-
String[]
fields
Returns:
Integer
Since:
10-17-2018
Data removeControlChars(Boolean all)
Returns a new Data object with all control characters in the range x0000 to x001F inclusive removed if all is true. If all is false, this will remove all control characters except tab, line feed, and carriage return.
Parameters:
Returns:
Data
Since:
11-24-2014
Data removeNonAsciiChars()
Returns a new Data object having removed characters outside of the UTF-8 C1 Controls and Latin1 Supplement (keeps those in the range of 0-255 decimal).
Returns:
Data
Since:
06-15-2022
Boolean removePrefix(String prefix, Boolean camelBack)
Removes the prefix from any key that has it. Returns true if an update was made.
Parameters:
-
String
prefix
- prefix to remove.
Required parameter.
-
Boolean
camelBack
Returns:
Boolean
Since:
04-06-2010
String removeValue(String key)
Removes the associated key from the data map.
Parameters:
Returns:
String
Since:
07-11-2008
boolean set(String name, Object value)
Sets the string value referenced by name. Returns false on fail (e.g. if the column does not exist, etc). The object must be capable of being serialized as a String.
Parameters:
Returns:
boolean
Since:
08-28-2018
boolean setBoolean(String name, Boolean value)
Sets the boolean value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
-
String
name
-
Boolean
value
Returns:
boolean
Since:
08-28-2018
boolean setDate(String name, Date value)
Sets the date value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
Returns:
boolean
Since:
08-28-2018
boolean setDouble(String name, Number double)
Sets the decimal value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
-
String
name
-
Number
double
Returns:
boolean
Since:
08-28-2018
boolean setInt(String name, Number value)
Sets the integer value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
Returns:
boolean
Since:
08-28-2018
boolean setString(String name, String value)
Sets the string value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
Returns:
boolean
Since:
08-28-2018
setValue(String key, Object value)
Sets the string value referenced by name. The object must be capable of being serialized as a String.
Parameters:
Since:
07-11-2008
Boolean setValues(String value)
Sets all key values to the specified value. If value is null, the keys are deleted. Returns true if changes were made.
Parameters:
Returns:
Boolean
Since:
04-13-2010
PacketDataList toDataList(String name)
Returns the data as a DataList. This DataList can be modified but will not modify the original Data Object.
Parameters:
Returns:
PacketDataList
DataList Name: data
DataList Fields: name, value
Since:
01-21-2010
File toFile()
Converts this data object to file. Expected entries: filename - contains file name, contentType - contains file content type, base64 - contains base64 encoded file contents OR plain - contains plain text content of the file
Returns:
File
Since:
05-19-2011
String toJSON()
Returns contents as a JSON string.
Returns:
String
Since:
08-30-2010
String toJson()
Returns contents as a JSON string.
Returns:
String
Since:
03-17-2021
String toJson(boolean preserveType)
Returns contents as a JSON string with types preserved.
Parameters:
Returns:
String
Since:
09-22-2023
String toQueryString()
Returns all entries as a name/value querystring.
Returns:
String
Since:
04-23-2010
String toString()
Returns a description of this object.
Returns:
String
Since:
07-11-2008
trim(Boolean includeNonBreaking)
Trims all of the values with leading and trailing whitespace, including non breaking spaces.
Parameters:
-
Boolean
includeNonBreaking
Since:
06-16-2011
boolean updateData(Data data)
Updates matching entries in this Data from the values in the supplied Data. Returns true if any changes were made.
Parameters:
-
Data
data
Required parameter.
Returns:
boolean
Since:
04-06-2010