|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.maverickdbms.basic.ConstantString
org.maverickdbms.basic.mvString
org.maverickdbms.basic.string.BasicString
| Field Summary |
| Fields inherited from class org.maverickdbms.basic.mvString |
factory |
| Fields inherited from class org.maverickdbms.basic.ConstantString |
AM, EMPTY, FM, IM, LINE_SEPARATOR, MAX_RAISE_DELIMITER, MIN_RAISE_DELIMITER, ONE, RETURN_ELSE, RETURN_SUCCESS, RM, SM, SPACE, TM, VM, ZERO |
| Constructor Summary | |
BasicString(Factory f)
|
|
| Method Summary | |
mvString |
append(char c)
Append a single character to the string |
mvString |
append(ConstantString mvs)
Append a string to the current string |
mvString |
append(ConstantString mvs,
int start,
int len)
Append a string segment to the current string |
mvString |
append(java.lang.String s)
Append a java string to the current string |
ConstantString |
ASSIGNED()
Whether a value has been to the string |
char |
charAt(int index)
Returns the character at the specified index. |
void |
clear()
Clears the string of data |
int |
compareTo(ConstantString a)
Compares two strings lexicographically |
mvString |
DCOUNT(mvString result,
ConstantString substr,
int offset)
Counts the number of substrings delimited by delim in the string. |
mvString |
DELETE(ConstantString attrib,
ConstantString val,
ConstantString subval)
Deletes an attribute, value or subvalue from a mvString, the corresponding delimiter is also removed |
boolean |
equals(java.lang.Object o)
Determines whether the object is equal to the string |
ConstantString |
EXTRACT(ConstantString attrib,
ConstantString val,
ConstantString subval)
|
int |
findLength(int start,
int len,
char delim)
|
int |
findPosition(int a,
int v,
int s)
|
Array |
getArray()
|
java.math.BigDecimal |
getBigDecimal()
Returns a BigDecimal representation of the string. |
void |
getChars(int srcstart,
int srcend,
char[] dest,
int deststart)
Copies the specified index from the string into the destination character array. |
double |
getDouble()
Returns a double representation of the string. |
File |
getFile()
|
List |
getList()
|
OSFile |
getOSFile()
|
Program |
getProgram()
Resolve value as program |
SequentialFile |
getSequentialFile()
|
int |
indexOf(char c,
int start)
|
mvString |
INSERT(ConstantString attrib,
ConstantString val,
ConstantString subval,
ConstantString insert)
|
int |
intValue()
Returns the integer value of the string |
boolean |
isIntegral()
|
boolean |
isNumeric()
|
int |
length()
Returns the length of the string |
long |
longValue()
Returns the integer value of the string |
ConstantString |
REMOVE(mvString colpos,
mvString delim)
REMOVE sequentially extracts elements from the string |
mvString |
REPLACE(ConstantString attrib,
ConstantString val,
ConstantString subval,
ConstantString replace)
Replaces the specified string at the specified attribute, value and subvalue mark. |
void |
replace(ConstantString mvs,
int start,
int offset,
int len)
|
void |
SELECT(Program program,
mvString result,
Key key)
Returns a select list from the current string. |
void |
set(java.math.BigDecimal num)
|
void |
set(char c)
|
void |
set(char[] c,
int start,
int len)
|
void |
set(ConstantString mvs)
|
void |
set(ConstantString mvs,
int start,
int len)
|
void |
set(double num)
|
void |
set(int num)
|
void |
set(long num)
|
void |
set(java.lang.String s)
|
void |
setArray(Array array)
|
void |
setCharAt(int index,
char c)
|
void |
setFile(File file)
|
void |
setLength(int len)
|
void |
setList(List list)
|
void |
setProgram(Program program)
|
java.lang.String |
toString()
The standard toString method for the object |
| Methods inherited from class org.maverickdbms.basic.ConstantString |
ALPHA, AND, ASCII, CAT, CHANGE, CHAR, compareTo, CONVERT, COUNT, DELETE, DOWNCASE, DQUOTE, DTX, EBCDIC, EQ, EREPLACE, eval, FIELD, GE, getReferenceString, GT, INDEX, INSERT, LE, LEN, LOCATEI, LOCATEP, LOWER, LT, MATCH, NOT, NUM, OR, RAISE, REPLACE, SEQ, SPACE, SQUOTE, STR, SUM, TRIM, UPCASE, XTD |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BasicString(Factory f)
| Method Detail |
public mvString append(char c)
mvString
append in class mvStringc - the character
public mvString append(java.lang.String s)
mvString
append in class mvStrings - the java string
public mvString append(ConstantString mvs)
mvString
append in class mvStringmvs - the string
public mvString append(ConstantString mvs,
int start,
int len)
mvString
append in class mvStringmvs - the stringstart - the starting positionlen - the length to append
public ConstantString ASSIGNED()
mvString
ASSIGNED in class mvStringpublic char charAt(int index)
charAt in class ConstantStringindex - position of char within the string
public void clear()
mvString
clear in class mvStringpublic int compareTo(ConstantString a)
ConstantString
compareTo in class ConstantStringa - string to compare
public mvString DCOUNT(mvString result,
ConstantString substr,
int offset)
ConstantString
DCOUNT in class ConstantStringresult - the number to store the resultsubstr - the string to be searched foroffset - increment to start searching again after sucessful match
public mvString DELETE(ConstantString attrib,
ConstantString val,
ConstantString subval)
DELETE in class mvStringattrib - attribute to delete, if value is zero the entire attribute is deletedval - value to delete, if subval is zero the entire value is deletedsubval - subvalue to delete.
public boolean equals(java.lang.Object o)
equals in class ConstantStringo - the object to be compared
public ConstantString EXTRACT(ConstantString attrib,
ConstantString val,
ConstantString subval)
EXTRACT in class ConstantString
public int findLength(int start,
int len,
char delim)
findLength in class ConstantString
public int findPosition(int a,
int v,
int s)
findPosition in class ConstantString
public int indexOf(char c,
int start)
indexOf in class ConstantString
public mvString INSERT(ConstantString attrib,
ConstantString val,
ConstantString subval,
ConstantString insert)
INSERT in class mvStringpublic Array getArray()
getArray in class mvStringpublic java.math.BigDecimal getBigDecimal()
ConstantString
getBigDecimal in class ConstantString
public void getChars(int srcstart,
int srcend,
char[] dest,
int deststart)
getChars in class ConstantStringsrcstart - starting postion in the source string.srcend - ending index + 1 of characters to be copied from source.dest - the destination character arraydeststart - starting position in the destination array.public double getDouble()
ConstantString
getDouble in class ConstantString
public Program getProgram()
throws mvException
mvString
getProgram in class mvStringmvExceptionpublic File getFile()
getFile in class mvStringpublic List getList()
getList in class mvStringpublic OSFile getOSFile()
getOSFile in class mvStringpublic SequentialFile getSequentialFile()
getSequentialFile in class mvStringpublic int intValue()
ConstantString
intValue in class ConstantStringpublic boolean isIntegral()
isIntegral in class ConstantStringpublic boolean isNumeric()
isNumeric in class ConstantStringpublic int length()
length in class ConstantStringpublic long longValue()
ConstantString
longValue in class ConstantString
public ConstantString REMOVE(mvString colpos,
mvString delim)
mvString
REMOVE in class mvStringcolpos - column position of element extracteddelim - delimiter type encountered
public void replace(ConstantString mvs,
int start,
int offset,
int len)
replace in class mvString
public mvString REPLACE(ConstantString attrib,
ConstantString val,
ConstantString subval,
ConstantString replace)
REPLACE in class mvStringattrib - attribute positionval - value mark positionsubval - subvalue mark postionreplace - mvString to be replaced
public void SELECT(Program program,
mvString result,
Key key)
throws mvException
SELECT in class ConstantStringresult - the variable to hold the Listkey - criteria for selectprogram - the program the select list is bound to
mvException
public void set(char[] c,
int start,
int len)
set in class mvStringpublic void set(ConstantString mvs)
set in class mvString
public void set(ConstantString mvs,
int start,
int len)
set in class mvStringpublic void set(java.lang.String s)
set in class mvStringpublic void set(java.math.BigDecimal num)
set in class mvStringpublic void set(char c)
set in class mvStringpublic void set(double num)
set in class mvStringpublic void set(int num)
set in class mvStringpublic void set(long num)
set in class mvStringpublic void setArray(Array array)
setArray in class mvString
public void setCharAt(int index,
char c)
setCharAt in class mvStringpublic void setLength(int len)
setLength in class mvStringpublic void setProgram(Program program)
setProgram in class mvStringpublic void setFile(File file)
setFile in class mvStringpublic void setList(List list)
setList in class mvStringpublic java.lang.String toString()
ConstantString
toString in class ConstantString
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||