com.niggle.data.metadata
Class LocaleField

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

public class LocaleField
extends Field

A Field subtype that indicates that this field represents an instance of java.util.Locale. At a later point, we may add provision for limiting the valid locales to a given subset of currently supported languages etc.

Author:
Jonathan Revusky
See Also:
Serialized Form

Fields inherited from class com.niggle.data.metadata.Field
defaultValueString, sqlType
 
Constructor Summary
LocaleField()
           
 
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.niggle.data.metadata.Field
capitalizeFirstLetter, checkValidValue, 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

LocaleField

public LocaleField()
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.