addOrReplace

addOrReplace(object, object)

Adds a new DataElement with the specified identifier and value, or replaces the existing element if an entry with the same ElementID is already present.

addOrReplace(id, value)
ParameterTypeDescription
idobjectA 3-letter identifier that uniquely specifies the jurisdiction-related data element.
valueobjectThe text value assigned to the data element; this value will overwrite the existing one if the element already exists.

Return Value

The

DataElement instance that was added to the collection or updated in place.

See Also