Examples of elements()


Examples of org.activiti.engine.impl.util.xml.Element.elements()

   * during DI parsing.
   */
  public void parseCollaboration() {
    Element collaboration = rootElement.element("collaboration");
    if (collaboration != null) {
      for (Element participant : collaboration.elements("participant")) {
        String processRef = participant.attribute("processRef");
        if (processRef != null) {
          ProcessDefinitionImpl procDef = getProcessDefinition(processRef);
          if(procDef != null) {
            // Set participant process on the procDef, so it can get rendered later on if needed
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.GenericDescriptorList.elements()

    long heapId = td.getHeapConglomerateId();
    lockTableForDDL(tc, heapId, true);

    /* Drop the triggers */
    GenericDescriptorList tdl = dd.getTriggerDescriptors(td);
    Enumeration descs = tdl.elements();
    while (descs.hasMoreElements())
    {
      TriggerDescriptor trd = (TriggerDescriptor) descs.nextElement();
            trd.drop(lcc);
    }
View Full Code Here

Examples of org.apache.derby.iapi.store.access.BackingStoreHashtable.elements()

                false);         // don't include row locations

        // make sure the expected result set is the same as the actual result
        // set.

        Enumeration e = result_set.elements();

        while (e.hasMoreElements())
        {
            Object   obj;
            DataValueDescriptor[] row = null;
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.collections.modify.CollectionFacet.elements()

            if (LOG.isDebugEnabled()) {
                LOG.debug("includeField(Pl, Vec, Str): 1->M: " + log("collection.size", "" + facet.size(collection)));
            }
            boolean allFieldsNavigated = true;
            final Enumeration elements = facet.elements(collection);
            while (elements.hasMoreElements()) {
                final ObjectAdapter referencedObject = (ObjectAdapter) elements.nextElement();
                final boolean appendedXml = appendXmlThenIncludeRemaining(fieldPlace, referencedObject, names, annotation);
                if (LOG.isDebugEnabled()) {
                    LOG.debug("includeField(Pl, Vec, Str): 1->M: + invoked appendXmlThenIncludeRemaining for " + log("referencedObj", referencedObject) + andlog("returned", "" + appendedXml));
View Full Code Here

Examples of org.apache.isis.core.metamodel.spec.ObjectList.elements()

        // the proxy should return one instance, which will be the dummy object
        // created by the encoder's
        // restore call
        final ObjectList objects = (ObjectList) instances.getObject();
        assertEquals(1, objects.size());
        assertEquals(dummyObjectAdapter, objects.elements().nextElement());
    }

    @Test
    public void testResolveImmediatelyIgnoredWhenAlreadyResolving() throws Exception {
View Full Code Here

Examples of org.apache.isis.objectstore.xml.internal.data.ObjectData.elements()

        final ObjectData read = (ObjectData) manager.loadData(data.getRootOid());
        assertEquals(data.getRootOid(), read.getRootOid());
        assertEquals(data.getObjectSpecId(), read.getObjectSpecId());

        final ListOfRootOid c = read.elements("Members");
        assertNull(c);
    }

    @Test
    public void testInsertObjectWithOneToManyAssociations() throws ObjectPersistenceException {
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.xml.internal.data.ObjectData.elements()

        final ObjectData read = (ObjectData) manager.loadData(data.getOid());
        assertEquals(data.getOid(), read.getOid());
        assertEquals(data.getTypeName(), read.getTypeName());

        final ReferenceVector c = read.elements("Members");
        assertNull(c);
    }

    public void testInsertObjectWithOneToManyAssociations() throws ObjectPersistenceException {
        final ObjectData data = createData(Team.class, 99, new FileVersion("user", 13));
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.collection.CollectionContent.elements()

    }

    private CalendarCellContent[] createContentForCells() {
        final CalendarCellContent[] cellContents = new CalendarCellContent[rows * columns];
        final CollectionContent content = (CollectionContent) getContent();
        for (final ObjectAdapter element : content.elements()) {
            final Date date = dateFor(element);
            if (date == null) {
                continue;
            }
            final int period = cellLayout.getPeriodFor(date);
View Full Code Here

Examples of org.apache.mahout.math.list.IntArrayList.elements()

      if (value == 0) {
        DoubleArrayList valueList = values[i];
        indexList.remove(k);
        valueList.remove(k);
        int s = indexList.size();
        if (s > 2 && s * 3 < indexList.elements().length) {
          indexList.setSize(s * 3 / 2);
          indexList.trimToSize();
          indexList.setSize(s);

          valueList.setSize(s * 3 / 2);
View Full Code Here

Examples of org.apache.tomcat.util.XMLTree.elements()

   
    private void processSecurityConstraints() {
  for (Enumeration e = this.config.elements(Constants.SECURITY_CONSTRAINT); e.hasMoreElements();) {
      XMLTree scTree = (XMLTree) e.nextElement();
      SecurityConstraint sc = (SecurityConstraint) this.factory.createDescriptor(SecurityConstraint.class);
      for (Enumeration ee = scTree.elements(Constants.WEB_RESOURCE_COLLECTION); ee.hasMoreElements();) {
    XMLTree wrcTree = (XMLTree) ee.nextElement();
    WebResourceCollection wrc = (WebResourceCollection) this.factory.createDescriptor(WebResourceCollection.class);
    wrc.setName(wrcTree.getFirstElement(Constants.WEB_RESOURCE_NAME).getValue());
    if (wrcTree.getFirstElement(Constants.DESCRIPTION) != null) {
        wrc.setDescription(wrcTree.getFirstElement(Constants.DESCRIPTION).getValue());
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.