Exemplo n.º 1
0
  public static List<ViewSpec> makeSpecListThree() throws Exception {
    List<ViewSpec> specifications = new LinkedList<ViewSpec>();

    ViewSpec specOne =
        SupportViewSpecFactory.makeSpec(
            "win", "length", new Class[] {Integer.class}, new String[] {"1000"});
    ViewSpec specTwo =
        SupportViewSpecFactory.makeSpec(
            "std", "unique", new Class[] {String.class}, new String[] {"theString"});

    specifications.add(specOne);
    specifications.add(specTwo);

    return specifications;
  }
Exemplo n.º 2
0
  public static List<ViewSpec> makeSpecListFour() throws Exception {
    List<ViewSpec> specifications = new LinkedList<ViewSpec>();

    ViewSpec specOne =
        SupportViewSpecFactory.makeSpec(
            "win", "length", new Class[] {Integer.class}, new String[] {"1000"});
    ViewSpec specTwo =
        SupportViewSpecFactory.makeSpec(
            "stat", "uni", new Class[] {String.class}, new String[] {"intPrimitive"});
    ViewSpec specThree = SupportViewSpecFactory.makeSpec("std", "size", null, null);

    specifications.add(specOne);
    specifications.add(specTwo);
    specifications.add(specThree);

    return specifications;
  }