org.jmonks.batch.io
Class FieldSpec

java.lang.Object
  extended byorg.jmonks.batch.io.FieldSpec
Direct Known Subclasses:
DelimitedFlatFileFieldSpec, FixedWidthFlatFileFieldSpec

public abstract class FieldSpec
extends java.lang.Object

FieldSpec represents the <field-spec> element in file spec. Field spec specifies the name of the field and additional attributes to identifies the field among the record and other properties based on the file type. Every field-spec element contains field-name attribute identifies among the record spec. The field-name values should be unique across one record spec.

       <field-spec field-name="consumer-id"/>
  

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Field Summary
static java.lang.String FIELD_NAME_ATTRIB_NAME
          Constant defines the field name atttribute name.
static java.lang.String FIELD_SPEC_TAG_NAME
          Constant defines the field spec tag name.
protected  java.lang.String fieldName
          Holds the name of the field.
 
Constructor Summary
FieldSpec(java.lang.String fieldName)
          Constructs the FieldSpec object by accepting the field name.
 
Method Summary
 java.lang.String getFieldName()
          Returns the field name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldName

protected java.lang.String fieldName
Holds the name of the field.


FIELD_SPEC_TAG_NAME

public static final java.lang.String FIELD_SPEC_TAG_NAME
Constant defines the field spec tag name.

See Also:
Constant Field Values

FIELD_NAME_ATTRIB_NAME

public static final java.lang.String FIELD_NAME_ATTRIB_NAME
Constant defines the field name atttribute name.

See Also:
Constant Field Values
Constructor Detail

FieldSpec

public FieldSpec(java.lang.String fieldName)
Constructs the FieldSpec object by accepting the field name.

Parameters:
fieldName - Name of the field.
Method Detail

getFieldName

public java.lang.String getFieldName()
Returns the field name.