Package com.google.gxp.compiler.alerts.common

Examples of com.google.gxp.compiler.alerts.common.UnknownAttributeError


        List<Attribute> result = Lists.newArrayList();
        for (Attribute attr : attrs) {
          AttributeValidator attrValidator =
              elementValidator.getAttributeValidator(attr.getName());
          if (attrValidator == null) {
            alertSink.add(new UnknownAttributeError(forNode, attr));
          } else {
            Expression attrValue = attr.getValue();
            if (attrValue instanceof StringConstant) {
              String value = ((StringConstant) attrValue).evaluate();
              if (!attrValidator.isValidValue(value)) {
View Full Code Here


                                             "<gxp:eval>", "<gxp:eval>", 2, 1);
  }

  public void testShortEval() throws Exception {
    compile("<expr:x java:expr='x' />");
    assertAlert(new UnknownAttributeError("<expr:x>", pos(2,1), "'java:expr' attribute"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

    assertAlert(new MissingExpressionError(pos(2, 1), "'iterator' attribute", "Scala"));
    assertAlert(new LoopRequiresIterableInJavaScriptError(pos(2, 1), "<gxp:loop>"));
    assertNoUnexpectedAlerts();

    compile("<gxp:loop var='v' type='t' js:iterator='e' />");
    assertAlert(new UnknownAttributeError("<gxp:loop>", pos(2, 1), "'js:iterator' attribute"));
    assertNoUnexpectedAlerts();

    // both tests
    compile("<gxp:loop var='v' type='t' java:iterator='e' scala:iterator='e' js:iterable='e' />");
    assertNoUnexpectedAlerts();
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.alerts.common.UnknownAttributeError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.