/** * Returns the values of the field whose variable matches the requested variable. * * @param variable the variable to match. * @return the values of the field whose variable matches the requested variable. */ public List<CharSequence> getValues(String variable) { for (Field field : getFields()) { if (variable.equalsIgnoreCase(field.getVariable())) { return field.getValues(); } } return null; }