Examples of element()


Examples of jdsl.graph.api.Edge.element()

    if (path_ != null) {
      itinerary_.removeAll();
      for( ; path_.hasNext() ; ) {
  Edge e = path_.nextEdge();
  FlightSpecs fs = (FlightSpecs)e.element();

  itinerary_.add(fs.label());
      }
      path_.reset();
    } else {
View Full Code Here

Examples of net.sf.json.JSONArray.element()

        JSONObject juser = createUser(user);
        JSONArray jroles = new JSONArray();

        juser.element("roles", jroles);
        for (Role role : user.getRoles()) {
            jroles.element(createRole(role, moduleController));
        }

        return juser;
    }
View Full Code Here

Examples of net.sf.json.JSONObject.element()

                    String receivedLabel = UtilProperties.getMessage(resource, label, locale);
                    if (UtilValidate.isNotEmpty(receivedLabel)) {
                        resourceLabelList.add(receivedLabel);
                    }
                }
                jsonUiLabel.element(resource, resourceLabelList);
            }
        }

        writeJSONtoResponse(jsonUiLabel, request.getMethod(), response);
        return "success";
View Full Code Here

Examples of net.thucydides.core.pages.integration.StaticSitePage.element()

        StaticSitePage page = getFirefoxPage();
        page.getDriver().navigate().refresh();

        assertThat(page.firstName.getAttribute("value"), is("<enter first name>"));

        page.element(page.firstName).typeAndEnter("joe");

        assertThat(page.firstName.getAttribute("value"), is("joe"));
    }

    @Test
View Full Code Here

Examples of nz.ac.waikato.jdsl.graph.api.Edge.element()

    // does not respect the direction of the edge!
    EdgeIterator iter = graph.edges();
    while (iter.hasNext()) {
      Edge e = iter.nextEdge();
      if (graph.origin(e) == s2 && graph.destination(e) == s0)
        Assert.assertEquals("action0", e.element());
      else if (graph.origin(e) == s2 && graph.destination(e) == s1)
        Assert.assertEquals("action1", e.element());
      else if (graph.origin(e) == s0 && graph.destination(e) == s2)
        Assert.assertEquals("action2", e.element());
      else
View Full Code Here

Examples of nz.ac.waikato.jdsl.graph.api.Vertex.element()

    Assert.assertNotNull(s0);
    Assert.assertNotNull(s1);
    Assert.assertNotNull(s2);
    Assert.assertEquals("0", s0.element());
    Assert.assertEquals("1", s1.element());
    Assert.assertEquals("2", s2.element());
    // we must iterate through the edges, because graph.aConnectingEdge
    // does not respect the direction of the edge!
    EdgeIterator iter = graph.edges();
    while (iter.hasNext()) {
      Edge e = iter.nextEdge();
View Full Code Here

Examples of org.apache.isis.objectstore.xml.internal.data.ObjectDataVector.element()

    private List<ObjectAdapter> getInstances(final ObjectData patternData, final PersistenceQueryBuiltIn persistenceQuery) {
        final ObjectDataVector data = dataManager.getInstances(patternData);
        final List<ObjectAdapter> instances = Lists.newArrayList();
       
        for (int i = 0; i < data.size(); i++) {
            final ObjectData instanceData = data.element(i);
            if(LOG.isDebugEnabled()) {
                LOG.debug("instance data " + instanceData);
            }

            final RootOid oid = instanceData.getRootOid();
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.xml.internal.data.ObjectDataVector.element()

        final ObjectDataVector data = dataManager.getInstances(patternData);
        final ObjectAdapter[] instances = new ObjectAdapter[data.size()];
        int count = 0;

        for (int i = 0; i < data.size(); i++) {
            final ObjectData instanceData = data.element(i);
            LOG.debug("instance data " + instanceData);

            final SerialOid oid = instanceData.getOid();

            final ObjectSpecification spec = specFor(instanceData);
View Full Code Here

Examples of org.apache.tapestry.MarkupWriter.element()

    @Test
    public void begin_render_writes_input_tag() throws Exception
    {
        MarkupWriter writer = createMarkupWriter();
        writer.element("form");
        FormSupport formSupport = mockFormSupport();

        formSupport.setEncodingType(Upload.MULTIPART_ENCTYPE);

        replay();
View Full Code Here

Examples of org.apache.tapestry.internal.services.MarkupWriterImpl.element()

        train_peekRequired(env, ValidationTracker.class, tracker);
        train_inError(tracker, field, true);

        replay();

        Element e = writer.element("label", "accesskey", "f");

        ValidationDecorator decorator = new DefaultValidationDecorator(env, null, null);

        decorator.insideLabel(field, e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.