|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 anyMethod Detail |
---|
public int getCurrentOccurs() throws HostException
getCurrentOccurs
in interface ICobolArrayBinding
HostException
- if count cannot be computedpublic int calcByteLength()
calcByteLength
in interface ICobolBinding
public boolean isVariableSize()
public int getByteLength()
getByteLength
in interface ICobolElement
getByteLength
in class CBinding
public int getItemByteLength()
getItemByteLength
in interface ICobolArrayBinding
public void setItemByteLength(int itemByteLength)
setItemByteLength
in interface ICobolArrayBinding
itemByteLength
- Cobol array individual item length in bytes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |