org.jcon.text
Class DelimitedRecordDef

java.lang.Object
  extended by org.jcon.text.DelimitedRecordDef
All Implemented Interfaces:
java.io.Serializable, TextRecordDef

public class DelimitedRecordDef
extends java.lang.Object
implements TextRecordDef

Contains the definition for a delimited (e.g. comma-separated or tab-separated) text data record.

Author:
Paul Reavis
See Also:
Serialized Form

Constructor Summary
DelimitedRecordDef()
          Create a new, blank DelimitedRecordDef
 
Method Summary
 java.lang.String format(java.lang.Object source)
          Convert an object to a formatted String.
 java.lang.String getDelimiter()
          The delimiter used to separate field values
 java.util.ArrayList getFieldDefs()
          The delimited field object definitions.
 java.lang.String getName()
          The name or identifier for the record.
 void setDelimiter(java.lang.String newDelimiter)
           
 void setFieldDefs(java.util.ArrayList newFieldDefs)
           
 void setName(java.lang.String newName)
           
 java.lang.Object unformat(java.lang.String recordString)
          Convert a formatted string to an object of the source class
 java.lang.Object unformat(java.lang.String recordString, java.lang.Class objectClass)
          Convert a formatted string to an object of the indicated class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelimitedRecordDef

public DelimitedRecordDef()
Create a new, blank DelimitedRecordDef

Method Detail

unformat

public java.lang.Object unformat(java.lang.String recordString)
Convert a formatted string to an object of the source class

Specified by:
unformat in interface TextRecordDef

unformat

public java.lang.Object unformat(java.lang.String recordString,
                                 java.lang.Class objectClass)
Convert a formatted string to an object of the indicated class.

Specified by:
unformat in interface TextRecordDef

format

public java.lang.String format(java.lang.Object source)
Convert an object to a formatted String.

Specified by:
format in interface TextRecordDef

getName

public java.lang.String getName()
The name or identifier for the record.


setName

public void setName(java.lang.String newName)

getDelimiter

public java.lang.String getDelimiter()
The delimiter used to separate field values


setDelimiter

public void setDelimiter(java.lang.String newDelimiter)

getFieldDefs

public java.util.ArrayList getFieldDefs()
The delimited field object definitions.


setFieldDefs

public void setFieldDefs(java.util.ArrayList newFieldDefs)