Search in sources :

Example 1 with EDBParamName

use of org.talend.metadata.managment.ui.utils.DBConnectionContextUtils.EDBParamName in project tdi-studio-se by Talend.

the class JSONConnectionContextHelper method getConnVariables.

private static Set<String> getConnVariables(ConnectionItem connectionItem, Set<IConnParamName> paramSet) {
    if (connectionItem == null) {
        return null;
    }
    Set<String> varList = new HashSet<String>();
    Iterator<IConnParamName> paramIt = paramSet.iterator();
    while (paramIt.hasNext()) {
        Object param = paramIt.next();
        if (param instanceof EDBParamName) {
            varList.add(((EDBParamName) param).name());
        }
        if (param instanceof EFileParamName) {
            varList.add(((EFileParamName) param).name());
        }
        if (param instanceof EParamName) {
            varList.add(((EParamName) param).name());
        }
    }
    return varList;
}
Also used : EParamName(org.talend.metadata.managment.ui.utils.OtherConnectionContextUtils.EParamName) EDBParamName(org.talend.metadata.managment.ui.utils.DBConnectionContextUtils.EDBParamName) EFileParamName(org.talend.metadata.managment.ui.utils.FileConnectionContextUtils.EFileParamName) IConnParamName(org.talend.metadata.managment.ui.model.IConnParamName) IRepositoryViewObject(org.talend.core.model.repository.IRepositoryViewObject) HashSet(java.util.HashSet)

Aggregations

HashSet (java.util.HashSet)1 IRepositoryViewObject (org.talend.core.model.repository.IRepositoryViewObject)1 IConnParamName (org.talend.metadata.managment.ui.model.IConnParamName)1 EDBParamName (org.talend.metadata.managment.ui.utils.DBConnectionContextUtils.EDBParamName)1 EFileParamName (org.talend.metadata.managment.ui.utils.FileConnectionContextUtils.EFileParamName)1 EParamName (org.talend.metadata.managment.ui.utils.OtherConnectionContextUtils.EParamName)1