|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.legstar.coxb.common.CBinding
com.legstar.coxb.common.CArrayBinding
public abstract class CArrayBinding
This generic class implements behavior common to all array bindings.
| Constructor Summary | |
|---|---|
CArrayBinding(String bindingName,
String jaxbName,
Class<?> jaxbType,
CobolElement cobolAnnotations,
ICobolComplexBinding parentBinding)
Constructor for a cobol element to java binding. |
|
| Method Summary | |
|---|---|
int |
calcByteLength()
The method calculates the exact host byte length for this Cobol binding. |
int |
getByteLength()
Pre version 1.2.4 generated simple arrays did not support the ItemByteLength attribute. |
int |
getCurrentOccurs()
Fixed size arrays return the maximum number of occurrences while variable size arrays dynamically compute their dimension. |
int |
getItemByteLength()
In COBOL, arrays are collections of items with a fixed size. |
boolean |
isVariableSize()
This test cannot be done at construction time because the depending on property can be added later. |
void |
setItemByteLength(int itemByteLength)
Set the individual item host byte size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.legstar.coxb.ICobolArrayBinding |
|---|
calcItemByteLength |
| Methods inherited from interface com.legstar.coxb.ICobolBinding |
|---|
accept, getBindingName, getJaxbName, getJaxbType, getObjectValue, getParentBinding, isBound, isSet, setObjectValue |
| Constructor Detail |
|---|
public CArrayBinding(String bindingName,
String jaxbName,
Class<?> jaxbType,
CobolElement cobolAnnotations,
ICobolComplexBinding parentBinding)
bindingName - 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 if any| Method Detail |
|---|
public int getCurrentOccurs()
throws HostException
getCurrentOccurs in interface ICobolArrayBindingHostException - if count cannot be computedpublic int calcByteLength()
calcByteLength in interface ICobolBindingpublic boolean isVariableSize()
public int getByteLength()
getByteLength in interface ICobolElementgetByteLength in class CBindingpublic int getItemByteLength()
getItemByteLength in interface ICobolArrayBindingpublic void setItemByteLength(int itemByteLength)
setItemByteLength in interface ICobolArrayBindingitemByteLength - Cobol array individual item length in bytes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||