USADriveIdJurisdSubfile

USADriveIdJurisdSubfile

Class for Jurisdiction specific fields for USA DL

Constructor

new USADriveIdJurisdSubfile()

Source:

Methods

addOrReplace(id, value)

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.

Parameters:
Name Type Description
id A 3-letter identifier that uniquely specifies the jurisdiction-related data element.
value The text value assigned to the data element; this value will overwrite the existing one if the element already exists.
Returns:
Type Description
The DataElement instance that was added to the collection or updated in place.
Source:

addOrReplaceNode(node)

Adds new DataElement or replaces it if ElementID already exists.

Parameters:
Name Type Description
node DataElement to add
Returns:
Type Description
Added/replaced data element
Source:

clear()

Clears all data elements

Source:

findDataElement(id, isOpenOrCreate)

Searches for data element by 3-letter id

Parameters:
Name Type Description
id 3-letter id
isOpenOrCreate If true, it will be created if not found
Returns:
Type Description
Found data element
Source:

get(id)

Indexing by 3-letter element id

Parameters:
Name Type Description
id 3-letter element id
Returns:
Type Description
Corresponding DataElement
Source:

get(index)

Indexing by index number

Parameters:
Name Type Description
index Element index (int)
Returns:
Type Description
Corresponding DataElement
Source:

insert(index, node)

Inserts the specified DataElement at the given index. If a DataElement with the same ElementID already exists, it will be replaced.

Parameters:
Name Type Description
index The zero-based index at which the element should be inserted.
node The DataElement instance to insert or replace at the target position.
Returns:
Type Description
The DataElement that was inserted or used to replace an existing entry.
Source:

remove(index)

Tries to remove element at index

Parameters:
Name Type Description
index index number
Returns:
Type Description
true if successful, false if out of range
Source:

remove(id)

Tries to remove element with 3-letter id

Parameters:
Name Type Description
id 3-letter id
Returns:
Type Description
true if successful, false if no such id
Source:

set(id)

Indexing by 3-letter element id

Parameters:
Name Type Description
id 3-letter element id
Returns:
Type Description
Corresponding DataElement
Source:

set(index)

Indexing by index number

Parameters:
Name Type Description
index Element index (int)
Returns:
Type Description
Corresponding DataElement
Source:

size()

Returns number of data elements

Source: