xBaseJ
Class LogicalField

java.lang.Object
  |
  +--xBaseJ.Field
        |
        +--xBaseJ.LogicalField

public class LogicalField
extends Field


Constructor Summary
LogicalField(java.lang.String iName)
          public method for creating a LogicalField object.
 
Method Summary
 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(java.lang.String inValue)
          allows input of Y, y, T, t and 1 for true, N, n, F, f, and 0 for false
 char type()
          Deprecated. use getType
 
Methods inherited from class xBaseJ.Field
decPoint, get, getBytes, getDecimalPositionCount, getLength, getName, length, name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogicalField

public LogicalField(java.lang.String iName)
             throws xBaseJException,
                    java.io.IOException
public method for creating a LogicalField object. It is not associated with a database but can be when used with some DBF methods.
Parameters:
Name - the name of the field
Throws:
xBaseJException - exception caused in calling methods
java.io.IOException - can not occur but defined for calling methods
See Also:
Field
Method Detail

type

public char type()
Deprecated. use getType

return the character 'L' indicating a logical Field
Overrides:
type in class Field
Tags copied from class: Field
Returns:
char field type
Throws:
xBaseJException - undefined field type

getType

public char getType()
return the character 'L' indicating a logical Field
Overrides:
getType in class Field
Tags copied from class: Field
Returns:
char field type
Throws:
xBaseJException - undefined field type

put

public void put(java.lang.String inValue)
         throws xBaseJException
allows input of Y, y, T, t and 1 for true, N, n, F, f, and 0 for false
Overrides:
put in class Field
Throws:
xBaseJException - most likely a format exception

put

public void put(char inValue)
         throws xBaseJException
allows input of Y, y, T, t and 1 for true, N, n, F, f, and 0 for false
Throws:
xBaseJException - most likely a format exception

put

public void put(boolean inValue)
allows input true or false

getChar

public char getChar()
returns T for true and F for false

getBoolean

public boolean getBoolean()
returns true or false