All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xBaseJ.LogicalField

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

public class LogicalField
extends Field

Constructor Index

 o LogicalField(String)
public method for creating a LogicalField object.

Method Index

 o getBoolean()
returns true or false
 o getChar()
returns T for true and F for false
 o getType()
return the character 'L' indicating a logical Field
 o put(boolean)
allows input true or false
 o put(char)
allows input of Y, y, T, t and 1 for true, N, n, F, f, and 0 for false
 o put(String)
allows input of Y, y, T, t and 1 for true, N, n, F, f, and 0 for false
 o type()
return the character 'L' indicating a logical Field Deprecated.

Constructors

 o LogicalField
 public LogicalField(String iName) throws xBaseJException, 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
Throws: IOException
can not occur but defined for calling methods
See Also:
Field

Methods

 o type
 public char type()
Note: type() is deprecated. use getType

return the character 'L' indicating a logical Field

Overrides:
type in class Field
 o getType
 public char getType()
return the character 'L' indicating a logical Field

Overrides:
getType in class Field
 o put
 public void put(String 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
Overrides:
put in class Field
 o 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
 o put
 public void put(boolean inValue)
allows input true or false

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

 o getBoolean
 public boolean getBoolean()
returns true or false


All Packages  Class Hierarchy  This Package  Previous  Next  Index