|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectasjava.uniclientlibs.UniString
asjava.uniclientlibs.UniDynArray
UniDynArray
is used to control dynamic array interaction. It is important
to note that UniDynArray
referencing is done in '1'-based notation, meaning
the first field is field 1.
Field Summary |
---|
Fields inherited from class asjava.uniclientlibs.UniString |
---|
count, inPacket, outPacket, uniConnection, uniReturnCode, uniStatus, value |
Constructor Summary | |
---|---|
UniDynArray()
Constructs a dynamic array with no characters in it |
|
UniDynArray(java.lang.Object aString)
Constructs a dynamic array with the passed in Object value |
|
UniDynArray(java.lang.String aString)
Constructs a dynamic array with the passed in Object value |
|
UniDynArray(UniString aString)
|
Method Summary | |
---|---|
int |
count()
Counts the number of field marks that exist in the array |
int |
count(int aField)
Counts the number of value marks that exist in the array |
int |
count(int aField,
int aValue)
Counts the number of subvalue marks that exist in the array |
int |
count(int aField,
int aValue,
int aSubValue)
Counts the number of text marks that exist in the array |
int |
dcount()
Counts the number of fields that exist in the array, equivalent to count() + 1 |
int |
dcount(int aField)
Counts the number of values that exist in the array at the given field position, equivalent to count( aField ) + 1 |
int |
dcount(int aField,
int aValue)
Counts the number of subvalues that exist in the array at the given field,value position, equivalent to count( aFieldValue, aValue) + 1 |
int |
dcount(int aField,
int aValue,
int aSubValue)
Counts the number of text values that exist in the array at the given field,value,subvalue position, equivalent to count() + 1 |
void |
delete(int aField)
Deletes the given field value from the array |
void |
delete(int aField,
int aValue)
Deletes the given field/value value from the array |
void |
delete(int aField,
int aValue,
int aSubValue)
Deletes the given field/value/subvalue value from the array |
UniDynArray |
extract(int aField)
Extracts a copy of the entire array |
UniDynArray |
extract(int aField,
int aValue)
Extracts a copy of the requested field |
UniDynArray |
extract(int aField,
int aValue,
int aSubValue)
Extracts a copy of the requested subvalue |
void |
insert(int aField,
int aValue,
int aSubValue,
java.lang.Object aString)
Inserts an Object into the dynamic array at the given field,value,subvalue position |
void |
insert(int aField,
int aValue,
java.lang.Object aString)
Inserts an Object into the dynamic array at the given field,value position |
void |
insert(int aField,
java.lang.Object aString)
Inserts an Object into the dynamic array at the given field position |
int |
length(int aField)
Returns the length of the entire dynamic array |
int |
length(int aField,
int aValue)
Returns the length of the given field,value of the dynamic array |
int |
length(int aField,
int aValue,
int aSubValue)
Returns the length of the given field,value,subvalue of the dynamic array |
protected void |
regenerateDynArray()
recreate the dynArray structure |
UniDynArray |
remove(int aField)
Performs a delete on the given field, but also returns the deleted field |
UniDynArray |
remove(int aField,
int aValue)
Performs a delete on the given field/value, but also returns the deleted value |
UniDynArray |
remove(int aField,
int aValue,
int aSubValue)
Performs a delete on the given field/value/subvalue, but also returns the deleted subvalue |
void |
replace(int aField,
int aValue,
int aSubValue,
java.lang.Object aString)
Replaces the field/value/subvalue specified with the new data value |
void |
replace(int aField,
int aValue,
java.lang.Object aString)
Replaces the field/value specified with the new data value |
void |
replace(int aField,
java.lang.Object aString)
Replaces the field specified with the new data value |
void |
setValue(java.lang.Object newValue)
replaces the contents of the dynamic array with the given newValue param newValue a String object representing the dynamic array |
void |
setValue(java.lang.String newValue)
replaces the contents of the dynamic array with the given newValue param newValue a String object representing the dynamic array |
java.lang.String |
toString()
Converts the given UniDynArray into a base String |
Methods inherited from class asjava.uniclientlibs.UniString |
---|
alpha, alpha, append, append, append, append, append, append, append, append, append, append, change, change, change, charAt, compareTo, convert, convert, count, dcount, equals, equalsIgnoreCase, getBytes, getBytes, getChars, getInternalMarkCharacter, getMarkCharacter, iconv, insert, insert, insert, insert, insert, insert, insert, left, length, oconv, quote, quote, right, setCharAt, status, substring, substring, toCharArray, toLowerCase, toUpperCase |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UniDynArray()
public UniDynArray(java.lang.Object aString)
aString
- Object representing the data to be converted into a dynamic arraypublic UniDynArray(java.lang.String aString)
aString
- Object representing the data to be converted into a dynamic arraypublic UniDynArray(UniString aString)
Method Detail |
public int count(int aField, int aValue, int aSubValue)
aField
- integer representing which field mark to countaValue
- integer representing the value position to countaSubValue
- integer representing which subvalue position to count
public int count(int aField, int aValue)
aField
- integer representing which field mark to countaValue
- integer representing the value position to count
public int count(int aField)
aField
- integer representing which field mark to count
public int count()
count
in class UniString
public int dcount(int aField, int aValue, int aSubValue)
count()
+ 1
aField
- integer representing which field to count values foraValue
- integer representing which value to useaSubValue
- integer representing which subvalue to use
public int dcount(int aField, int aValue)
count( aFieldValue, aValue)
+ 1
aField
- integer representing which field to count values foraValue
- integer representing which value to count subvalues for
public int dcount(int aField)
count( aField )
+ 1
aField
- integer representing which field to count values for
public int dcount()
count()
+ 1
dcount
in class UniString
public void delete(int aField, int aValue, int aSubValue)
aField
- integer representing which field to deleteaValue
- integer representing which value within the field to deleteaSubValue
- integer representing which subvalue within the value to deletepublic void delete(int aField, int aValue)
aField
- integer representing which field to deleteaValue
- integer representing which value within the field to deletepublic void delete(int aField)
aField
- integer representing which field to deletepublic UniDynArray extract(int aField, int aValue, int aSubValue)
aField
- integer representing which field to extractaValue
- integer representing which value to extractaSubValue
- integer representing which subvalue to extract
public UniDynArray extract(int aField, int aValue)
aField
- integer representing which field to extractaValue
- integer representing which value to extract
public UniDynArray extract(int aField)
aField
- integer representing which field to extract
public void insert(int aField, int aValue, int aSubValue, java.lang.Object aString)
aField
- integer representing which field to insert data intoaValue
- integer representing which value to insert data intoaSubValue
- integer representing which subvalue to insert data intoaString
- String representing the data to be insertedpublic void insert(int aField, int aValue, java.lang.Object aString)
aField
- integer representing which field to insert data intoaValue
- integer representing which value to insert data intoaString
- String representing the data to be insertedpublic void insert(int aField, java.lang.Object aString)
insert
in class UniString
aField
- integer representing which field to insert data intoaString
- String representing the data to be insertedpublic int length(int aField, int aValue, int aSubValue)
aField
- integer representing the field to obtain the length ofaValue
- integer representing the value to get the length fromaSubValue
- integer representing the subvalue to get the length from
public int length(int aField, int aValue)
aField
- integer representing the field to obtain the length ofaValue
- integer representing the value to get the length from
public int length(int aField)
aField
- integer representing which field to insert data into
public UniDynArray remove(int aField, int aValue, int aSubValue)
aField
- integer representing the field to removeaValue
- integer representing the value to removeaSubValue
- integer representing the subvalue to remove
public UniDynArray remove(int aField, int aValue)
aField
- integer representing the field to removeaValue
- integer representing the value to remove
public UniDynArray remove(int aField)
aField
- integer representing the field to remove
public void replace(int aField, int aValue, int aSubValue, java.lang.Object aString)
aField
- integer representing the field to replaceaValue
- integer representing the value to replaceaSubValue
- representing the subvalue to replaceaString
- Object representing the new data valuepublic void replace(int aField, int aValue, java.lang.Object aString)
aField
- integer representing the field to replaceaValue
- integer representing the value to replaceaString
- Object representing the new data valuepublic void replace(int aField, java.lang.Object aString)
aField
- integer representing the field to replaceaString
- Object representing the new data valuepublic void setValue(java.lang.Object newValue)
setValue
in class UniString
public void setValue(java.lang.String newValue)
setValue
in class UniString
public java.lang.String toString()
toString
in class UniString
protected void regenerateDynArray()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |