|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 bindingMethod Detail |
---|
public String getCobolName()
getCobolName
in interface ICobolElement
public void setCobolName(String cobolName)
setCobolName
in interface ICobolElement
cobolName
- the Cobol element name to setpublic CobolType getCobolType()
getCobolType
in interface ICobolElement
public void setCobolType(CobolType type)
setCobolType
in interface ICobolElement
type
- the Cobol element type to setpublic int getByteLength()
getByteLength
in interface ICobolElement
public void setByteLength(int byteLength)
setByteLength
in interface ICobolElement
byteLength
- the Cobol element length in bytes to setpublic boolean isJustifiedRight()
isJustifiedRight
in interface ICobolElement
public void setIsJustifiedRight(boolean isJustifiedRight)
setIsJustifiedRight
in interface ICobolElement
isJustifiedRight
- true if String is right justifiedpublic int getTotalDigits()
getTotalDigits
in interface ICobolElement
public void setTotalDigits(int totalDigits)
setTotalDigits
in interface ICobolElement
totalDigits
- the total number of digits to setpublic int getFractionDigits()
getFractionDigits
in interface ICobolElement
public void setFractionDigits(int fractionDigits)
setFractionDigits
in interface ICobolElement
fractionDigits
- the fractional number of digits to setpublic boolean isSigned()
isSigned
in interface ICobolElement
public void setIsSigned(boolean isSigned)
setIsSigned
in interface ICobolElement
isSigned
- true if signedpublic boolean isSignLeading()
isSignLeading
in interface ICobolElement
public void setIsSignLeading(boolean isSignLeading)
setIsSignLeading
in interface ICobolElement
isSignLeading
- true if sign in leading bytepublic boolean isSignSeparate()
isSignSeparate
in interface ICobolElement
public void setIsSignSeparate(boolean isSignSeparate)
setIsSignSeparate
in interface ICobolElement
isSignSeparate
- true if sign occupies a separate bytepublic int getMinOccurs()
getMinOccurs
in interface ICobolElement
public void setMinOccurs(int minOccurs)
setMinOccurs
in interface ICobolElement
minOccurs
- the minimum number of occurences to setpublic int getMaxOccurs()
getMaxOccurs
in interface ICobolElement
public void setMaxOccurs(int maxOccurs)
setMaxOccurs
in interface ICobolElement
maxOccurs
- the maximum number of occurences to setpublic String getDependingOn()
getDependingOn
in interface ICobolElement
public void setDependingOn(String dependingOn)
setDependingOn
in interface ICobolElement
dependingOn
- the Cobol element giving array actual size to setpublic boolean isODOObject()
isODOObject
in interface ICobolElement
public void setIsODOObject(boolean isODOObject)
setIsODOObject
in interface ICobolElement
isODOObject
- true if array is variable sizepublic String getRedefines()
getRedefines
in interface ICobolElement
public void setRedefines(String redefines)
setRedefines
in interface ICobolElement
redefines
- Cobol element sharing same memory location to setpublic boolean isRedefined()
isRedefined
in interface ICobolElement
public void setIsRedefined(boolean isRedefined)
setIsRedefined
in interface ICobolElement
isRedefined
- true if redefined by at least one other elementpublic boolean isCustomVariable()
isCustomVariable
in interface ICobolElement
public void setIsCustomVariable(boolean isCustomVariable)
setIsCustomVariable
in interface ICobolElement
isCustomVariable
- true if element is used in custom codepublic String getUnmarshalChoiceStrategyClassName()
getUnmarshalChoiceStrategyClassName
in interface ICobolElement
public void setUnmarshalChoiceStrategyClassName(String unmarshalChoiceStrategyClassName)
setUnmarshalChoiceStrategyClassName
in interface ICobolElement
unmarshalChoiceStrategyClassName
- 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 ICobolElement
public void setMarshalChoiceStrategyClassName(String marshalChoiceStrategyClassName)
setMarshalChoiceStrategyClassName
in interface ICobolElement
marshalChoiceStrategyClassName
- 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 ICobolBinding
public void setJaxbName(String jaxbName)
jaxbName
- the Java property name bound to this cobol element to setpublic Class<?> getJaxbType()
ICobolBinding
getJaxbType
in interface ICobolBinding
public void setJaxbType(Class<?> jaxbType)
jaxbType
- the Java property type bound to this cobol element to setpublic int getLevelNumber()
getLevelNumber
in interface ICobolElement
public void setLevelNumber(int levelNumber)
setLevelNumber
in interface ICobolElement
levelNumber
- the Level in the hierarchy to setpublic String getPicture()
getPicture
in interface ICobolElement
public void setPicture(String picture)
setPicture
in interface ICobolElement
picture
- the Cobol picture clause to setpublic String getDefaultValue()
getDefaultValue
in interface ICobolElement
public String getUsage()
getUsage
in interface ICobolElement
public void setUsage(String usage)
setUsage
in interface ICobolElement
usage
- the Cobol usage to setpublic void setDefaultValue(String defaultValue)
setDefaultValue
in interface ICobolElement
defaultValue
- the Cobol default value to setpublic int getSrceLine()
getSrceLine
in interface ICobolElement
public void setSrceLine(int srceLine)
setSrceLine
in interface ICobolElement
srceLine
- the Line number in the original source file to setpublic boolean isBound()
isBound
in interface ICobolBinding
public String getBindingName()
ICobolBinding
getBindingName
in interface ICobolBinding
public void setBindingName(String bindingName)
bindingName
- the binding element name to setpublic ICobolComplexBinding getParentBinding()
ICobolBinding
getParentBinding
in interface ICobolBinding
public 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 |