com.revusky.niggle.data.metadata
Class BooleanField

java.lang.Object
  |
  +--com.revusky.niggle.data.metadata.Field
        |
        +--com.revusky.niggle.data.metadata.BooleanField
All Implemented Interfaces:
FieldDescriptor, java.io.Serializable

public class BooleanField
extends Field

A FieldDescriptor that describes a field with a boolean true/false value.

Author:
Jonathan Revusky
See Also:
Serialized Form

Fields inherited from class com.revusky.niggle.data.metadata.Field
defaultValueString, sqlType
 
Constructor Summary
BooleanField()
           
 
Method Summary
 java.lang.Class getJavaType()
          The kind of java object that can live in this record field.
 java.lang.Object getObjectFromString(Record rec, java.lang.String value)
          Given the string representation of a field, return its internal java object representation.
 
Methods inherited from class com.revusky.niggle.data.metadata.Field
capitalizeFirstLetter, checkValidValue, convertFromJDBC, defaultValue, getCopy, getLocalizedName, getName, getSQLType, hashCode, init, isFieldOf, isRequired, normalize, processDefaultValue, setDefaultValue, toString, valueToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanField

public BooleanField()
Method Detail

getJavaType

public java.lang.Class getJavaType()
Description copied from interface: FieldDescriptor
The kind of java object that can live in this record field.
Overrides:
getJavaType in class Field

getObjectFromString

public java.lang.Object getObjectFromString(Record rec,
                                            java.lang.String value)
                                     throws MangledDataException
Description copied from interface: FieldDescriptor
Given the string representation of a field, return its internal java object representation. Used in deserializing from a flat file.