|
||||||||||
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 com.legstar.coxb.common.CArrayComplexBinding
public abstract class CArrayComplexBinding
This class is a superclass of all arrays of complex element types implementing binding between a java type and cobol.
Constructor Summary | |
---|---|
CArrayComplexBinding(String bindingName,
String jaxbName,
Class<?> jaxbType,
CobolElement cobolAnnotations,
ICobolComplexBinding parentBinding,
ICobolComplexBinding complexItemBinding)
Constructor for a cobol element to java binding. |
Method Summary | |
---|---|
void |
accept(CobolElementVisitor cev)
Visitor pattern accept method. |
void |
addJaxbPropertyValue(int index)
Deprecated. |
void |
addPropertyValue(int index)
This method is meant to be overridden. |
int |
calcItemByteLength()
The method calculates the exact host byte length for one individual item of this Cobol binding. |
void |
createJaxbObject()
Deprecated. |
void |
createValueObject()
This method is meant to be overridden. |
ICobolComplexBinding |
getComplexItemBinding()
Returns the complex binding used for items of this array. |
String |
getValueObjectClassName()
Complex bindings can be bound to JAXB objects or arbitrary POJOs jointly referred to as value objects. |
String |
getValueObjectsFactoryClassName()
Optional factory class name used to create bound value objects. |
void |
setComplexItemBinding(ICobolComplexBinding complexItemBinding)
|
void |
setValueObjectClassName(String valueObjectClassName)
|
void |
setValueObjectsFactoryClassName(String valueObjectsFactoryClassName)
|
Methods inherited from class com.legstar.coxb.common.CArrayBinding |
---|
calcByteLength, getByteLength, getCurrentOccurs, getItemByteLength, isVariableSize, setItemByteLength |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.legstar.coxb.ICobolArrayComplexBinding |
---|
getObjectList, setItemValue, setObjectList |
Methods inherited from interface com.legstar.coxb.ICobolArrayBinding |
---|
getCurrentOccurs, getItemByteLength, setItemByteLength |
Methods inherited from interface com.legstar.coxb.ICobolBinding |
---|
calcByteLength, getBindingName, getJaxbName, getJaxbType, getObjectValue, getParentBinding, isBound, isSet, setObjectValue |
Constructor Detail |
---|
public CArrayComplexBinding(String bindingName, String jaxbName, Class<?> jaxbType, CobolElement cobolAnnotations, ICobolComplexBinding parentBinding, ICobolComplexBinding complexItemBinding)
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 anycomplexItemBinding
- a binding element for array itemsMethod Detail |
---|
public void accept(CobolElementVisitor cev) throws HostException
accept
in interface ICobolBinding
cev
- The visitor
HostException
- visitor request cannot be acceptedpublic int calcItemByteLength()
calcItemByteLength
in interface ICobolArrayBinding
public ICobolComplexBinding getComplexItemBinding()
ICobolArrayComplexBinding
getComplexItemBinding
in interface ICobolArrayComplexBinding
public void setComplexItemBinding(ICobolComplexBinding complexItemBinding)
complexItemBinding
- the item Complex Binding to setpublic void createValueObject() throws HostException
createJaxbObject
Requests array to create a complex value array.
createValueObject
in interface ICobolArrayComplexBinding
HostException
- if initialization failspublic void addPropertyValue(int index) throws HostException
addJaxbPropertyValue
Request complex binding item to add a value to a bound value object
of the List type. The value is taken at index index in this binding
array of values.
addPropertyValue
in interface ICobolArrayComplexBinding
index
- item index in this array.
HostException
- if bound object values cannot be setpublic void createJaxbObject() throws HostException
createJaxbObject
in interface ICobolArrayComplexBinding
HostException
- if initialization failspublic void addJaxbPropertyValue(int index) throws HostException
addJaxbPropertyValue
in interface ICobolArrayComplexBinding
index
- item index in this array.
HostException
- if bound object values cannot be setpublic String getValueObjectClassName()
getValueObjectClassName
in interface ICobolArrayComplexBinding
public void setValueObjectClassName(String valueObjectClassName)
setValueObjectClassName
in interface ICobolArrayComplexBinding
valueObjectClassName
- the fully qualified bound value object class
name to setpublic String getValueObjectsFactoryClassName()
getValueObjectsFactoryClassName
in interface ICobolArrayComplexBinding
public void setValueObjectsFactoryClassName(String valueObjectsFactoryClassName)
setValueObjectsFactoryClassName
in interface ICobolArrayComplexBinding
valueObjectsFactoryClassName
- the factory class name used to create
bound value objects to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |