Package org.jdesktop.wonderland.tools.wfs.delegate

Examples of org.jdesktop.wonderland.tools.wfs.delegate.DirectoryDelegate


         */
        this.pathName = parentDirectory.getPathName() + cellName + WFS.CELL_FILE_SUFFIX;
       
        /* Create the cellDirectory object if the directory exists */
        if (this.delegate.cellDirectoryExists() == true) {
            DirectoryDelegate dirDelegate = this.delegate.createDirectoryDelegate();
            this.cellDirectory = new WFSCellDirectory(this.wfsRef.get(), this, dirDelegate);
        }
    }
View Full Code Here


       
        /*
         * Simply create the object -- the actual directory does not get
         * created until a write() happens.
         */
        DirectoryDelegate dirDelegate = this.delegate.createDirectoryDelegate();
        this.cellDirectory = new WFSCellDirectory(this.wfsRef.get(), this, dirDelegate);
        return this.cellDirectory;
    }
View Full Code Here

         * Because the cell directory is created only at object construction
         * time, we need to check whether it still exists, or whether it newly
         * exists.
         */
        if (this.cellDirectory == null && this.delegate.cellDirectoryExists() == true) {
            DirectoryDelegate dirDelegate = this.delegate.createDirectoryDelegate();
            this.cellDirectory = new WFSCellDirectory(this.wfsRef.get(), this, dirDelegate);
        }
        else if (this.cellDirectory != null && this.delegate.cellDirectoryExists() == false) {
            this.cellDirectory.setInvalid();
            this.cellDirectory = null;
View Full Code Here

       
        /* The path to the valid WFS directory inside of the JAR file */
        this.wfsPath = pathPart + "/" + wfsdir;
       
        /* Create the top level directory consisting of the base WFS directory */
        DirectoryDelegate delegate = new ArchiveDirectoryDelegate(this.manifest, this.wfsPath);
        this.directory = new WFSRootDirectory(this, delegate);
       
        /*
         * Read the version.xml file from disk and instantiate a WFSVersion
         * class, if it exists
View Full Code Here

     */
    public MemoryWFS(String name) {
        super(name);
       
        /* Create the proper delegate for the root directory */
        DirectoryDelegate delegate = new MemoryDirectoryDelegate();
        this.directory = new WFSRootDirectory(this, delegate);
    }
View Full Code Here

                throw new IOException("Unable to create WFS: " + root.getCanonicalPath());
            }
        }
       
        /* Create the root directory */
        DirectoryDelegate delegate = new FileDirectoryDelegate(this.root);
        this.directory = new WFSRootDirectory(this, delegate);
       
        /* At this point, if we are created a new WFS, then simply return */
        if (create == true) {
            return;
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.tools.wfs.delegate.DirectoryDelegate

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.