Examples of Library


Examples of ncrossley.itunes.Library

  private static Library getITunesLibrary()
  {
    File libraryFile = ITunesUtils.getITunesLibrary();
    if(libraryFile != null)
    {
      Library library = new Library(libraryFile);
      return library;
    }
    return null;
  }
View Full Code Here

Examples of net.feed_the_beast.launcher.json.versions.Library

    public static Library loadLibrary (String libJsonObject) throws JsonSyntaxException, JsonIOException {
        return GSON.fromJson(libJsonObject, Library.class);
    }

    public static Update getUpdate (String name, String url) throws IOException {
        Library l = new Library();
        l.name = name;
        return GSON.fromJson(IOUtils.toString(new URL(url + l.getPath())), Update.class);
    }
View Full Code Here

Examples of net.feed_the_beast.launcher.json.versions.Library

        String fgVsn = forgeArtifact.getVersion();
        int vsn_ = Integer.parseInt(fgVsn.substring(StringUtils.lastIndexOf(fgVsn, ".") + 1));
        if (vsn_ >= Settings.getSettings().getMinJava8HackVsn() && vsn_ <= Settings.getSettings().getMaxJava8HackVsn()) {
            Logger.logDebug("adding legacyjavafixer to modpack as it is needed for this forge version to make java 8 function correctly");
            String json = "{\"url\":\"http://ftb.cursecdn.com/FTB2/maven/\",\"name\":\"net.minecraftforge.lex:legacyjavafixer:1.0\",\"checksums\":[\"a11b502bef19f49bfc199722b94da5f3d7b470a8\"]}";
            Library l = JsonFactory.loadLibrary(json);//TODO this should be pulled from the same json file
            try {//TODO we should have a method to grab a single library file to a location
                DownloadUtils.downloadToFile(installBase + "/minecraft/mods/legacyjavafixer-1.0.jar", l.getUrl() + l.getPath());
            } catch (Exception e) {
                Logger.logError("Error grabbing legacy java wrapper library", e);
            }
        }
    }
View Full Code Here

Examples of net.rim.tumbler.file.Library

     
      _extensionJSFiles.addAll(getJSRelativePaths(_curPaths));
     
      // extension can be found in lookup table for sure, otherwise
      // exception would have been thrown in ExtensionDependencyManager.resolve
      Library lib = _extensionLookupTable.get(extensionId).getLibrary();
      _extensionClasses.add(lib.getEntryClass());
    }
  }
View Full Code Here

