|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.redback.redbeans.RbString | +--com.ibm.redback.redbeans.RedField
Field Summary | |
static char |
AM
Attribute mark character |
static char |
RM
Record mark character |
static char |
SVM
Subvalue mark character |
static char |
TM
Text mark character |
static char[] |
TOKCHRS
Char array of all system delimiter characters |
static java.lang.String |
TOKLIST
String of all system delimiter characters |
static char |
VM
Value mark character |
Constructor Summary | |
RedField()
Construct a new RedField with no characters. |
|
RedField(java.lang.String sval)
Construct a new RedField object, setting
its initial value to that of the passed string. |
Method Summary | |
int |
count()
Return the number of values separated by an Value Mark, in this instance of a RedField object. |
int |
count(int vm_c)
Return the number of values separated by a subvalue mark at the position specified. |
void |
del(int vm_c)
Delete a dynamic string element in the current RedField string
at the position specified. |
void |
del(int vm_c,
int svm_c)
Delete a dynamic string element in the current RedField string
at the position specified. |
int |
getLength()
Return the number of characters in this instance of a RedField object. |
int |
getLength(int vm_c)
Return the number of characters at the position specified. |
java.lang.String |
getValue()
|
java.lang.String |
getValue(int vm_c)
Extract a dynamic string element from the current RedField string
at the position specified. |
java.lang.String |
getValue(int vm_c,
int svm_c)
Extract a dynamic string element from the current RedField string
at the position specified. |
protected java.lang.String |
getValue(int am_c,
int vm_c,
int svm_c)
|
char |
getVM()
Gets the value for value mark character |
void |
ins(int vm_c,
int svm_c,
java.lang.String pval)
Insert a string into the current RedField string at the
position specified. |
void |
ins(int vm_c,
java.lang.String pval)
Insert a string into the current RedField string at the
position specified. |
void |
replace(int vm_c,
int svm_c,
java.lang.String pval)
Replace a dynamic string element in the current RedField string
at the position specified. |
void |
replace(int vm_c,
java.lang.String pval)
Replace a dynamic string element in the current RedField string
at the position specified. |
void |
setAM(char AM)
assign new value for AM character |
void |
setStringValue(java.lang.String sval)
Set the RedField value to that of the passed string. |
void |
setSVM(char SVM)
assign new value for SVM character |
void |
setVM(char VM)
assign new value for VM character |
Methods inherited from class com.ibm.redback.redbeans.RbString |
alpha, alpha, col1, col2, convert, convert, count, count, count, count, countStr, field, field, field, field, fold, fold, length, matches, matches, num, num, string, swap, swap, toString, trim, trim, trim, trim |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static char RM
public static char AM
public static char VM
public static char SVM
public static char TM
public static final char[] TOKCHRS
public static final java.lang.String TOKLIST
Constructor Detail |
public RedField()
RedField
with no characters.public RedField(java.lang.String sval)
RedField
object, setting
its initial value to that of the passed string.sval
- a String
Method Detail |
public void setStringValue(java.lang.String sval)
RedField
value to that of the passed string.sval
- a stringValue
public void ins(int vm_c, java.lang.String pval)
RedField
string at the
position specified.vm_c
- an int
- Value position for insert.
may be set to -1 to indicate 'insert at end', but only
if am_c is > 0.pval
- a String
- the string value that is to
be inserted at the specified position.public void setAM(char AM)
AM
- the character to use a value markpublic void setVM(char VM)
VM
- the character to use a value markpublic char getVM()
public void setSVM(char SVM)
SVM
- the character to use a value markpublic void ins(int vm_c, int svm_c, java.lang.String pval)
RedField
string at the
position specified.vm_c
- an int
- Value position for insert.
may be set to -1 to indicate 'insert at end', but only
if am_c is > 0.svm_c
- an int
- Subvalue position for insert.
may be set to -1 to indicate 'insert at end', but only if
am_c and vm_c values are > 0.pval
- a String
- the string value that is to
be inserted at the specified position.public void replace(int vm_c, java.lang.String pval)
RedField
string
at the position specified.vm_c
- an int
- Value position for delete.pval
- a String
- the string value that replaces
the string at the specified position. If the position does
not exist in the target string, this string is inserted.public void replace(int vm_c, int svm_c, java.lang.String pval)
RedField
string
at the position specified.vm_c
- an int
- Value position for replacesvm_c
- a int
- subvalue position for replacepval
- a String
- the string value that replaces
the string at the specified position. If the position does
not exist in the target string, this string is inserted.public void del(int vm_c)
RedField
string
at the position specified.vm_c
- an int
- Value position for deletepublic void del(int vm_c, int svm_c)
RedField
string
at the position specified.vm_c
- an int
- Value position for delete.svm_c
- an int
- Subvalue position for delete.public java.lang.String getValue()
public java.lang.String getValue(int vm_c, int svm_c)
RedField
string
at the position specified.vm_c
- an int
- Value position for extract.svm_c
- an int
- Subvalue position for extract.String
value.protected java.lang.String getValue(int am_c, int vm_c, int svm_c)
public java.lang.String getValue(int vm_c)
RedField
string
at the position specified.vm_c
- an int
- Value position for extract.String
value.public int count()
RedField
object.int
that represents how many times
values separated by a Value Mark were found.public int count(int vm_c)
vm_c
- an int
- value mark position for extract.int
that represents how many times
values separated by subvalue mark were found.public int getLength()
RedField
object.int
that represents the number of characterspublic int getLength(int vm_c)
vm_c
- an int
- value mark position for extract.int
that represents the number of characters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |