ParamValueList

ParamValueList

Creates and initializes a ParamValueList object.

public ParamValueList();

Sample Code:

ParamValueList paramValueList = new ParamValueList();

add

Adds a parameter to the list.

Signature

public void add(ParamName name);
public void add(ParamName name, int value);
public void add(ParamValue param);

Parameter List

add(ParamName name)

Parameter Name

In/Out

Type

Description

name

In

ParamName

Barcode type, enumeration ParamName

add(ParamName name, int value)

Parameter Name

In/Out

Type

Description

name

In

ParamName

Barcode type, enumeration ParamName

value

In

int

Value corresponding to the barcode type

add(ParamValue param)

Parameter Name

In/Out

Type

Description

param

In

ParamValue object

Barcode scan parameter, ParamValue object

Sample Code

paramValueList.add(ParamName.Code128);
paramValueList.add(ParamName.Code128, 1);
ParamValue param = new ParamValue();
paramValueList.add(param);

getLength

Gets the length of the ParamValue set.

public int getLength();

Parameter Name

In/Out

Type

Description

Return Value

Out

int

Length of the ParamValue set

Sample Code:

int length = paramValueList.getLength();

getValue

Gets the value from the barcode scan parameter list.

public int getValue(ParamName name);

Parameter Name

In/Out

Type

Description

name

In

ParamName

Barcode type, enumeration ParamName

Return Value

Out

int

Value corresponding to the barcode type

Sample Code:

int value = paramValueList.get(ParamName.Code39);