Examples of Library


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

                    return;
                }
               
                if ("library".equals(localName))
                {
                    Library l = new Library();
                    l.setName(libraryName);
                    l.setRedirectName(redirectName);
                    l.setRequestPath(requestPath);
                    config.addLibrary(l);
                }
                else if ("library-name".equals(localName))
                {
                    libraryName = captureBuffer();
View Full Code Here

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

    }

    public String resolveLibraryName(String libraryName)
    {
        String finalLibraryName = libraryName;
        Library library = null;
        boolean resolved = false;
        do
        {
            library = getResourceHandlerSupport().getMyFacesResourcesConfig().getLibrary(finalLibraryName);
            if (library != null)
            {
                if (library.getRedirectName() != null && library.getRedirectName().length() > 0)
                {
                    finalLibraryName = library.getRedirectName();
                }
                else
                {
                    //No redirect, so this is the real instance
                    resolved = true;
View Full Code Here

Examples of org.apache.openjpa.persistence.enhance.identity.Library

            // expected
        }

        String bookName = "Harry Potter";
        String libName = "Library Name";
        Library entity = new Library();
        entity.setName(libName);
        Book book = new Book();
        book.setName(bookName);
        entity.addBook(book);

        EntityManager em = emf.createEntityManager();
        em.getTransaction().begin();
        em.persist(entity);
        em.getTransaction().commit();
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.registry.api.model.Library

        // The ontology that imports the whole network is created in-memory, therefore it has no physical IRI
        // unless it is borrowed from the supplied parent.
        bindPhysicalOrigin(parentSrc != null ? parentSrc.getOrigin() : null);

        Library lib = registryManager.getLibrary(libraryID);
        log.debug("Got library {}, expected {}", lib, libraryID);
        // If the manager is set to
        if (lib != null) {
            Set<OWLOntology> subtrees = lib.getOntologies(OWLOntology.class);
            this.ontologies = subtrees;

            for (OWLOntology o : subtrees)
                log.debug("\tGot ontology {}", o);
View Full Code Here

Examples of org.cfeclipse.snipex.Library

                    allFiles.addAll(getFlattenedElements(childDirs[i]));
                }
            }
            //return getFlattenedElements
        } else if(inputElement instanceof SnipEx || inputElement instanceof Library) {
          Library lib = ((Library)inputElement);
          Iterator it = lib.getSnippets().iterator();
         
          while( it.hasNext() ) {
            Snippet snip = (Snippet)it.next();
            if( snip.isTemplate() ) {
              allFiles.add(snip);
View Full Code Here

Examples of org.cfeclipse.snippet.snipex.Library

            SnipEx sx = (SnipEx)element;
            //text.setText(sx.toString());
            preview.setText(sx.getSource().toString());
           
          } else if(element instanceof Library) {
            Library lib = (Library)element;
            //text.setText(lib.getName());
            preview.setText(lib.getDescription());
           
          } else if(element instanceof Snippet) {
            Snippet snip = (Snippet)element;
            text.setText(snip.getDescription());
            preview.setText(snip.getStartText()+snip.getEndText());
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.Library

                    // TODO
            }
        }
        else if(element instanceof Library) {
            logger.debug("element is a library");
            Library p = (Library)element;

            switch(columnIndex) {
                case 0:
                    logger.debug("column 0");
                    return p.getName();

                case 1:
                    logger.debug("column 1");

                    // TODO
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.Library

     */
    public Library createLibrary(boolean empty) {

        logger.info("Creating new library.");

        Library l = (Library)appContext.getBean("library");

        if(!empty) {
            // TODO
        }

View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.Library

     */
    public Library createLibrary(Library template) {

        logger.info("Creating new library from template: " + template);

        Library l = (Library)appContext.getBean("library");

        l.setId(template.getId());
        l.setCampaign(template.getCampaign());
        l.setName(template.getName());
        l.setDescription(template.getDescription());
        l.setEnabled(template.isEnabled());
        l.setCodeLanguage(template.getCodeLanguage());
        l.setCode(template.getCode());

        logger.info("Library created: " + l);
        return l;
    }
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.Library

            Set<Library> libraries = new HashSet<Library>();
            logger.debug("libraries: " + so.getLibraries().size());
            for(String libraryId : so.getLibraries()) {
                logger.trace("libraryId: " + libraryId);

                Library library = libraryManager.getLibrary(libraryId);
                logger.trace("library: " + library);

                libraries.add(library);
            }
            c.setLibraries(libraries);
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.