Examples of noop.model.Library

  }

  @Test public void shouldRunTheHelloWorldProgram() throws Exception {
    UUID uuid = UUID.randomUUID();   
    Project project = new Project("Hello World", "com.example", "");
    project.addLibrary(new Library(uuid, "hello")).addFunction(new Function("go"));
    controller.addProject(new NewProjectOperation(project));
    repository.save(project);
    StandardLibraryBuilder stdLib = new StandardLibraryBuilder().build(controller);
    repository.save(stdLib.noop);
View Full Code Here

Examples of org.apache.axis2.json.adb.xsd.Library

     * @return getLibraryResponse
     */
    public GetLibraryResponse getLibrary(GetLibrary getLibrary) {
        String name = getLibrary.getArgs0();

        Library library = new Library();
        library.setAdmin(getPerson(name));
        library.setBooks(getBooks("Jhon", 5));
        library.setStaff(50);

        GetLibraryResponse response = new GetLibraryResponse();
        response.set_return(library);
        return response;
    }
View Full Code Here

Examples of org.apache.bval.jsr303.example.Library

        assertNotNull(TestUtils.getViolation(violations, "addresses[1].city"));
        assertNotNull(TestUtils.getViolation(violations, "addresses[2].addressline1"));
    }

    public void testValidateMapAndRedefinedDefaultGroupOnNonRootBean() {
        Library lib = new Library();
        lib.setLibraryName("Leibnitz Bibliothek");

        Book book1, book2, book3;

        book1 = new Book();
        book1.setTitle("History of time");
        book1.setSubtitle("How it really works");
        Author hawking = new Author();
        hawking.setFirstName("Stephen");
        hawking.setFirstName("Hawking");
        hawking.setAddresses(new ArrayList<Address>(1));
        Address adr = new Address();
        adr.setAddressline1("Street 1");
        adr.setCity("London");
        adr.setCountry(new Country());
        adr.getCountry().setName("England");
        hawking.getAddresses().add(adr);
        book1.setAuthor(hawking);

        book2 = new Book();
        Author castro = new Author();
        castro.setFirstName("Fidel");
        castro.setLastName("Castro Ruz");
        book2.setAuthor(castro);
        book2.setTitle("My life");

        book3 = new Book();
        book3.setTitle("World best jokes");
        Author someone = new Author();
        someone.setFirstName("John");
        someone.setLastName("Do");
        book3.setAuthor(someone);

        lib.getTaggedBooks().put("science", book1);
        lib.getTaggedBooks().put("politics", book2);
        lib.getTaggedBooks().put("humor", book3);

        Set<ConstraintViolation<Library>> violations;

        violations = validator.validate(lib);
        assertTrue(violations.isEmpty());
View Full Code Here

Examples of org.apache.cocoon.forms.binding.library.Library

            JXPathBindingBuilderBase bindingBuilder = getBindingBuilder(bindingType);

            boolean flag = false;
            if (context.getLocalLibrary() == null) {
                // FIXME Use newLibrary()?
                Library lib = new Library(libraryManager, getBuilderAssistant());
                lib.enableLogging(getMyLogger());
                context.setLocalLibrary(lib);
                lib.setSourceURI(LocationAttributes.getURI(configElm));
                flag = true;
            }

            if (context.getLocalLibrary() != null && configElm.hasAttribute("extends")) {
                try {
View Full Code Here

Examples of org.apache.cocoon.forms.formmodel.library.Library

        if (context.getLocalLibrary() == null) {
            throw new FormsException("Import statement seen and context is empty.",
                                     DomHelper.getLocationObject(widgetElement));
        }

        Library lib = context.getLocalLibrary();
        String prefix = DomHelper.getAttribute(widgetElement, PREFIX_ATTRIBUTE);
        String uri = DomHelper.getAttribute(widgetElement, URI_ATTRIBUTE);

        if (!lib.includeAs(prefix, uri)) {
            throw new FormsException("Import statement did not succeed (probably used ':' in the prefix?).",
                                     DomHelper.getLocationObject(widgetElement));
        }

        return null;
View Full Code Here

Examples of org.apache.myfaces.commons.resourcehandler.config.element.Library

    {
        String mapping = getResourceHandlerSupport().getMapping() != null ?
                getResourceHandlerSupport().getMapping() :
                "" ;

        Library library = getExtendedDefaultResourceHandlerSupport().getMyFacesResourcesConfig().
            getLibrary(getLibraryName());
           
        if (library.getRequestPath() == null)
        {
            String localePrefix = getResourceMeta().getLocalePrefix() != null
                    getResourceMeta().getLocalePrefix() : _expectedLocalePrefix;
            if (localePrefix == null)
            {
                // calculate current localePrefix (could be different from the one requested, e.g. on locale change)
                localePrefix = getRequestLocalePrefix();
            }
            String path = null;
            if (!getResourceHandlerSupport().isExtensionMapping())
            {
                path = mapping + getResourceHandlerSupport().getResourceIdentifier() + "/$/" +
                                localePrefix + '/' +
                                getLibraryName() + '/' +
                                getResourceName();
            }
            else
            {
                path = getResourceHandlerSupport().getResourceIdentifier() + "/$/" +
                localePrefix + '/' +
                getLibraryName() + '/' +
                getResourceName() + mapping;
            }
           
            FacesContext facesContext = FacesContext.getCurrentInstance();
            return facesContext.getApplication().getViewHandler().getResourceURL(facesContext, path);
        }
        else
        {
            //Redirect url assume prefix mapping.
            FacesContext facesContext = FacesContext.getCurrentInstance();
            return facesContext.getApplication().getViewHandler().getResourceURL(facesContext,
                    calculateRequestPath(facesContext, library.getRequestPath()));
        }
    }
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.