|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--xBaseJ.Field
|
+--xBaseJ.NumField
| Constructor Summary | |
NumField(java.lang.String iName,
int iLength,
int inDecPosition)
public method for creating a numeric field object. |
|
| Method Summary | |
int |
decPosition()
Deprecated. use getDecimalPositionCount |
java.lang.String |
get()
public method for getting field value |
int |
getDecimalPositionCount()
|
char |
getType()
return the character 'N' indicating a numeric field |
void |
put(double inValue)
sets the field contents. |
void |
put(float inValue)
sets the field contents. |
void |
put(int inValue)
sets the field contents. |
void |
put(long inValue)
sets the field contents. |
void |
put(java.lang.String inValue)
sets the field contents. |
char |
type()
Deprecated. use getType |
| Methods inherited from class xBaseJ.Field |
decPoint, getBytes, getLength, getName, length, name, put, readExternal, writeExternal |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NumField(java.lang.String iName,
int iLength,
int inDecPosition)
throws xBaseJException,
java.io.IOException
Name - the name of the fieldLength - the length of Field. range is 1 to 19 bytesdecPosition - the number of decimal positions range from 2 to 17 bytes. Relative to Length.xBaseJException - bad name, length or decimal positions specifiedjava.io.IOException - can not occur but defined for calling methodsField| Method Detail |
public char type()
type in class FieldxBaseJ.FieldxBaseJException - undefined field typepublic char getType()
getType in class FieldxBaseJ.FieldxBaseJException - undefined field typepublic int decPosition()
public int getDecimalPositionCount()
getDecimalPositionCount in class Fieldpublic java.lang.String get()
get in class FieldxBaseJ.Field
public void put(java.lang.String inValue)
throws xBaseJException
put in class FieldinValue - StringxBaseJException - most likely a format exception
public void put(long inValue)
throws xBaseJException
inValue - longxBaseJException - most likely a format exception
public void put(int inValue)
throws xBaseJException
inValue - intxBaseJException - most likely a format exception
public void put(float inValue)
throws xBaseJException
inValue - floatxBaseJException - most likely a format exception
public void put(double inValue)
throws xBaseJException
inValue - doublexBaseJException - most likely a format exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||