org.jcon.text
Class FixedLengthFieldDef

java.lang.Object
  extended by org.jcon.data.FieldDef
      extended by org.jcon.text.FixedLengthFieldDef
All Implemented Interfaces:
java.io.Serializable

public class FixedLengthFieldDef
extends FieldDef

A description of a field in a fixed-length record.

Author:
Paul Reavis
See Also:
Serialized Form

Constructor Summary
FixedLengthFieldDef()
           
 
Method Summary
 java.lang.Object fixValue(java.lang.Object value)
          Scrubs value, returns default if isChaff() is true, or if there is a default and input is null or blank.
 java.lang.Object getDefaultValue()
           
 FixedLengthFieldPicture getPicture()
           
 int getPosition()
           
 boolean isChaff()
          False if the field actually maps to a field.
 void setDefaultValue(java.lang.Object newdefaultValue)
           
 void setPicture(FixedLengthFieldPicture newpicture)
           
 void setPosition(int newposition)
           
 
Methods inherited from class org.jcon.data.FieldDef
getDescription, getDisplayName, getName, getProperties, getType, setDescription, setDisplayName, setName, setProperties, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedLengthFieldDef

public FixedLengthFieldDef()
Method Detail

isChaff

public boolean isChaff()
False if the field actually maps to a field.


fixValue

public java.lang.Object fixValue(java.lang.Object value)
Scrubs value, returns default if isChaff() is true, or if there is a default and input is null or blank.


getPicture

public FixedLengthFieldPicture getPicture()

setPicture

public void setPicture(FixedLengthFieldPicture newpicture)

getPosition

public int getPosition()

setPosition

public void setPosition(int newposition)

getDefaultValue

public java.lang.Object getDefaultValue()

setDefaultValue

public void setDefaultValue(java.lang.Object newdefaultValue)