|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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
xBaseJException
- bad name, length or decimal positions specified
java.io.IOException
- can not occur but defined for calling methodsField
Method Detail |
public char type()
type
in class Field
public char getType()
getType
in class Field
public int decPosition()
public int getDecimalPositionCount()
getDecimalPositionCount
in class Field
public java.lang.String get()
get
in class Field
public void put(java.lang.String inValue) throws xBaseJException
put
in class Field
inValue
- String
xBaseJException
- most likely a format exceptionpublic void put(long inValue) throws xBaseJException
inValue
- long
xBaseJException
- most likely a format exceptionpublic void put(int inValue) throws xBaseJException
inValue
- int
xBaseJException
- most likely a format exceptionpublic void put(float inValue) throws xBaseJException
inValue
- float
xBaseJException
- most likely a format exceptionpublic void put(double inValue) throws xBaseJException
inValue
- double
xBaseJException
- most likely a format exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |