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

Method Summary
 ICobolBinding choose(ICobolChoiceBinding choice, Hashtable<String,Object> variablesMap, CobolElementVisitor visitor)
          Determines which alternative should be chosen.
 

Method Detail

choose

ICobolBinding choose(ICobolChoiceBinding choice,
                     Hashtable<String,Object> variablesMap,
                     CobolElementVisitor visitor)
                     throws HostException
Determines which alternative should be chosen.

Parameters:
choice - the redefined element
variablesMap - variables which values might help with the choice
visitor - the current visitor
Returns:
the alternative chosen
Throws:
HostException - if error found while looking for alternatives


Copyright © 2015 LegSem. All Rights Reserved.