|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICobolChoiceBinding
This interface groups methods that are common to choice elements.
| Method Summary | |
|---|---|
void |
addAlternative(ICobolBinding ce)
When alternatives are discovered dynamically, this method allows other classes to participate in the alternative list buildup. |
ICobolBinding |
getAlternativeByCobolName(String cobolName)
Retrieves an alternative identified by its cobol field name. |
ICobolBinding |
getAlternativeByName(String name)
Retrieves an alternative identified by its name. |
List<ICobolBinding> |
getAlternativesList()
Returns the current list of alternatives for this choice element. |
ICobolMarshalChoiceStrategy |
getMarshalChoiceStrategy()
Gets an instance of a class providing additional logic to select an alternative within a choice element at marshaling (Java to Host) time. |
ICobolComplexBinding |
getParentBinding()
A choice element always belongs to a complex element (roots can never be choices). |
Object |
getParentJaxbObject()
Deprecated. Retrieves the parent jaxb object. Choice bindings are not directly bound to a jaxb object themselves but they are always children of a complex binding. Since bindings can now be bound to arbitrary value objects, use method getParentValueObject
instead of this one. |
Object |
getParentValueObject()
Retrieves the parent's value object. |
ICobolUnmarshalChoiceStrategy |
getUnmarshalChoiceStrategy()
Gets an instance of a class providing additional logic to select an alternative within a choice element at unmarshaling (Host to Java) time. |
void |
setAlternativesValues()
Requests choice binding to set its alternatives values from bound value objects. |
void |
setJaxbPropertyValue(int index)
Deprecated. Request choice binding to set to set a property of the bound Jaxb object to the value of a corresponding alternative. child value. Since bindings can now be bound to arbitrary value objects, use method setPropertyValue
instead of this one. |
void |
setMarshalChoiceStrategy(ICobolMarshalChoiceStrategy strategy)
Sets a instance of a class providing additional logic to select an alternative within a choice element at marshaling (Java to Host) time. |
void |
setPropertyValue(int index)
Request choice binding to set to set a property of the bound value object to the value of a corresponding alternative. |
void |
setUnmarshalChoiceStrategy(ICobolUnmarshalChoiceStrategy strategy)
Sets a instance of a class providing additional logic to select an alternative within a choice element at unmarshaling (Host to Java) time. |
| Methods inherited from interface com.legstar.coxb.ICobolBinding |
|---|
accept, calcByteLength, getBindingName, getJaxbName, getJaxbType, getObjectValue, isBound, isSet, setObjectValue |
| Method Detail |
|---|
void setAlternativesValues()
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 alternatives list
HostException - if bound object values cannot be set
void setPropertyValue(int index)
throws HostException
index - the position of the child in the alternatives list
HostException - if bound object values cannot be set
List<ICobolBinding> getAlternativesList()
throws HostException
HostException - if list cannot be createdICobolBinding getAlternativeByName(String name)
name - the alternative name
ICobolBinding getAlternativeByCobolName(String cobolName)
cobolName - the field name
void addAlternative(ICobolBinding ce)
ce - redefined or redefining cobol element descriptionICobolComplexBinding getParentBinding()
getParentBinding in interface ICobolBinding
Object getParentJaxbObject()
throws HostException
getParentValueObject
instead of this one.
HostException - if parent jaxb object cannot be retrieved
Object getParentValueObject()
throws HostException
HostException - if parent's value object cannot be retrievedvoid setMarshalChoiceStrategy(ICobolMarshalChoiceStrategy strategy)
strategy - a choice strategy implementation
ICobolMarshalChoiceStrategy getMarshalChoiceStrategy()
throws HostException
HostException - if strategy cannot be loadedvoid setUnmarshalChoiceStrategy(ICobolUnmarshalChoiceStrategy strategy)
strategy - a choice strategy implementation
ICobolUnmarshalChoiceStrategy getUnmarshalChoiceStrategy()
throws HostException
HostException - if strategy cannot be loaded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||