|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xBaseJ.fields.Field
org.xBaseJ.fields.LogicalField
| Field Summary | |
static byte |
BYTEFALSE
|
static byte |
BYTETRUE
|
| Fields inherited from class org.xBaseJ.fields.Field |
buffer, bytebuffer, Deleted, Length, myoffset, Name, otherValidCharacters |
| Constructor Summary | |
LogicalField()
|
|
LogicalField(String iName)
public method for creating a LogicalField object. |
|
LogicalField(String iName,
java.nio.ByteBuffer inBuffer)
|
|
| Method Summary | |
Object |
clone()
|
boolean |
getBoolean()
returns true or false |
char |
getChar()
returns T for true and F for false |
char |
getType()
return the character 'L' indicating a logical Field |
void |
put(boolean inValue)
allows input true or false |
void |
put(char inValue)
allows input of Y, y, T, t and 1 for true, N, n, F, f, and 0 for false |
void |
put(String inValue)
allows input of Y, y, T, t and 1 for true, N, n, F, f, and 0 for false |
| Methods inherited from class org.xBaseJ.fields.Field |
get, getBytes, getDecimalPositionCount, getLength, getName, put, read, readExternal, setBuffer, setBufferSpace, setField, update, write, writeExternal |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte BYTETRUE
public static final byte BYTEFALSE
| Constructor Detail |
public LogicalField()
public LogicalField(String iName,
java.nio.ByteBuffer inBuffer)
throws xBaseJException
public LogicalField(String iName)
throws xBaseJException,
IOException
iName - the name of the field
xBaseJException - exception caused in calling methods
IOException - can not occur but defined for calling methodsField| Method Detail |
public Object clone()
throws CloneNotSupportedException
clone in class FieldCloneNotSupportedExceptionpublic char getType()
getType in class Field
public void put(String inValue)
throws xBaseJException
put in class FieldinValue - value to set
xBaseJException - most likely a format exception
public void put(char inValue)
throws xBaseJException
xBaseJException - most likely a format exceptionpublic void put(boolean inValue)
public char getChar()
public boolean getBoolean()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||