Package org.openquark.cal.services.ResourcePath

Examples of org.openquark.cal.services.ResourcePath.Folder


    /**
     * Constructor for a ProgramResourcePathMapper.
     * @param machineType the program machine type.
     */
    public ProgramResourcePathMapper(MachineType machineType) {
        baseResourceFolder = new Folder(new String[] { machineType.toString().toLowerCase() + "_runtime" });
    }
View Full Code Here


                public List<ResourceName> getModuleResourceNameList(ModuleName moduleName) {
                    return Collections.emptyList();
                }
               
                public Set<ModuleName> getModuleNames() {
                    Folder baseResourceFolder = getPathMapper().getBaseResourceFolder();
                   
                    Set<String> subDirectoryPaths = getJarFileManager().getAllDescendentFolderPathsInFolder(baseResourceFolder.getPathStringMinusSlash());
                   
                    List<String> subDirectoryNames = new ArrayList<String>();
                   
                    for (final String subDirectoryPath : subDirectoryPaths) {
                       
                        ResourcePath.Folder subFolder = new ResourcePath.Folder(subDirectoryPath.split("/"));
                        String subFolderName = subFolder.getName();
                       
                        // we only add to the list of subdirectory names if the folder is a direct child of the base resource folder
                        if (subFolder.equals(baseResourceFolder.extendFolder(subFolderName))) {
                            subDirectoryNames.add(subFolderName);
                        }
                    }
                   
                    Set<ModuleName> moduleNames = new HashSet<ModuleName>();
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public List<ResourceName> getMetadataResourceNamesForAllLocales(CALFeatureName featureName) {
        Folder folder = ((MetadataPathMapper)getPathMapper()).getFeatureFolder(featureName);
        return getFilteredFolderResourceNames(folder, metadataStoreHelper.makeFeatureNameFilter(featureName));
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public List<ResourceName> getMetadataResourceNamesForAllLocales(CALFeatureName featureName) {
        Folder folder = ((MetadataPathMapper)getPathMapper()).getFeatureFolder(featureName);
        return getFilteredFolderResourceNames(folder, metadataStoreHelper.makeFeatureNameFilter(featureName));
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public List<ResourceName> getMetadataResourceNamesForAllLocales(CALFeatureName featureName) {
        Folder folder = ((MetadataPathMapper)getPathMapper()).getFeatureFolder(featureName);
        return getFilteredFolderResourceNames(folder, metadataStoreHelper.makeFeatureNameFilter(featureName));
    }
View Full Code Here

TOP

Related Classes of org.openquark.cal.services.ResourcePath.Folder

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.