org.cdgsoftware.icl.field
Class Field

java.lang.Object
  extended by org.cdgsoftware.icl.field.Field
All Implemented Interfaces:
Loggeable
Direct Known Subclasses:
GenericAField, GenericANField, GenericANSField, GenericBinaryField, GenericBlankField, GenericNBField, GenericNField

public abstract class Field
extends java.lang.Object
implements Loggeable

The Class Field.


Constructor Summary
Field()
           
 
Method Summary
 void dump(java.io.PrintStream p, java.lang.String indent)
           
 java.lang.String getFieldData()
          Gets the field data.
 byte[] getFieldDataBytes()
          Gets the field data bytes.
 java.lang.String getFieldName()
          Gets the field name.
 FieldType getFieldType()
          Gets the field type.
 Validator getFieldValidator()
          Gets the field validator.
 Padder getPadder()
          Gets the padder.
 Position getPosition()
          Gets the position.
 java.lang.String getUsage()
          Gets the usage.
 java.lang.String getValidationCriteria()
          Gets the validation criteria.
 boolean isValidated()
          Checks if is validated.
 boolean setFieldData(java.lang.String fieldData)
          Sets the field data.
 void setFieldDataBytes(byte[] b)
          Sets the field data bytes.
 void setFieldName(java.lang.String fieldName)
          Sets the field name.
 void setFieldType(FieldType fieldType)
          Sets the field type.
 void setFieldValidator(Validator fieldValidator)
          Sets the field validator.
 void setPadder(Padder padder)
          Sets the padder.
 void setPosition(Position position)
          Sets the position.
 void setUsage(java.lang.String usage)
          Sets the usage.
 void setValidationCriteria(java.lang.String validationCriteria)
          Sets the validation criteria.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field()
Method Detail

getFieldName

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

Returns:
the field name

setFieldName

public void setFieldName(java.lang.String fieldName)
Sets the field name.

Parameters:
fieldName - the new field name

getValidationCriteria

public java.lang.String getValidationCriteria()
Gets the validation criteria.

Returns:
the validation criteria

setValidationCriteria

public void setValidationCriteria(java.lang.String validationCriteria)
Sets the validation criteria.

Parameters:
validationCriteria - the new validation criteria

getUsage

public java.lang.String getUsage()
Gets the usage.

Returns:
the usage

setUsage

public void setUsage(java.lang.String usage)
Sets the usage.

Parameters:
usage - the new usage

getPosition

public Position getPosition()
Gets the position.

Returns:
the position

setPosition

public void setPosition(Position position)
Sets the position.

Parameters:
position - the new position

getFieldType

public FieldType getFieldType()
Gets the field type.

Returns:
the field type

setFieldType

public void setFieldType(FieldType fieldType)
Sets the field type.

Parameters:
fieldType - the new field type

getFieldData

public java.lang.String getFieldData()
Gets the field data.

Returns:
the field data

getPadder

public Padder getPadder()
Gets the padder.

Returns:
the padder

setPadder

public void setPadder(Padder padder)
Sets the padder.

Parameters:
padder - the new padder

getFieldValidator

public Validator getFieldValidator()
Gets the field validator.

Returns:
the field validator

setFieldValidator

public void setFieldValidator(Validator fieldValidator)
Sets the field validator.

Parameters:
fieldValidator - the new field validator

isValidated

public boolean isValidated()
Checks if is validated.

Returns:
true, if is validated

getFieldDataBytes

public byte[] getFieldDataBytes()
Gets the field data bytes.

Returns:
the field data bytes

setFieldDataBytes

public void setFieldDataBytes(byte[] b)
Sets the field data bytes.

Parameters:
b - the new field data bytes

setFieldData

public boolean setFieldData(java.lang.String fieldData)
                     throws ICLException
Sets the field data.

Parameters:
fieldData - the new field data
Returns:
true, if sets the field data
Throws:
ICLException - the ICL exception

dump

public void dump(java.io.PrintStream p,
                 java.lang.String indent)
Specified by:
dump in interface Loggeable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object