Examples of elements()


Examples of org.apache.tools.ant.taskdefs.optional.junit.BatchTest.elements()

            allTests = new ArrayList();
            Iterator i = batchTests.iterator();
            while(i.hasNext())
            {
                BatchTest test = (BatchTest) i.next();
                Enumeration e = test.elements();
                while(e.hasMoreElements())
                {
                    JUnitTest jtest = (JUnitTest) e.nextElement();
                    allTests.add(jtest.getName());
                }
View Full Code Here

Examples of org.apache.turbine.util.security.RoleSet.elements()

                // put the Set into roles(group)
                roles.put(group, groupRoles);
                // collect all permissoins in this group
                PermissionSet groupPermissions = new PermissionSet();
                // foreach role in Set
                Iterator rolesIterator = groupRoles.elements();
                while(rolesIterator.hasNext())
                {
                    Role role = (Role)rolesIterator.next();
                    // get permissions of the role
                    PermissionSet rolePermissions = PermissionPeer.retrieveSet(role);
View Full Code Here

Examples of org.camunda.bpm.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.dom4j.Element.elements()

                        new BitRasterImpl(bs, length)));

            } else if (EventOrderConstraint.class.getSimpleName().equals(element.getName())) {
                UnsupportedOperationException excFirstEl = new UnsupportedOperationException(
                        "First element in eventOrderConstraint must be the event!" + element.getPath());
                for (Object eocObj : element.elements()) {
                    Element eocEl = (Element) eocObj;
                    if ("event".equals(eocEl.getName())) {
                        Event ev = getObject(getRef(eocEl), Event.class);
                        constraint = new EventOrderConstraint(ev);
                    } else if ("beforeEvent".equals(eocEl.getName())) {
View Full Code Here

Examples of org.dom4j.Element.elements()

        Element childElement = getChildElement();
        if (childElement == null) {
            return false;
        }
        // Delete extensions in the child element
        List extensions = childElement.elements(QName.get(name, namespace));
        if (!extensions.isEmpty()) {
            childElement.remove((Element) extensions.get(0));
            return true;
        }
        return false;
View Full Code Here

Examples of org.eclipse.osgi.framework.util.KeyedHashSet.elements()

    boolean subPackages = (options & BundleWiring.LISTRESOURCES_RECURSE) != 0;
    List<String> packages = new ArrayList<String>();
    // search imported package names
    KeyedHashSet importSources = getImportedSources(null);
    if (importSources != null) {
      KeyedElement[] imports = importSources.elements();
      for (KeyedElement keyedElement : imports) {
        String id = ((PackageSource) keyedElement).getId();
        if (id.equals(pkgName) || (subPackages && isSubPackage(pkgName, id)))
          packages.add(id);
      }
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.ArrayCreation.elements()

      public void manipulate(Program program) {
        ExpressionStatement statement = (ExpressionStatement) program
            .statements().get(0);
        ArrayCreation expression = (ArrayCreation) statement
            .getExpression();
        /* ArrayElement arrayElement = */expression.elements()
            .remove(0);
      }
    });
  }

 
View Full Code Here

Examples of org.exolab.castor.mapping.CollectionHandler.elements()

                    }

                }
                if (processCollection) {
                    CollectionHandler colHandler = getCollectionHandler(type);
                    Enumeration enumeration = colHandler.elements(obj);
                    while (enumeration.hasMoreElements()) {
                        Object item = enumeration.nextElement();
                        if (item != null) {
                            marshal(item, elemDescriptor, handler, myState);
                        }
View Full Code Here

Examples of org.htmlparser.Parser.elements()

      // *****************************************
      // Iterate images from HTML and replace CIDs

      NodeList oCollectionList = new NodeList();
      TagNameFilter oImgFilter = new TagNameFilter ("IMG");
      for (NodeIterator e = oPrsr.elements(); e.hasMoreNodes();)
        e.nextNode().collectInto(oCollectionList, oImgFilter);

      final int nImgs = oCollectionList.size();

      if (DebugFile.trace) DebugFile.writeln("NodeList.size() = " + String.valueOf(nImgs));
View Full Code Here

Examples of org.htmlparser.tags.BodyTag.elements()

                    // closing body tag, it won't get parsed. If
                    // someone puts it outside the body tag, it
                    // is probably a mistake. Plus it's bad to
                    // have important content after the closing
                    // body tag. Peter Lin 10-9-03
                    e= body.elements();
                }
                else if (node instanceof BaseHrefTag)
                {
                    BaseHrefTag baseHref= (BaseHrefTag)node;
                    try
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.