Esempio n. 1
0
 @Override
 public void validate(PropertyReference expr) throws InvalidExpressionException {
   if (expr.size() != 1 || !getData().containsKey(expr.getRoot())) {
     throw new InvalidExpressionException(
         "No property on $Locale for key: " + expr, expr.getLocation());
   }
 }
Esempio n. 2
0
 @Override
 public Object getValue(PropertyReference expr) {
   return getData().get(expr.getRoot());
 }