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;
}
Aggregations