Package com.google.gxp.compiler.parser

Examples of com.google.gxp.compiler.parser.ParsedAttribute


    return new SourcePosition("TEST" + counter, counter, counter);
  }

  public ParsedAttribute parsedAttr(
      Namespace namespace, String name, String value) {
    return new ParsedAttribute(pos(), namespace, name, value,
                               "[" + namespace.getUri() + "]:" + name);
  }
View Full Code Here


  public void testAttr() throws Exception {
    Namespace namespace = NullNamespace.INSTANCE;
    String name = "foo";
    String value = "bar";

    ParsedAttribute result = parsedAttr(namespace, name, value);

    assertEquals(namespace, result.getNamespace());
    assertEquals(name, result.getName());
    assertEquals(value, result.getValue());
  }
View Full Code Here

    return GXP_NS.createElement(parseAlerts, pos(children), "<gxp:param>",
                                "param", attrs, list(children));
  }

  private ParsedAttribute attr(String name, String value) {
    return new ParsedAttribute(pos(), NullNamespace.INSTANCE, name, value,
                               name);
  }
View Full Code Here

    assertEquals(0, root.getParameters().size());
    assertEmptyValue(root.getContent());
  }

  public void testTemplateWithBadAttr() throws Exception {
    ParsedAttribute spaz = attr("spaz", "I don't exist!");
    ParsedElement template = template(list(attr("name", "pkg.Test"), spaz));
    expectedAlerts.add(new UnknownAttributeError(template, spaz));
    IfExpandedTree parseTree = tree(template);
    ReparentedTree output = reparent(parseTree);
    assertOneRoot(output);
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.parser.ParsedAttribute

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.