Search in sources :

Example 1 with DataModelCmdParam

use of org.talend.mdm.repository.core.command.param.DataModelCmdParam in project tmdm-studio-se by Talend.

the class ModelImpactAnalyseService method convertToParameters.

public static Map<IRepositoryViewObject, ICommandParameter> convertToParameters(Map<IRepositoryViewObject, ImpactOperation> impactResult) {
    Map<IRepositoryViewObject, ICommandParameter> paramMap = new HashMap<IRepositoryViewObject, ICommandParameter>();
    for (IRepositoryViewObject viewObj : impactResult.keySet()) {
        ImpactOperation impactOperation = impactResult.get(viewObj);
        ICommandParameter param = new DataModelCmdParam(impactOperation);
        paramMap.put(viewObj, param);
    }
    return paramMap;
}
Also used : HashMap(java.util.HashMap) DataModelCmdParam(org.talend.mdm.repository.core.command.param.DataModelCmdParam) IRepositoryViewObject(org.talend.core.model.repository.IRepositoryViewObject) ICommandParameter(org.talend.mdm.repository.core.command.param.ICommandParameter)

Aggregations

HashMap (java.util.HashMap)1 IRepositoryViewObject (org.talend.core.model.repository.IRepositoryViewObject)1 DataModelCmdParam (org.talend.mdm.repository.core.command.param.DataModelCmdParam)1 ICommandParameter (org.talend.mdm.repository.core.command.param.ICommandParameter)1