Package org.jboss.fresh.naming

Examples of org.jboss.fresh.naming.CompositeName


     
      if(fc.isDirectory()) head.append("D");
      else head.append(" ");
     
      if(fc.isNew()) {
        CompositeName absname = root.absolutize(fname);
        head.append("+                 ").append(absname);
       
        if(cb!=null) cb.fileAdded(absname, fc);
       
        System.out.println(head);
        //System.out.print("+");
        //if(fc.isMissing())
        //  System.out.print("-");

        //if(fc.isDirectory()) { 
        //  System.out.println("D");
        //} else {
        //  System.out.println();
        //}

      } else if(fc.isMissing()) {
        //System.out.print("-");
        CompositeName absname = root.absolutize(fname);
        head.append("-                 ").append(absname);
       
        if(cb!=null) cb.fileRemoved(absname, fc);
       
        System.out.println(head);
        //if(fc.isDirectory()) { 
        //  System.out.println("D");
        //} else {
        //  System.out.println();
        //}

      } else {

        //if(fc.isDirectory())
        //  System.out.print("D");

        CompositeName absname = root.absolutize(fname);

        head.append(fc.isContentDiff() ? " C " : "   ");

        int mod=fc.compareLastModified();
        //if(mod<0) System.out.print(" < lastModified ");
View Full Code Here


        v.add("my");
        v.add("test");
        v.add("hierarchy");
        v.add("hi");

        CompositeName nm = new CompositeName(v, true);
        c.put(nm, "Test1");


        v = new LinkedList();
        v.add("my");
        v.add("test");
        v.add("hi2");


        CompositeName nm2 = new CompositeName(v, true);
        c.put(nm2, "Test2");


        v = new LinkedList();
        v.add("my");
        v.add("test");
        v.add("hi3");


        CompositeName nm3 = new CompositeName(v, true);
        c.put(nm3, "Test3");


        v = new LinkedList();
        v.add("my");
        v.add("test");
        v.add("hi2");

        CompositeName nm4 = new CompositeName(v, true);

       /*
        System.out.println("Get " + nm + " : " + c.get(nm));
        System.out.println("Get " + nm2 + " : " + c.get(nm2));
        System.out.println("Get " + nm3 + " : " + c.get(nm3));
View Full Code Here

TOP

Related Classes of org.jboss.fresh.naming.CompositeName

Copyright © 2018 www.massapicom. 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.