Examples of findChild()


Examples of org.jboss.virtual.spi.VirtualFileHandler.findChild()

   {
      VFSContext context = getVFSContext("complex");
      VirtualFileHandler root = context.getRoot();
      try
      {
         root.findChild("doesnotexist");
         fail("Should not be here!");
      }
      catch (Throwable t)
      {
         checkThrowableTemp(IOException.class, t);
View Full Code Here

Examples of org.jboss.wsf.common.ResourceLoaderAdapter.findChild()

   {
      //Getting the classloader for UnifiedVirtualFile which lives in SPI -> external jar (from the maven repo)
      ClassLoader cl = UnifiedVirtualFile.class.getClassLoader();
      ResourceLoaderAdapter ula = new ResourceLoaderAdapter(cl);
     
      UnifiedVirtualFile deployment = ula.findChild("org/jboss/wsf/spi/deployment/");
      assertNotNull(deployment);
      assertTrue(deployment.toURL().toExternalForm().contains("jar!")); //check we got a URL to a jar
      assertEquals("deployment/", deployment.getName());
      List<UnifiedVirtualFile> children = deployment.getChildren();
      assertNotNull(children);
View Full Code Here

Examples of org.jboss.wsf.common.URLLoaderAdapter.findChild()

      ClassLoader cl = UnifiedVirtualFile.class.getClassLoader();
      URL rootURL = getJarUrl(cl.getResource("org/jboss/wsf/spi/"));
      assertNotNull(rootURL);
      URLLoaderAdapter ula = new URLLoaderAdapter(rootURL);
     
      UnifiedVirtualFile deployment = ula.findChild("org/jboss/wsf/spi/deployment/");
      assertNotNull(deployment);
      assertTrue(deployment.toURL().toExternalForm().contains("jar!")); //check we got a URL to a jar
      assertEquals("deployment/", deployment.getName());
      List<UnifiedVirtualFile> children = deployment.getChildren();
      assertNotNull(children);
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile.findChild()

            for (String wsdlLocation : map.keySet()) {
                try {
                    final ResourceRoot resourceRoot = getWsdlResourceRoot(unit, wsdlLocation);
                    if (resourceRoot == null) continue;
                    final UnifiedVirtualFile uvf = new VirtualFileAdaptor(resourceRoot.getRoot());
                    URL url = uvf.findChild(wsdlLocation).toURL();
                    SOAPAddressWSDLParser parser = new SOAPAddressWSDLParser(url);
                    for (AnnotationInstance ai : map.get(wsdlLocation)) {
                        String port = ai.value(PORT_NAME).asString();
                        String service = ai.value(SERVICE_NAME).asString();
                        AnnotationValue targetNS = ai.value(TARGET_NAMESPACE);
View Full Code Here

Examples of org.openide.nodes.Children.findChild()

    private void jButtonNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNewActionPerformed
        try {
            String stringElementName = elementCreator.createElement().getName();
            Node nodeRoot = manager.getExploredContext();
            Children children = nodeRoot.getChildren();
            Node node = children.findChild( stringElementName );

            if ( node != null ) {
                updateSelection( new Node[] { node } );
            }
        }
View Full Code Here

Examples of tigase.xml.Element.findChild()

      add(MESSAGE_ID+jid, Arrays.asList(msg_history));
    } else {
      msg_history = msg_history_l.get(0);
    }
    long current_secs = (System.currentTimeMillis()/1000) - start_time;
    msg_history.findChild("/iq/chat").addChild(new Element(direction,
        new Element[] {body},
        new String[] {"secs"},
        new String[] {""+current_secs}));
  }
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.