USADriveIdJurisdSubfile

USADriveIdJurisdSubfile class

Namespace: Aspose.Barcode.ComplexBarcode

Class for Jurisdiction specific fields for USA DL

Constructors

NameDescription
__construct

Methods

NameStaticDescription
addOrReplaceDataElementNoAdds a new DataElement or replaces it if ElementID already exists.
clearNoClears all data elements
findDataElementNoSearches for a data element by 3-letter id.
get_ItemNoIndexing by 3-letter element id
insertNoInserts a DataElement at the specified index, or replaces an existing element if an entry with the same ElementID is already present.
removeNoTries to remove element at index
sizeNoReturns number of data elements
set_ItemNoIndexing by 3-letter element id

USADriveIdJurisdSubfile__construct()

addOrReplaceDataElementaddOrReplaceDataElement(DataElement $node)

Adds a new DataElement or replaces it if ElementID already exists.

ParameterTypeDescription
$nodeDataElement

Returns: DataElement Added/replaced data element

clearclear()

Clears all data elements

findDataElementfindDataElement(string $id, bool $is_open_or_create)

Searches for a data element by 3-letter id.

ParameterTypeDescription
$idstring
$is_open_or_createbool

Returns: DataElement|null Found data element (or null if not found and not created)

get_Itemget_Item($key)

Indexing by 3-letter element id

ParameterTypeDescription
$key``

Returns: DataElement DataElement

insertinsert(int $index, DataElement $node)

Inserts a DataElement at the specified index, or replaces an existing element if an entry with the same ElementID is already present.

ParameterTypeDescription
$indexint
$nodeDataElement

Returns: DataElement

removeremove($index)

Tries to remove element at index

ParameterTypeDescription
$index``

Returns: bool true if successful, false if out of range

sizesize()

Returns number of data elements

set_Itemset_Item($key, DataElement $value)

Indexing by 3-letter element id

ParameterTypeDescription
$key``
$valueDataElement