com.legstar.coxb
Interface ICobolNumericBinding

All Superinterfaces:
ICobolBinding, ICobolElement
All Known Subinterfaces:
ICobolBinaryBinding, ICobolPackedDecimalBinding, ICobolZonedDecimalBinding

public interface ICobolNumericBinding
extends ICobolBinding

This interface groups methods that are common to all cobol numeric elements.

Author:
Fady Moussallam

Method Summary
 BigDecimal getBigDecimalValue()
           
 BigInteger getBigIntegerValue()
           
 Byte getByteValue()
           
 Integer getIntegerValue()
           
 Long getLongValue()
           
 Short getShortValue()
           
 void setBigDecimalValue(BigDecimal value)
          Set the value associated with this element.
 void setBigIntegerValue(BigInteger value)
          Set the value associated with this element.
 void setByteValue(Byte value)
          Set the value associated with this element.
 void setIntegerValue(Integer value)
          Set the value associated with this element.
 void setLongValue(Long value)
          Set the value associated with this element.
 void setShortValue(Short value)
          Set the value associated with this element.
 
Methods inherited from interface com.legstar.coxb.ICobolBinding
accept, calcByteLength, getBindingName, getJaxbName, getJaxbType, getObjectValue, getParentBinding, isBound, isSet, setObjectValue
 
Methods inherited from interface com.legstar.coxb.ICobolElement
getByteLength, getCobolName, getCobolType, getDefaultValue, getDependingOn, getFractionDigits, getLevelNumber, getMarshalChoiceStrategyClassName, getMaxOccurs, getMinOccurs, getPicture, getRedefines, getSrceLine, getTotalDigits, getUnmarshalChoiceStrategyClassName, getUsage, isCustomVariable, isJustifiedRight, isODOObject, isRedefined, isSigned, isSignLeading, isSignSeparate, setByteLength, setCobolName, setCobolType, setDefaultValue, setDependingOn, setFractionDigits, setIsCustomVariable, setIsJustifiedRight, setIsODOObject, setIsRedefined, setIsSigned, setIsSignLeading, setIsSignSeparate, setLevelNumber, setMarshalChoiceStrategyClassName, setMaxOccurs, setMinOccurs, setPicture, setRedefines, setSrceLine, setTotalDigits, setUnmarshalChoiceStrategyClassName, setUsage
 

Method Detail

getByteValue

Byte getByteValue()
                  throws HostException
Returns:
the current numeric value as a Byte
Throws:
HostException - if this element cannot produce a numeric value

setByteValue

void setByteValue(Byte value)
                  throws HostException
Set the value associated with this element.

Parameters:
value - the value as a Byte
Throws:
HostException - if this setting value fails

getShortValue

Short getShortValue()
                    throws HostException
Returns:
the current numeric value as a Short
Throws:
HostException - if this element cannot produce a numeric value

setShortValue

void setShortValue(Short value)
                   throws HostException
Set the value associated with this element.

Parameters:
value - the value as a Short
Throws:
HostException - if this setting value fails

getIntegerValue

Integer getIntegerValue()
                        throws HostException
Returns:
the current numeric value as an Integer
Throws:
HostException - if this element cannot produce a numeric value

setIntegerValue

void setIntegerValue(Integer value)
                     throws HostException
Set the value associated with this element.

Parameters:
value - the value as an Integer
Throws:
HostException - if this setting value fails

getLongValue

Long getLongValue()
                  throws HostException
Returns:
the current numeric value as a Long
Throws:
HostException - if this element cannot produce a numeric value

setLongValue

void setLongValue(Long value)
                  throws HostException
Set the value associated with this element.

Parameters:
value - the value as a Long
Throws:
HostException - if this setting value fails

getBigDecimalValue

BigDecimal getBigDecimalValue()
                              throws HostException
Returns:
the current numeric value as a BigDecimal
Throws:
HostException - if this element cannot produce a numeric value

setBigDecimalValue

void setBigDecimalValue(BigDecimal value)
                        throws HostException
Set the value associated with this element.

Parameters:
value - the value as a BigDecimal
Throws:
HostException - if this setting value fails

getBigIntegerValue

BigInteger getBigIntegerValue()
                              throws HostException
Returns:
the current numeric value as a BigInteger
Throws:
HostException - if this element cannot produce a numeric value

setBigIntegerValue

void setBigIntegerValue(BigInteger value)
                        throws HostException
Set the value associated with this element.

Parameters:
value - the value as a BigInteger
Throws:
HostException - if this setting value fails


Copyright © 2015 LegSem. All Rights Reserved.