Package ugh.dl

Examples of ugh.dl.VirtualFileGroup


      for (ProjectFileGroup pfg : myFilegroups) {
        // check if source files exists
        if (pfg.getFolder() != null && pfg.getFolder().length() > 0) {
          File folder = new File(myProzess.getMethodFromName(pfg.getFolder()));
          if (folder != null && folder.exists() && folder.list().length > 0) {
            VirtualFileGroup v = new VirtualFileGroup();
            v.setName(pfg.getName());
            v.setPathToFiles(vp.replace(pfg.getPath()));
            v.setMimetype(pfg.getMimetype());
            v.setFileSuffix(pfg.getSuffix());
            mm.getDigitalDocument().getFileSet().addVirtualFileGroup(v);
          }
        } else {

          VirtualFileGroup v = new VirtualFileGroup();
          v.setName(pfg.getName());
          v.setPathToFiles(vp.replace(pfg.getPath()));
          v.setMimetype(pfg.getMimetype());
          v.setFileSuffix(pfg.getSuffix());
          mm.getDigitalDocument().getFileSet().addVirtualFileGroup(v);
        }
      }
    }
View Full Code Here


        for (ProjectFileGroup pfg : myFilegroups) {
          // check if source files exists
          if (pfg.getFolder() != null && pfg.getFolder().length() > 0) {
            File folder = new File(this.fi.getMethodFromName(pfg.getFolder()));
            if (folder != null && folder.exists() && folder.list().length > 0) {
              VirtualFileGroup v = new VirtualFileGroup();
              v.setName(pfg.getName());
              v.setPathToFiles(vp.replace(pfg.getPath()));
              v.setMimetype(pfg.getMimetype());
              v.setFileSuffix(pfg.getSuffix());
              mm.getDigitalDocument().getFileSet().addVirtualFileGroup(v);
            }
          } else {

            VirtualFileGroup v = new VirtualFileGroup();
            v.setName(pfg.getName());
            v.setPathToFiles(vp.replace(pfg.getPath()));
            v.setMimetype(pfg.getMimetype());
            v.setFileSuffix(pfg.getSuffix());
            mm.getDigitalDocument().getFileSet().addVirtualFileGroup(v);
          }
        }
      }
View Full Code Here

TOP

Related Classes of ugh.dl.VirtualFileGroup

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.