it.imolinfo.jbi4cics.commareaparser
Class PictureDefinition

java.lang.Object
  extended by it.imolinfo.jbi4cics.commareaparser.PictureDefinition

public class PictureDefinition
extends java.lang.Object

this class is required by the parser and is used to store information about the picure part of cobol tipe definition.

Author:
raffaele

Field Summary
static int NUMERIC
          the constant NUMERIC means that cobol type is numeric.
static int STRING
          the constant STRING means that cobol type is a string.
 
Constructor Summary
PictureDefinition()
           
 
Method Summary
 int getDecimalLength()
           
 int getIntegerLength()
           
 int getStringLength()
           
 int getType()
           
 boolean isSigned()
           
 boolean isSignPlus()
           
 void populate(CobolTypeDescriptor cobolTypeDescriptor)
           
 void setDecimalLength(int decimalLength)
           
 void setIntegerLength(int integerLength)
           
 void setSigned(boolean signed)
           
 void setSignPlus(boolean signPlus)
           
 void setStringLength(int stringLength)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUMERIC

public static final int NUMERIC
the constant NUMERIC means that cobol type is numeric.

See Also:
Constant Field Values

STRING

public static final int STRING
the constant STRING means that cobol type is a string.

See Also:
Constant Field Values
Constructor Detail

PictureDefinition

public PictureDefinition()
Method Detail

getDecimalLength

public int getDecimalLength()
Returns:
Returns the decimalLength.

setDecimalLength

public void setDecimalLength(int decimalLength)
Parameters:
decimalLength - The decimalLength to set.

getIntegerLength

public int getIntegerLength()
Returns:
Returns the integerLength.

setIntegerLength

public void setIntegerLength(int integerLength)
Parameters:
integerLength - The integerLength to set.

getStringLength

public int getStringLength()
Returns:
Returns the stringLength.

setStringLength

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

getType

public int getType()
Returns:
Returns the type.

setType

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

populate

public void populate(CobolTypeDescriptor cobolTypeDescriptor)
              throws ParseException
Throws:
ParseException

isSigned

public boolean isSigned()
Returns:
Returns the signed.

setSigned

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

isSignPlus

public boolean isSignPlus()
Returns:
Returns the signPlus.

setSignPlus

public void setSignPlus(boolean signPlus)
Parameters:
signPlus - The signPlus to set.


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