com.legstar.coxb
Interface ICobolUnmarshalChoiceStrategy
public interface ICobolUnmarshalChoiceStrategy
This interface is used for custom choice selection at unmarshaling time.
Unmarshaling means host data needs to be converted to Java types.
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.