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

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.