|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICobolComplexBinding
This interface groups methods that are common to complex elements that are not arrays.
| Method Summary | |
|---|---|
void |
createJaxbObject()
Deprecated. Requests complex binding to create an instance of its bound jaxb object. Since bindings can now be bound to arbitrary value objects, use method createValueObject
instead of this one. |
void |
createValueObject()
Requests complex binding to create an instance of its bound object. |
List<ICobolBinding> |
getChildrenList()
Request a list of children from this complex binding. |
ICobolNumericBinding |
getCounter(String cobolName)
Get a specific counter either from us or one of our ancestors. |
int |
getCounterValue(String cobolName)
Get the value of a specific counter either from us or one of our ancestors. |
int |
getDynamicCountersCount()
|
Object |
getObjectFactory()
|
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 |
setChildrenValues()
Requests complex binding to set its children values from bound Jaxb objects values. |
void |
setCounterValue(String cobolName,
int count)
Set the value of a specific counter either in us or in one of our ancestors. |
void |
setJaxbPropertyValue(int index)
Deprecated. Request complex binding to set a property of the bound Jaxb object to the value of a corresponding child. Since bindings can now be bound to arbitrary value objects, use method setPropertyValue
instead of this one. |
void |
setObjectFactory(Object objectFactory)
|
void |
setPropertyValue(int index)
Request complex binding to set a property of the bound value object to the value of a corresponding child. |
void |
setValueObjectClassName(String valueObjectClassName)
|
void |
setValueObjectsFactoryClassName(String valueObjectsFactoryClassName)
|
void |
storeCounter(ICobolBinding counter)
Deprecated. This is kept for backward compatibility but should not be used. Use storeCounter(final ICobolNumericBinding counter) instead which
is strongly typed (counters must be numeric). |
void |
storeCounter(ICobolNumericBinding counter)
Store a new counter as a child of the root complex element. |
| Methods inherited from interface com.legstar.coxb.ICobolBinding |
|---|
accept, calcByteLength, getBindingName, getJaxbName, getJaxbType, getObjectValue, getParentBinding, isBound, isSet, setObjectValue |
| Method Detail |
|---|
void createJaxbObject()
throws HostException
createValueObject
instead of this one.
HostException - if initialization fails
void createValueObject()
throws HostException
HostException - if initialization fails
void setChildrenValues()
throws HostException
HostException - if reading from bound object values fails
void setJaxbPropertyValue(int index)
throws HostException
setPropertyValue
instead of this one.
index - the position of the child in the complex element child list
HostException - if bound object values cannot be set
void setPropertyValue(int index)
throws HostException
index - the position of the child in the complex element child list
HostException - if bound object values cannot be set
List<ICobolBinding> getChildrenList()
throws HostException
HostException - if list cannot be createdObject getObjectFactory()
void setObjectFactory(Object objectFactory)
objectFactory - the java object factory for bound objects creationint getDynamicCountersCount()
void storeCounter(ICobolNumericBinding counter)
counter - the counter to add to children listvoid storeCounter(ICobolBinding counter)
storeCounter(final ICobolNumericBinding counter) instead which
is strongly typed (counters must be numeric).
counter - the counter to add to children list
void setCounterValue(String cobolName,
int count)
throws HostException
cobolName - cobol name of the countercount - the array or list size
HostException - if counter cannot be updated
ICobolNumericBinding getCounter(String cobolName)
throws HostException
cobolName - cobol name of the counter
HostException - if counter cannot be queried
int getCounterValue(String cobolName)
throws HostException
cobolName - cobol name of the counter
HostException - if counter cannot be queriedString getValueObjectClassName()
void setValueObjectClassName(String valueObjectClassName)
valueObjectClassName - the fully qualified bound value object class
name to setString getValueObjectsFactoryClassName()
void setValueObjectsFactoryClassName(String valueObjectsFactoryClassName)
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 | |||||||||