it.imolinfo.jbi4cics.typemapping.cobol
Class CobolTypeDescriptor

java.lang.Object
  extended by it.imolinfo.jbi4cics.typemapping.cobol.CobolTypeDescriptor
All Implemented Interfaces:
FieldDescriptor

public class CobolTypeDescriptor
extends java.lang.Object
implements FieldDescriptor

Author:
raffaele, Marco Cimatti

Field Summary
static int SIGN_FORMAT_LEADING
           
static int SIGN_FORMAT_LEADING_SEPARATE
           
static int SIGN_FORMAT_TRAILING
           
static int STRING_JUSTIFICATION_CENTER
           
static int STRING_JUSTIFICATION_LEFT
           
static int STRING_JUSTIFICATION_RIGHT
           
 
Constructor Summary
CobolTypeDescriptor()
          Costruttore di default: sarebbe da usare solo nei test.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getBufferedLength()
          Returns the buffered length.
 java.lang.String getCodePage()
          Returns the code page.
 int getDecimalPartLength()
           
 int getIntegerPartLength()
           
 int getJustification()
           
 int getLevel()
          Returns the level.
 java.lang.String getName()
           
 CommareaBeanMappingDescriptor getNestedCommarea()
           
 int getOccursSize()
           
 java.lang.String getPadCharacter()
           
 java.lang.Class getPreferredJavaType()
           
 int getStringLength()
           
 CobolType getType()
           
 int getVirtualDecimalPoint()
           
 int getZonedSignFormat()
           
 int hashCode()
           
 boolean isBigEndian()
           
 boolean isSigned()
           
 void setBigEndian(boolean bigEndian)
           
 void setCodePage(java.lang.String codePage)
          Sets the code page.
 void setDecimalPartLength(int decimalPartLength)
           
 void setIntegerPartLength(int integerPartLength)
           
 void setJustification(int justification)
           
 void setLevel(int level)
          Sets the level.
 void setName(java.lang.String name)
           
 void setNestedCommarea(CommareaBeanMappingDescriptor nestedCommarea)
           
 void setOccursSize(int occursSize)
           
 void setPadCharacter(java.lang.String padCharacter)
           
 void setSigned(boolean signed)
           
 void setStringLength(int stringLength)
           
 void setType(CobolType type)
           
 void setZonedSignFormat(int zonedSignFormat)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STRING_JUSTIFICATION_LEFT

public static final int STRING_JUSTIFICATION_LEFT
See Also:
Constant Field Values

STRING_JUSTIFICATION_RIGHT

public static final int STRING_JUSTIFICATION_RIGHT
See Also:
Constant Field Values

STRING_JUSTIFICATION_CENTER

public static final int STRING_JUSTIFICATION_CENTER
See Also:
Constant Field Values

SIGN_FORMAT_LEADING

public static final int SIGN_FORMAT_LEADING
See Also:
Constant Field Values

SIGN_FORMAT_TRAILING

public static final int SIGN_FORMAT_TRAILING
See Also:
Constant Field Values

SIGN_FORMAT_LEADING_SEPARATE

public static final int SIGN_FORMAT_LEADING_SEPARATE
See Also:
Constant Field Values
Constructor Detail

CobolTypeDescriptor

public CobolTypeDescriptor()
Costruttore di default: sarebbe da usare solo nei test.

Method Detail

toString

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

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getLevel

public int getLevel()
Returns the level.

Returns:
the level.

setLevel

public void setLevel(int level)
Sets the level.

Parameters:
level - the new level to set.

isSigned

public boolean isSigned()
Returns:
Returns the signed.

setSigned

public void setSigned(boolean signed)
Parameters:
signed - The signed to set.

getJustification

public int getJustification()
Returns:
Returns the justification.

setJustification

public void setJustification(int justification)
Parameters:
justification - The justification to set.

getPadCharacter

public java.lang.String getPadCharacter()
Returns:
Returns the padCharacter.

setPadCharacter

public void setPadCharacter(java.lang.String padCharacter)
Parameters:
padCharacter - The padCharacter to set.

getDecimalPartLength

public int getDecimalPartLength()
Returns:
Returns the decimalPartLength.

setDecimalPartLength

public void setDecimalPartLength(int decimalPartLength)
Parameters:
decimalPartLength - The decimalPartLength to set.

getIntegerPartLength

public int getIntegerPartLength()
Returns:
Returns the integerPartLength.

setIntegerPartLength

public void setIntegerPartLength(int integerPartLength)
Parameters:
integerPartLength - The integerPartLength to set.

getStringLength

public int getStringLength()
Returns:
Returns the stringLength.

setStringLength

public void setStringLength(int stringLength)
Parameters:
stringLength - The stringLength to set.

getType

public CobolType getType()
Returns:
Returns the type.

setType

public void setType(CobolType type)
Parameters:
type - The type to set.

getVirtualDecimalPoint

public int getVirtualDecimalPoint()
Returns:
Returns the virtualDecimalPoint.

getBufferedLength

public int getBufferedLength()
                      throws FormatException
Returns the buffered length.

Returns:
the buffered length.
Throws:
FormatException

isBigEndian

public boolean isBigEndian()
Returns:
Returns the bigEndian.

setBigEndian

public void setBigEndian(boolean bigEndian)
Parameters:
bigEndian - The bigEndian to set.

getCodePage

public java.lang.String getCodePage()
Returns the code page.

Returns:
the code page.

setCodePage

public void setCodePage(java.lang.String codePage)
Sets the code page.

Parameters:
codePage - the code page to set.

getZonedSignFormat

public int getZonedSignFormat()
Returns:
Returns the zonedSignFormat.

setZonedSignFormat

public void setZonedSignFormat(int zonedSignFormat)
Parameters:
zonedSignFormat - The zonedSignFormat to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getPreferredJavaType

public java.lang.Class getPreferredJavaType()
                                     throws FormatException
Specified by:
getPreferredJavaType in interface FieldDescriptor
Returns:
Class The best representing java type for this field
Throws:
FormatException - The format exception

getNestedCommarea

public CommareaBeanMappingDescriptor getNestedCommarea()

setNestedCommarea

public void setNestedCommarea(CommareaBeanMappingDescriptor nestedCommarea)

getOccursSize

public int getOccursSize()

setOccursSize

public void setOccursSize(int occursSize)


Copyright © 2005-2008 Imola Informatica. All Rights Reserved.