com.legstar.coxb
Interface ICobolMarshalChoiceStrategy
public interface ICobolMarshalChoiceStrategy
This interface is used for custom choice selection at marshaling time.
Marshaling means Java types needs to be converted to host data.
When multiple alternatives are available (REDEFINES), custom code can provide
the logic to determine which alternative should be chosen.
- Author:
- Fady Moussallam
choose
ICobolBinding choose(ICobolChoiceBinding choice,
Hashtable<String,Object> variablesMap,
CobolElementVisitor visitor)
throws HostException
- Determines which alternative should be chosen.
- Parameters:
choice
- the redefined elementvariablesMap
- variables which values might help with the choicevisitor
- the current visitor
- Returns:
- the alternative chosen
- Throws:
HostException
- if error found while looking for alternatives
Copyright © 2015 LegSem. All Rights Reserved.