|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.legstar.coxb.common.CBinding
public abstract class CBinding
This class is a superclass of all other element types implementing binding between a java type and cobol. The Cobol properties are the exact equivalent of the CobolElement annotation.
| Constructor Summary | |
|---|---|
CBinding(String name,
String jaxbName,
Class<?> jaxbType,
CobolElement cobolAnnotations,
ICobolComplexBinding parentBinding)
Constructor for a cobol element to java binding. |
|
| Method Summary | ||
|---|---|---|
|
cast(Object x)
This utility method is used to suppress the need for @SuppressWarnings when we cast objects to List < ? |
|
String |
getBindingName()
Returns the name of this binding element. |
|
int |
getByteLength()
The host byte length calculation is not performed at construction time. |
|
String |
getCobolName()
|
|
CobolType |
getCobolType()
|
|
String |
getDefaultValue()
|
|
String |
getDependingOn()
|
|
int |
getFractionDigits()
|
|
String |
getJaxbName()
Returns the java name of the property bound to this Cobol element. |
|
Class<?> |
getJaxbType()
Returns the java type of the property bound to this Cobol element. |
|
int |
getLevelNumber()
|
|
String |
getMarshalChoiceStrategyClassName()
|
|
int |
getMaxOccurs()
|
|
int |
getMinOccurs()
|
|
ICobolComplexBinding |
getParentBinding()
A binding element might belong to another complex element . |
|
String |
getPicture()
|
|
String |
getRedefines()
|
|
int |
getSrceLine()
|
|
int |
getTotalDigits()
|
|
String |
getUnmarshalChoiceStrategyClassName()
|
|
String |
getUsage()
|
|
boolean |
isBound()
Determines if this Cobol element is bound to a Jaxb property. |
|
boolean |
isCustomVariable()
|
|
boolean |
isGeneratedBinding()
|
|
boolean |
isJustifiedRight()
|
|
boolean |
isODOObject()
|
|
boolean |
isRedefined()
|
|
boolean |
isSigned()
|
|
boolean |
isSignLeading()
|
|
boolean |
isSignSeparate()
|
|
void |
setBindingName(String bindingName)
|
|
void |
setByteLength(int byteLength)
|
|
void |
setCobolName(String cobolName)
|
|
void |
setCobolType(CobolType type)
|
|
void |
setDefaultValue(String defaultValue)
|
|
void |
setDependingOn(String dependingOn)
|
|
void |
setFractionDigits(int fractionDigits)
|
|
void |
setIsCustomVariable(boolean isCustomVariable)
|
|
void |
setIsJustifiedRight(boolean isJustifiedRight)
|
|
void |
setIsODOObject(boolean isODOObject)
|
|
void |
setIsRedefined(boolean isRedefined)
|
|
void |
setIsSigned(boolean isSigned)
|
|
void |
setIsSignLeading(boolean isSignLeading)
|
|
void |
setIsSignSeparate(boolean isSignSeparate)
|
|
void |
setJaxbName(String jaxbName)
|
|
void |
setJaxbType(Class<?> jaxbType)
|
|
void |
setLevelNumber(int levelNumber)
|
|
void |
setMarshalChoiceStrategyClassName(String marshalChoiceStrategyClassName)
|
|
void |
setMaxOccurs(int maxOccurs)
|
|
void |
setMinOccurs(int minOccurs)
|
|
void |
setParentBinding(ICobolComplexBinding parentBinding)
|
|
void |
setPicture(String picture)
|
|
void |
setRedefines(String redefines)
|
|
void |
setSrceLine(int srceLine)
|
|
void |
setTotalDigits(int totalDigits)
|
|
void |
setUnmarshalChoiceStrategyClassName(String unmarshalChoiceStrategyClassName)
|
|
void |
setUsage(String usage)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.legstar.coxb.ICobolBinding |
|---|
accept, calcByteLength, getObjectValue, isSet, setObjectValue |
| Constructor Detail |
|---|
public CBinding(String name,
String jaxbName,
Class<?> jaxbType,
CobolElement cobolAnnotations,
ICobolComplexBinding parentBinding)
name - the identifier for this bindingjaxbName - the name of the bound java propertyjaxbType - the type of the bound java propertycobolAnnotations - the cobol annotations for this elementparentBinding - a reference to the parent binding| Method Detail |
|---|
public String getCobolName()
getCobolName in interface ICobolElementpublic void setCobolName(String cobolName)
setCobolName in interface ICobolElementcobolName - the Cobol element name to setpublic CobolType getCobolType()
getCobolType in interface ICobolElementpublic void setCobolType(CobolType type)
setCobolType in interface ICobolElementtype - the Cobol element type to setpublic int getByteLength()
getByteLength in interface ICobolElementpublic void setByteLength(int byteLength)
setByteLength in interface ICobolElementbyteLength - the Cobol element length in bytes to setpublic boolean isJustifiedRight()
isJustifiedRight in interface ICobolElementpublic void setIsJustifiedRight(boolean isJustifiedRight)
setIsJustifiedRight in interface ICobolElementisJustifiedRight - true if String is right justifiedpublic int getTotalDigits()
getTotalDigits in interface ICobolElementpublic void setTotalDigits(int totalDigits)
setTotalDigits in interface ICobolElementtotalDigits - the total number of digits to setpublic int getFractionDigits()
getFractionDigits in interface ICobolElementpublic void setFractionDigits(int fractionDigits)
setFractionDigits in interface ICobolElementfractionDigits - the fractional number of digits to setpublic boolean isSigned()
isSigned in interface ICobolElementpublic void setIsSigned(boolean isSigned)
setIsSigned in interface ICobolElementisSigned - true if signedpublic boolean isSignLeading()
isSignLeading in interface ICobolElementpublic void setIsSignLeading(boolean isSignLeading)
setIsSignLeading in interface ICobolElementisSignLeading - true if sign in leading bytepublic boolean isSignSeparate()
isSignSeparate in interface ICobolElementpublic void setIsSignSeparate(boolean isSignSeparate)
setIsSignSeparate in interface ICobolElementisSignSeparate - true if sign occupies a separate bytepublic int getMinOccurs()
getMinOccurs in interface ICobolElementpublic void setMinOccurs(int minOccurs)
setMinOccurs in interface ICobolElementminOccurs - the minimum number of occurences to setpublic int getMaxOccurs()
getMaxOccurs in interface ICobolElementpublic void setMaxOccurs(int maxOccurs)
setMaxOccurs in interface ICobolElementmaxOccurs - the maximum number of occurences to setpublic String getDependingOn()
getDependingOn in interface ICobolElementpublic void setDependingOn(String dependingOn)
setDependingOn in interface ICobolElementdependingOn - the Cobol element giving array actual size to setpublic boolean isODOObject()
isODOObject in interface ICobolElementpublic void setIsODOObject(boolean isODOObject)
setIsODOObject in interface ICobolElementisODOObject - true if array is variable sizepublic String getRedefines()
getRedefines in interface ICobolElementpublic void setRedefines(String redefines)
setRedefines in interface ICobolElementredefines - Cobol element sharing same memory location to setpublic boolean isRedefined()
isRedefined in interface ICobolElementpublic void setIsRedefined(boolean isRedefined)
setIsRedefined in interface ICobolElementisRedefined - true if redefined by at least one other elementpublic boolean isCustomVariable()
isCustomVariable in interface ICobolElementpublic void setIsCustomVariable(boolean isCustomVariable)
setIsCustomVariable in interface ICobolElementisCustomVariable - true if element is used in custom codepublic String getUnmarshalChoiceStrategyClassName()
getUnmarshalChoiceStrategyClassName in interface ICobolElementpublic void setUnmarshalChoiceStrategyClassName(String unmarshalChoiceStrategyClassName)
setUnmarshalChoiceStrategyClassName in interface ICobolElementunmarshalChoiceStrategyClassName - the the name of a class providing
additional logic to select an alternative within a choice
element at unmarshaling (Host to Java) time.public String getMarshalChoiceStrategyClassName()
getMarshalChoiceStrategyClassName in interface ICobolElementpublic void setMarshalChoiceStrategyClassName(String marshalChoiceStrategyClassName)
setMarshalChoiceStrategyClassName in interface ICobolElementmarshalChoiceStrategyClassName - the name of a class providing
additional logic to select an alternative within a choice
element at marshaling (Java to Host) time.public String getJaxbName()
ICobolBinding
getJaxbName in interface ICobolBindingpublic void setJaxbName(String jaxbName)
jaxbName - the Java property name bound to this cobol element to setpublic Class<?> getJaxbType()
ICobolBinding
getJaxbType in interface ICobolBindingpublic void setJaxbType(Class<?> jaxbType)
jaxbType - the Java property type bound to this cobol element to setpublic int getLevelNumber()
getLevelNumber in interface ICobolElementpublic void setLevelNumber(int levelNumber)
setLevelNumber in interface ICobolElementlevelNumber - the Level in the hierarchy to setpublic String getPicture()
getPicture in interface ICobolElementpublic void setPicture(String picture)
setPicture in interface ICobolElementpicture - the Cobol picture clause to setpublic String getDefaultValue()
getDefaultValue in interface ICobolElementpublic String getUsage()
getUsage in interface ICobolElementpublic void setUsage(String usage)
setUsage in interface ICobolElementusage - the Cobol usage to setpublic void setDefaultValue(String defaultValue)
setDefaultValue in interface ICobolElementdefaultValue - the Cobol default value to setpublic int getSrceLine()
getSrceLine in interface ICobolElementpublic void setSrceLine(int srceLine)
setSrceLine in interface ICobolElementsrceLine - the Line number in the original source file to setpublic boolean isBound()
isBound in interface ICobolBindingpublic String getBindingName()
ICobolBinding
getBindingName in interface ICobolBindingpublic void setBindingName(String bindingName)
bindingName - the binding element name to setpublic ICobolComplexBinding getParentBinding()
ICobolBinding
getParentBinding in interface ICobolBindingpublic void setParentBinding(ICobolComplexBinding parentBinding)
parentBinding - the parent binding to setpublic <T> T cast(Object x)
T - the list typex - the object to cast
public boolean isGeneratedBinding()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||