USADriveIdJurisdSubfile

Inheritance: java.lang.Object

public class USADriveIdJurisdSubfile

Class for Jurisdiction specific fields for USA DL

Constructors

ConstructorDescription
USADriveIdJurisdSubfile()

Methods

MethodDescription
addOrReplace(USADriveIdJurisdSubfile.DataElement node)Adds new DataElement or replaces it if ElementID already exists.
addOrReplace(String id, String 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.
clear()Clears all data elements
equals(Object arg0)
findDataElement(String id, boolean isOpenOrCreate)Searches for data element by 3-letter id
getClass()
getCount()Returns number of data elements
get_Item(int index)Indexing by index number
get_Item(String id)Indexing by 3-letter element id
hashCode()
insert(int index, USADriveIdJurisdSubfile.DataElement node)Inserts the specified DataElement at the given index.
notify()
notifyAll()
removeAt(int index)Tries to remove element at index
removeAt(String id)Tries to remove element with 3-letter id
set_Item(int index, USADriveIdJurisdSubfile.DataElement value)Indexing by index number
set_Item(String id, USADriveIdJurisdSubfile.DataElement value)Indexing by 3-letter element id
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

USADriveIdJurisdSubfile()

public USADriveIdJurisdSubfile()

addOrReplace(USADriveIdJurisdSubfile.DataElement node)

public final USADriveIdJurisdSubfile.DataElement addOrReplace(USADriveIdJurisdSubfile.DataElement node)

Adds new DataElement or replaces it if ElementID already exists.

Parameters:

ParameterTypeDescription
nodeDataElementDataElement to add

Returns: DataElement - Added/replaced data element

addOrReplace(String id, String value)

public final USADriveIdJurisdSubfile.DataElement addOrReplace(String id, String 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:

ParameterTypeDescription
idjava.lang.StringA 3-letter identifier that uniquely specifies the jurisdiction-related data element.
valuejava.lang.StringThe text value assigned to the data element; this value will overwrite the existing one if the element already exists.

Returns: DataElement - The DataElement instance that was added to the collection or updated in place.

clear()

public final void clear()

Clears all data elements

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

findDataElement(String id, boolean isOpenOrCreate)

public final USADriveIdJurisdSubfile.DataElement findDataElement(String id, boolean isOpenOrCreate)

Searches for data element by 3-letter id

Parameters:

ParameterTypeDescription
idjava.lang.String3-letter id
isOpenOrCreatebooleanIf true, it will be created if not found

Returns: DataElement - Found data element

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCount()

public final int getCount()

Returns number of data elements

Returns: int

get_Item(int index)

public final USADriveIdJurisdSubfile.DataElement get_Item(int index)

Indexing by index number

Parameters:

ParameterTypeDescription
indexintElement index (int)

Returns: DataElement - Corresponding DataElement

get_Item(String id)

public final USADriveIdJurisdSubfile.DataElement get_Item(String id)

Indexing by 3-letter element id

Parameters:

ParameterTypeDescription
idjava.lang.String3-letter element id

Returns: DataElement - Corresponding DataElement

hashCode()

public native int hashCode()

Returns: int

insert(int index, USADriveIdJurisdSubfile.DataElement node)

public final USADriveIdJurisdSubfile.DataElement insert(int index, USADriveIdJurisdSubfile.DataElement node)

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

Parameters:

ParameterTypeDescription
indexintThe zero-based index at which the element should be inserted.
nodeDataElementThe DataElement instance to insert or replace at the target position.

Returns: DataElement - The DataElement that was inserted or used to replace an existing entry.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeAt(int index)

public final boolean removeAt(int index)

Tries to remove element at index

Parameters:

ParameterTypeDescription
indexintindex number

Returns: boolean - true if successful, false if out of range

removeAt(String id)

public final boolean removeAt(String id)

Tries to remove element with 3-letter id

Parameters:

ParameterTypeDescription
idjava.lang.String3-letter id

Returns: boolean - true if successful, false if no such id

set_Item(int index, USADriveIdJurisdSubfile.DataElement value)

public final void set_Item(int index, USADriveIdJurisdSubfile.DataElement value)

Indexing by index number

Parameters:

ParameterTypeDescription
indexintElement index (int)
valueDataElement

set_Item(String id, USADriveIdJurisdSubfile.DataElement value)

public final void set_Item(String id, USADriveIdJurisdSubfile.DataElement value)

Indexing by 3-letter element id

Parameters:

ParameterTypeDescription
idjava.lang.String3-letter element id
valueDataElement

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int