com.legstar.coxb
Class CobolContext

java.lang.Object
  extended by com.legstar.coxb.host.HostContext
      extended by com.legstar.coxb.CobolContext

public class CobolContext
extends HostContext

This class encapsulates all Cobol compiler options that might influence the conversion from Cobol representation to Java representation.

Author:
Fady Moussallam

Nested Class Summary
static class CobolContext.Trunc
          This enumeration class represents how binary data is truncated depending on the number of digits specified in the PICTURE clause.
 
Constructor Summary
CobolContext()
           
 
Method Summary
 boolean failOnAlphanumOverflow()
          Fail if a java string content is too long for the target alphanumeric COBOL data item.
 Byte getAlphanumPaddingChar()
           
 boolean isArithExtend()
           
 boolean isSymbolDbcs()
           
 void setAlphanumPaddingChar(Byte alphanumPaddingChar)
           
 void setArithExtend(boolean arithExtend)
           
 void setFailOnAlphanumOverflow(boolean failOnAlphanumOverflow)
          Fail if a java string content is too long for the target alphanumeric COBOL data item.
 void setSymbolDbcs(boolean nsymbolDbcs)
           
 
Methods inherited from class com.legstar.coxb.host.HostContext
getDefaultHostCharsetName, getHostCharsetName, getHostIntegerSigns, getHostIntegerSigns, getIntegerSigns, setHostCharsetName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CobolContext

public CobolContext()
Method Detail

isArithExtend

public boolean isArithExtend()
Returns:
Returns the arithExtend.

setArithExtend

public void setArithExtend(boolean arithExtend)
Parameters:
arithExtend - The arithExtend to set.

isSymbolDbcs

public boolean isSymbolDbcs()
Returns:
Returns the symbol Dbcs.

setSymbolDbcs

public void setSymbolDbcs(boolean nsymbolDbcs)
Parameters:
nsymbolDbcs - The symbol Dbcs to set.

getAlphanumPaddingChar

public Byte getAlphanumPaddingChar()
Returns:
the alphanumerics padding character

setAlphanumPaddingChar

public void setAlphanumPaddingChar(Byte alphanumPaddingChar)
Parameters:
alphanumPaddingChar - the alphanumerics padding character to set

failOnAlphanumOverflow

public boolean failOnAlphanumOverflow()
Fail if a java string content is too long for the target alphanumeric COBOL data item.

Returns:
true when failure is requested if a java string content is too long for the target alphanumeric COBOL data item

setFailOnAlphanumOverflow

public void setFailOnAlphanumOverflow(boolean failOnAlphanumOverflow)
Fail if a java string content is too long for the target alphanumeric COBOL data item.

Parameters:
failOnAlphanumOverflow - true when failure is requested if a java string content is too long for the target alphanumeric COBOL data item


Copyright © 2015 LegSem. All Rights Reserved.