beautypg.com

Getfieldname, Getoccurrencecount, Getsingleoccurrence – HP NonStop G-Series User Manual

Page 209: Istext

background image

Usage Get the occurring values as String.

getFieldName

The getFieldName() method gets the name of the field.

String getFieldName()

Returns The name of the field

Usage Get the name of the field.

getOccurrenceCount

The getOccurrenceCount() method gets the number of occurrences of a named item.

int getOccurrenceCount()

Returns The number of occurrences.

Usage Get the number of occurrences of the field.

getSingleOccurrence

The getSingleOccurrence() method gets the position of the field.

int getSingleOccurrence()

Returns Position

Usage Get the position of the field. These are:

0 for single data elements

i for elements with multiple occurrences of which only one was set

the array size for multiple occurrences

isText

The isText() method returns true if the field type is String, otherwise it returns false.

boolean isText()

Returns True if the field type is String, otherwise it returns false.