dk.vajhoej.record
Class FieldInfo

java.lang.Object
  extended by dk.vajhoej.record.FieldInfo

public class FieldInfo
extends java.lang.Object

Class FieldInfo contains information about a native struct field needed for conversions.


Constructor Summary
FieldInfo(FieldType structType, int length, int decimals, java.lang.String encoding, byte zone, java.lang.Class<?> classType, java.lang.reflect.Field field, java.util.Map<java.lang.Integer,SubClassAndPad> selects, boolean selectPad, int elements)
          Create instance of FieldInfo with all necessary properties.
 
Method Summary
 java.lang.Class<?> getClassType()
          Get Java class type.
 int getDecimals()
          Get decimals of BCD.
 int getElements()
          Get number of elements.
 java.lang.String getEncoding()
          Get encoding of string.
 java.lang.reflect.Field getField()
          Get corresponding reflection object.
 int getLength()
          Get length of fixed length string.
 boolean getSelectPad()
          Get sub class padding to fixed length.
 java.util.Map<java.lang.Integer,SubClassAndPad> getSelects()
          Get sub class selections.
 FieldType getStructType()
          Get native struct type.
 byte getZone()
          Get zone of zoned BCD.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldInfo

public FieldInfo(FieldType structType,
                 int length,
                 int decimals,
                 java.lang.String encoding,
                 byte zone,
                 java.lang.Class<?> classType,
                 java.lang.reflect.Field field,
                 java.util.Map<java.lang.Integer,SubClassAndPad> selects,
                 boolean selectPad,
                 int elements)
Create instance of FieldInfo with all necessary properties.

Parameters:
structType - native struct type
length - length of fixed length string
encoding - encoding of string
classType - Java class type
field - corresponding reflection object
selects - sub class selections
selectPad - pad sub classes to fixed length
elements - number of elements
Method Detail

getStructType

public FieldType getStructType()
Get native struct type.

Returns:
native struct type

getLength

public int getLength()
Get length of fixed length string.

Returns:
length of fixed length string

getDecimals

public int getDecimals()
Get decimals of BCD.

Returns:
decimals of BCD

getEncoding

public java.lang.String getEncoding()
Get encoding of string.

Returns:
encoding of string

getZone

public byte getZone()
Get zone of zoned BCD.

Returns:
zone of zoned BCD

getClassType

public java.lang.Class<?> getClassType()
Get Java class type.

Returns:
Java class type

getField

public java.lang.reflect.Field getField()
Get corresponding reflection object.

Returns:
corresponding reflection object

getSelects

public java.util.Map<java.lang.Integer,SubClassAndPad> getSelects()
Get sub class selections.

Returns:
sub class selections

getSelectPad

public boolean getSelectPad()
Get sub class padding to fixed length.

Returns:
true=pad, false=no pad

getElements

public int getElements()
Get number of elements.

Returns:
elements