See 5) from above
*/
private static AWBinding formatterBinding (String bindingName, String formatterString)
{
if (formatterString.length() < 2) {
throw new AWGenericException("invalid formatter binding: " + formatterString);
}
char firstChar = formatterString.charAt(0);
if (firstChar == '$') {
return fieldBinding(bindingName, formatterString.substring(1), null);
}
else if (firstChar == '^') {
// we allow ^ without $
return fieldBinding(bindingName, formatterString, null);
}
else {
throw new AWGenericException("invalid formatter binding: " + formatterString);
}
}