package org.ovirt.engine.core.searchbackend;
import org.ovirt.engine.core.compat.*;
public class ClusterConditionFieldAutoCompleter extends BaseConditionFieldAutoCompleter {
public ClusterConditionFieldAutoCompleter() {
// Building the basic vervs Dict
mVerbs.put("NAME", "NAME");
mVerbs.put("DESCRIPTION", "DESCRIPTION");
mVerbs.put("INITIALIZED", "INITIALIZED");
// Building the autoCompletion Dict
buildCompletions();
// Building the types dict
getTypeDictionary().put("NAME", String.class);
getTypeDictionary().put("DESCRIPTION", String.class);
getTypeDictionary().put("INITIALIZED", Boolean.class);
// building the ColumnName Dict
mColumnNameDict.put("NAME", "name");
mColumnNameDict.put("DESCRIPTION", "description");
// mColumnNameDict.put("INITIALIZED", "is_initialized");
// Building the validation dict
buildBasicValidationTable();
}
@Override
public IAutoCompleter getFieldRelationshipAutoCompleter(String fieldName) {
IAutoCompleter retval;
// C# TO JAVA CONVERTER NOTE: The following 'switch' operated on a
// string member and was converted to Java 'if-else' logic:
// switch (fieldName)
{
retval = new StringConditionRelationAutoCompleter();
}
return retval;
}
@Override
public IConditionValueAutoCompleter getFieldValueAutoCompleter(String fieldName) {
IConditionValueAutoCompleter retval = null;
// C# TO JAVA CONVERTER NOTE: The following 'switch' operated on a
// string member and was converted to Java 'if-else' logic:
// switch (fieldName)
// ORIGINAL LINE: case "INITIALIZED":
if (StringHelper.EqOp(fieldName, "INITIALIZED")) {
retval = new BitValueAutoCompleter();
} else {
}
return retval;
}
}