org.ikasan.framework.component.transformation.flatfile.reader.field
Class BaseFieldDefinition

java.lang.Object
  extended by org.ikasan.framework.component.transformation.flatfile.reader.field.BaseFieldDefinition
Direct Known Subclasses:
FixedLengthFieldDefinition

public class BaseFieldDefinition
extends Object

Base class for flat file field definitions

Author:
Ikasan Development Team

Field Summary
protected  String fieldName
          Our name for the field
protected  boolean optionalField
          This field may not actually exist, ie if there is no more content, neither this field nor any subsequent field will be evaluated
protected  boolean skipIfEmpty
          This field can be skipped in output if its value is empty
 
Constructor Summary
BaseFieldDefinition(String fieldName)
          Constructor
 
Method Summary
 String getFieldName()
          Accessor for fieldName
 boolean isOptionalField()
          Accessor for optionalField
 boolean isSkipIfEmpty()
          Accessor for skipIfEmpty
 void setOptionalField(boolean optionalField)
          Setter method for optionalField
 void setSkipIfEmpty(boolean skipIfEmpty)
          Setter for skipIfEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldName

protected String fieldName
Our name for the field


skipIfEmpty

protected boolean skipIfEmpty
This field can be skipped in output if its value is empty


optionalField

protected boolean optionalField
This field may not actually exist, ie if there is no more content, neither this field nor any subsequent field will be evaluated

Constructor Detail

BaseFieldDefinition

public BaseFieldDefinition(String fieldName)
Constructor

Parameters:
fieldName - - The name of the field
Method Detail

setOptionalField

public void setOptionalField(boolean optionalField)
Setter method for optionalField

Parameters:
optionalField - the optional flag to set

isOptionalField

public boolean isOptionalField()
Accessor for optionalField

Returns:
true if it is allowable that the previous field was the last one

isSkipIfEmpty

public boolean isSkipIfEmpty()
Accessor for skipIfEmpty

Returns:
skipIfEmpty

setSkipIfEmpty

public void setSkipIfEmpty(boolean skipIfEmpty)
Setter for skipIfEmpty

Parameters:
skipIfEmpty - - The flag to set

getFieldName

public String getFieldName()
Accessor for fieldName

Returns:
fieldName


Copyright © 2007-2012 Ikasan. All Rights Reserved.