org.maverickdbms.basic
Class mvString

java.lang.Object
  extended byorg.maverickdbms.basic.ConstantString
      extended byorg.maverickdbms.basic.mvString
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
BasicString

public abstract class mvString
extends ConstantString


Field Summary
protected  Factory 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
mvString(Factory f)
           
 
Method Summary
abstract  mvString append(char c)
          Append a single character to the string
abstract  mvString append(ConstantString mvs)
          Append a string to the current string
abstract  mvString append(ConstantString mvs, int start, int len)
          Append a string segment to the current string
abstract  mvString append(java.lang.String s)
          Append a java string to the current string
abstract  ConstantString ASSIGNED()
          Whether a value has been to the string
abstract  void clear()
          Clears the string of data
abstract  mvString DELETE(ConstantString attrib, ConstantString val, ConstantString subval)
          Clears the specified position from the string
abstract  Array getArray()
           
abstract  File getFile()
           
abstract  List getList()
           
abstract  OSFile getOSFile()
           
abstract  Program getProgram()
          Resolve value as program
abstract  SequentialFile getSequentialFile()
           
abstract  mvString INSERT(ConstantString attrib, ConstantString val, ConstantString subval, ConstantString insert)
           
abstract  ConstantString REMOVE(mvString colpos, mvString delimiter)
          REMOVE sequentially extracts elements from the string
abstract  mvString REPLACE(ConstantString attrib, ConstantString val, ConstantString subval, ConstantString replace)
           
abstract  void replace(ConstantString mvs, int start, int offset, int len)
           
abstract  void set(java.math.BigDecimal num)
           
abstract  void set(char c)
           
abstract  void set(char[] c, int start, int len)
           
abstract  void set(ConstantString mvs)
           
abstract  void set(ConstantString mvs, int start, int len)
           
abstract  void set(double num)
           
abstract  void set(int num)
           
abstract  void set(long num)
           
abstract  void set(java.lang.String s)
           
abstract  void setArray(Array array)
           
abstract  void setCharAt(int pos, char c)
           
abstract  void setFile(File file)
           
abstract  void setLength(int len)
           
abstract  void setList(List list)
           
abstract  void setProgram(Program program)
           
 
Methods inherited from class org.maverickdbms.basic.ConstantString
ALPHA, AND, ASCII, CAT, CHANGE, CHAR, charAt, compareTo, compareTo, CONVERT, COUNT, DCOUNT, DELETE, DOWNCASE, DQUOTE, DTX, EBCDIC, EQ, equals, EREPLACE, eval, EXTRACT, FIELD, findLength, findPosition, GE, getBigDecimal, getChars, getDouble, getReferenceString, GT, INDEX, indexOf, INSERT, intValue, isIntegral, isNumeric, LE, LEN, length, LOCATEI, LOCATEP, longValue, LOWER, LT, MATCH, NOT, NUM, OR, RAISE, REPLACE, SELECT, SEQ, SPACE, SQUOTE, STR, SUM, toString, TRIM, UPCASE, XTD
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

factory

protected Factory factory
Constructor Detail

mvString

public mvString(Factory f)
Method Detail

append

public abstract mvString append(char c)
Append a single character to the string

Parameters:
c - the character
Returns:
the resulting string

append

public abstract mvString append(java.lang.String s)
Append a java string to the current string

Parameters:
s - the java string
Returns:
the resulting string

append

public abstract mvString append(ConstantString mvs)
Append a string to the current string

Parameters:
mvs - the string
Returns:
the resulting string

append

public abstract mvString append(ConstantString mvs,
                                int start,
                                int len)
Append a string segment to the current string

Parameters:
mvs - the string
start - the starting position
len - the length to append
Returns:
the resulting string

ASSIGNED

public abstract ConstantString ASSIGNED()
Whether a value has been to the string

Returns:
1 if assigned, 0 otherwise

clear

public abstract void clear()
Clears the string of data


DELETE

public abstract mvString DELETE(ConstantString attrib,
                                ConstantString val,
                                ConstantString subval)
Clears the specified position from the string

Parameters:
attrib - the attribute to clear
val - the value to clear(set to 0 for all values)
subval - the subvalue to clear(set to 0 for all subvalues)
Returns:
the resulting string

getArray

public abstract Array getArray()

getProgram

public abstract Program getProgram()
                            throws mvException
Resolve value as program

Throws:
mvException

getFile

public abstract File getFile()

getList

public abstract List getList()

getOSFile

public abstract OSFile getOSFile()

getSequentialFile

public abstract SequentialFile getSequentialFile()

INSERT

public abstract mvString INSERT(ConstantString attrib,
                                ConstantString val,
                                ConstantString subval,
                                ConstantString insert)

REMOVE

public abstract ConstantString REMOVE(mvString colpos,
                                      mvString delimiter)
REMOVE sequentially extracts elements from the string

Parameters:
colpos - column position of element extracted
delimiter - delimiter type encountered
Returns:
the extracted element

replace

public abstract void replace(ConstantString mvs,
                             int start,
                             int offset,
                             int len)

REPLACE

public abstract mvString REPLACE(ConstantString attrib,
                                 ConstantString val,
                                 ConstantString subval,
                                 ConstantString replace)

set

public abstract void set(char[] c,
                         int start,
                         int len)

set

public abstract void set(ConstantString mvs)

set

public abstract void set(ConstantString mvs,
                         int start,
                         int len)

set

public abstract void set(java.lang.String s)

set

public abstract void set(java.math.BigDecimal num)

set

public abstract void set(char c)

set

public abstract void set(double num)

set

public abstract void set(int num)

set

public abstract void set(long num)

setArray

public abstract void setArray(Array array)

setCharAt

public abstract void setCharAt(int pos,
                               char c)

setLength

public abstract void setLength(int len)

setFile

public abstract void setFile(File file)

setList

public abstract void setList(List list)

setProgram

public abstract void setProgram(Program program)