Examples of child()


Examples of com.badlogic.gdx.files.FileHandle.child()

    while (tokenizer.hasMoreTokens()) {
      String token = tokenizer.nextToken();
      if (token.equals("..")) {
        child = child.parent();
      } else {
        child = child.child(token);
      }
    }

    return child;
  }
View Full Code Here

Examples of com.bradmcevoy.http.CollectionResource.child()

    private Resource find( CollectionResource wrappedResource, Path p ) {
        Resource r = wrappedResource;
        for( String s : p.getParts() ) {
            if( r instanceof CollectionResource ) {
                CollectionResource col = (CollectionResource) r;
                r = col.child( s );
                if( r == null ) {
                    log.trace( "not found: " + s + " in path: " + p );
                    return null;
                }
            } else {
View Full Code Here

Examples of com.bradmcevoy.http.FolderResource.child()

          logger.info("resource:" + resource + ":" + (resource instanceof FolderResource));
       
        if(resource instanceof FolderResource)
        {
          FolderResource folderResource = (FolderResource)resource;
          resource = folderResource.child(part);
          if(logger.isInfoEnabled())
            logger.info("resource child:" + resource);
        }
        else if(resource instanceof FileResource)
        {
View Full Code Here

Examples of com.calclab.emite.base.xml.XMLBuilder.child()

    if (!Strings.isNullOrEmpty(title)) {
      builder.childText("title", title);
    }
   
    for (final String instruction : instructions) {
      builder.child("instructions").text(instruction);
    }
   
    if (reported != null) {
      reported.build(builder);
    }
View Full Code Here

Examples of com.dotcms.repackage.org.jsoup.nodes.Element.child()

            Element splitBody = splitBodies.get( i );
            // gets the identifier of the body div
            String idHtml = splitBody.attr( ID_ATTRIBUTE );
            String id = idHtml.substring( idHtml.indexOf( SPLIT_BODY_ID_PREFIX ) + SPLIT_BODY_ID_PREFIX.length() );
            String layoutType = splitBody.child( 0 ).attr( ID_ATTRIBUTE );

            //Create a template row
            TemplateLayoutRow rowLayout = new TemplateLayoutRow();
            rowLayout.setIdentifier( Integer.parseInt( id ) );
            rowLayout.setId( "select_splitBody" );
View Full Code Here

Examples of com.ettrema.httpclient.Folder.child()

      final HttpServletRequest req=ServletTestRunner.localRequest.get();
        Host hh=new Host(req.getServerName(),"/webdav/autopub",req.getServerPort(),"admin@dotcms.com","admin",null,null);
       
        Folder demo=(Folder)hh.child("demo.dotcms.com");
        Folder wt=(Folder)((Folder)demo.child("wt")).child(ff.getName());
        File wtFile=(File)wt.child("legacy.txt");
        final String newContent="new File content";
        wtFile.setContent(new ByteArrayInputStream(newContent.getBytes()), (long)newContent.getBytes().length);
       
        file = APILocator.getFileAPI().getWorkingFileById(file.getIdentifier(), user, false);
       
View Full Code Here

Examples of com.ettrema.httpclient.Host.child()

    final HttpServletRequest req=ServletTestRunner.localRequest.get();
    Host host=new Host(req.getServerName(),"/webdav/autopub",req.getServerPort(),"admin@dotcms.com","admin",null,null);
   
   
    // this is mostly capturing https://github.com/dotCMS/dotCMS/issues/2815
    Folder demo=(Folder)host.child("demo.dotcms.com");
    Folder webdavtest=demo.createFolder("webdavtest_"+System.currentTimeMillis());
    Folder ff1=webdavtest.createFolder("ff1");
    Folder ff2=webdavtest.createFolder("ff2");
     
    java.io.File tmpDir1=new java.io.File(
View Full Code Here

Examples of com.firebase.client.Firebase.child()

              //System.out.println("Test: "+snapshot.getValue());
              String str = (String) snapshot.getValue();
              List<String> followersList = Arrays.asList(str.split(","));
              Firebase users = new Firebase("https://signal-app.firebaseio.com/users");
              for(String user:followersList){
                users.child(user).child("inbox").child(messageKey).setValue(message);
              }
             
            }
         
           
View Full Code Here

Examples of com.github.tomakehurst.wiremock.common.ServletContextFileSource.child()

        boolean verboseLoggingEnabled = Boolean.parseBoolean(
                fromNullable(sce.getServletContext().getInitParameter("verboseLoggingEnabled"))
                        .or("true"));

        JsonFileMappingsLoader defaultMappingsLoader = new JsonFileMappingsLoader(fileSource.child("mappings"));
        MappingsSaver mappingsSaver = new NotImplementedMappingsSaver();
        WireMockApp wireMockApp = new WireMockApp(
                new NotImplementedRequestDelayControl(),
                false,
                defaultMappingsLoader,
View Full Code Here

Examples of com.ociweb.xml.StartTagWAX.child()

            "http://www.ociweb.com/xml/date.xsd");

        pw.comment("This is one of my favorite CDs!");
        stw = pw.start("cd");
        stw.attr("year", 2007);
        ElementWAX ew = stw.child("title", "Worrisome Heart");
        ew = stw.child("date", "purchaseDate", "4/3/2008");

        ew.close(); // terminates all unterminated elements
    }
}
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.