All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.legstar.base.visitor.FromCobolChoiceStrategy Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package com.legstar.base.visitor;

import java.util.Map;
import java.util.Set;

import com.legstar.base.type.CobolType;
import com.legstar.base.type.composite.CobolChoiceType;

public interface FromCobolChoiceStrategy {

    /**
     * Select one alternative in choices.
     * 
     * @param choiceFieldName the choice field name in the parent structure.
     * @param choiceType the choice field type
     * @param variables contains all custom variables values collected before
     *            reaching the choice
     * @param hostData the host data
     * @param start the start position within the host data for the entire
     *            parent structure
     * @return a selected alternative or null if unable to select one
     */
    CobolType choose(String choiceFieldName, CobolChoiceType choiceType,
            Map < String, Object > variables, byte[] hostData, int start);

    /**
     * Provides a list of variable names whose values are to be collected before
     * the choice is reached. These values are needed to make the alternative
     * choice decision.
     * 
     * @return list of variable names whose values are to be collected
     */
    Set < String > getVariableNames();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy