DEPRECATED: DiffusionTM JavaScript Classic API
5.9.4

Classes

Class DiffusionRecord


DiffusionRecord A class representing a Record. This provides an API for putting values into a message.


Constructor Summary

null DiffusionRecord

Method Summary

null addField(index, field)
Add a field at a particular index

If the index is greater than current field list, the field will be appended

null addFields(fields)
Append one or more fields to this record
String getField(index)
Gets the field at the specified index
Array getFields()
Get a copy of all fields in this record as an array
null removeField(index)
Removes the field at the specified index
null setField(index, field)
Set the field value at a given index
Number size()
Returns the number of fields in this Record
String toString()
Returns the string representation of this Record (with correct delimiters)

Constructor Details

DiffusionRecord

DiffusionRecord


Method Details

addField

addField(index, field)

Add a field at a particular index

If the index is greater than current field list, the field will be appended

Parameters
index - The index at which to add the field
field - the value to set

addFields

addFields(fields)

Append one or more fields to this record

Parameters
fields - An array of Strings or multiple string arguments

getField

String getField(index)

Gets the field at the specified index

Parameters
index -

getFields

Array getFields()

Get a copy of all fields in this record as an array


removeField

removeField(index)

Removes the field at the specified index

Parameters
index -

setField

setField(index, field)

Set the field value at a given index

Parameters
index - The field index
field - The value to set

size

Number size()

Returns the number of fields in this Record


toString

String toString()

Returns the string representation of this Record (with correct delimiters)