org.jcon.text
Class AlphanumericPicture

java.lang.Object
  extended by org.jcon.text.FixedLengthFieldPicture
      extended by org.jcon.text.AlphanumericPicture
All Implemented Interfaces:
java.io.Serializable

public class AlphanumericPicture
extends FixedLengthFieldPicture

A "picture", or format description, for an alphanumeric fixed-width field.

Author:
Paul Reavis
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jcon.text.FixedLengthFieldPicture
blank
 
Constructor Summary
AlphanumericPicture()
           
AlphanumericPicture(int length)
           
 
Method Summary
 char[] format(java.lang.Object value)
          Return a character array holding the formatted value corresponding to the provided object.
 boolean getRightJustify()
           
 void setRightJustify(boolean tizit)
           
 java.lang.Object unformat(java.lang.String fieldContents)
          Return the string corresponding to the alphanumeric contents of the provided field.
 
Methods inherited from class org.jcon.text.FixedLengthFieldPicture
getLength, setLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlphanumericPicture

public AlphanumericPicture()

AlphanumericPicture

public AlphanumericPicture(int length)
Method Detail

format

public char[] format(java.lang.Object value)
Return a character array holding the formatted value corresponding to the provided object.

Specified by:
format in class FixedLengthFieldPicture

unformat

public java.lang.Object unformat(java.lang.String fieldContents)
Return the string corresponding to the alphanumeric contents of the provided field.

Specified by:
unformat in class FixedLengthFieldPicture

getRightJustify

public boolean getRightJustify()

setRightJustify

public void setRightJustify(boolean tizit)