Examples of Author

  • org.apache.any23.plugin.Author
    Reference test class for {@link SpeciesExtractor}. @author Davide Palmisano (dpalmisano@gmail.com)
  • org.apache.aries.samples.blog.api.persistence.Author
  • org.apache.bval.jsr303.example.Author
  • org.apache.camel.dataformat.bindy.model.simple.onetomany.Author
  • org.apache.geronimo.test.jpa.entity.Author
    This class represents a blog post Author
  • org.apache.ibatis.domain.blog.Author
  • org.apache.jackrabbit.ocm.testmodel.version.Author
  • org.apache.torque.test.Author
  • org.apache.torque.test.dbobject.Author
    Author table The skeleton for this class was autogenerated by Torque on: [Wed Feb 27 08:39:08 CET 2013] You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.
  • org.apache.wink.jaxrs.test.jaxb.book.Author
  • org.apache.ws.jaxme.test.misc.types.Author
  • org.asciidoctor.ast.Author
  • org.bar.foo.entities.Author
  • org.conserve.objects.Author
    @author Erik Berglund
  • org.dozer.vo.cumulative.Author
    @author Dmitry Buzdin
  • org.hibernate.search.test.performance.model.Author
    @author Tomas Hradec
  • org.jooq.example.db.h2.tables.Author
  • org.jooq.example.db.h2.tables.pojos.Author
  • org.jrest.dao.test.entities.Author
    作者、编著者、编译者 @author Franky
  • org.lexev.bestwisethoughts.client.data.Author
    Represent Author instance of thought @author Alexey Evseev
  • org.objectweb.speedo.pobjects.fetchgroup.Author
    @author Y.Bersihand
  • org.objectweb.speedo.tutorial.pobjects.additional.detach.Author
    @author Y.Bersihand
  • org.ops4j.pax.exam.sample1.model.Author
  • org.ops4j.pax.exam.sample4.model.Author
  • org.ops4j.pax.exam.sample6.model.Author
  • org.purl.sword.atom.Author
    Represents an Author type, as used in ATOM. This class is used as the base class for the different areas of ATOM that represent information about people. This includes the atom:author and atom:contributor elements. @author Neil Taylor
  • org.springframework.data.elasticsearch.entities.Author
    @author Rizwan Idrees @author Mohsin Husen
  • org.wicketstuff.osgi.test.library.model.Author
  • ru.aristar.jnuget.Author
    @author Unlocker
  • timforce.Author

  • Examples of oms3.annotations.Author

                sb.append(" Name to use in a script: <b>" + nameStr + "</b>").append(NEWLINE);
                sb.append("</blockquote>");
                sb.append(NEWLINE);
            }
            // general info: authors
            Author author = moduleClass.getAnnotation(Author.class);
            if (author != null) {
                String authorNameStr = author.name();
                String[] authorNameSplit = authorNameStr.split(",");

                String authorContactStr = author.contact();
                String[] authorContactSplit = authorContactStr.split(",");

                sb.append("<blockquote>");
                sb.append(" Authors ").append(NEWLINE);
                sb.append(HTMLNEWLINE);
    View Full Code Here

    Examples of openbook.domain.Author

            }

            List<Author> allAuthors = new ArrayList<Author>();
            System.err.println("Creating " + nAuthor + " new Authors");
            for (int i = 1; i <= nAuthor; i++) {
                Author author = new Author();
                author.setName("Author-"+i);
                allAuthors.add(author);
                em.persist(author);
            }
            System.err.println("Creating " + nBook + " new Books");
            System.err.println("Linking at most " + nAuthorPerBook + " Authors per Book");
            for (int i = 1; i <= nBook; i++) {
                Book book = new Book(Randomizer.randomString(4,2),
                                     "Book-" + i,
                                     Randomizer.random(priceMin, priceMax),
                                     Randomizer.random(stockMin, stockMax));
                List<Author> authors = Randomizer.selectRandom(allAuthors,
                        Math.max(1, Randomizer.random(nAuthorPerBook)));
                for (Author author : authors) {
                    author.addBook(book);
                    book.addAuthor(author);
                }
                em.persist(book);
            }
           
    View Full Code Here

    Examples of org.apache.any23.plugin.Author

            }
            return sb.toString();
        }

        private void printPluginData(ExtractorPlugin instance, PrintStream ps) {
            final Author authorAnnotation = instance.getClass().getAnnotation(Author.class);
            final ExtractorFactory<?> extractorFactory = instance.getExtractorFactory();
            ps.printf("Plugin class     : %s\n", instance.getClass());
            ps.printf("Plugin author    : %s\n", authorAnnotation == null ? "<unknown>" : authorAnnotation.name());
            ps.printf("Plugin factory   : %s\n", extractorFactory.getClass());
            ps.printf("Plugin mime-types: %s\n", getMimeTypesStr( extractorFactory.getSupportedMIMETypes() ));
        }
    View Full Code Here

    Examples of org.apache.aries.samples.blog.api.persistence.Author

      }
     
      public BlogAuthor getAuthor(String emailAddress)
      {
        if(emailAddress == null) throw new IllegalArgumentException("Email must not be null");
        Author a = persistenceService.getAuthor(emailAddress);
        if (a != null)
        return new BlogAuthorImpl(a);
      else
        return null;
      }
    View Full Code Here

    Examples of org.apache.aries.samples.blog.api.persistence.Author

      }
     
      public BlogAuthor getAuthor(String emailAddress)
      {
        if(emailAddress == null) throw new IllegalArgumentException("Email must not be null");
        Author a = persistenceService.getAuthor(emailAddress);
        if (a != null)
          return new BlogAuthorImpl(a);
        else
          return null;
      }
    View Full Code Here

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

        protected Validator createValidator() {
            return factory.getValidator();
        }

        public void testValidateList() {
            Author author = new Author();
            author.setFirstName("Peter");
            author.setLastName("Ford");
            author.setCompany("IBM");
            author.setAddresses(new ArrayList<Address>());

            Address adr1, adr2, adr3;
            adr1 = new Address();
            adr1.setCountry(new Country());
            adr1.getCountry().setName("Germany");
            adr1.setCity("Bonn");
            adr1.setAddressline1("Strasse 1");

            adr2 = new Address();
            adr2.setCountry(new Country());
            adr2.getCountry().setName("Cuba");
            adr2.setCity("Habana");
            adr2.setAddressline1("Calle 2");

            adr3 = new Address();
            adr3.setCountry(new Country());
            adr3.getCountry().setName("USA");
            adr3.setCity("San Francisco");
            adr3.setAddressline1("Street 3");

            author.getAddresses().add(adr1);
            author.getAddresses().add(adr2);
            author.getAddresses().add(adr3);

            Set<ConstraintViolation<Author>> violations;

            violations = validator.validate(author);
            assertEquals(0, violations.size());
    View Full Code Here

    Examples of org.apache.camel.dataformat.bindy.model.simple.onetomany.Author

        }

        public List<Map<String, Object>> generateModel() {
            Map<String, Object> modelObjects = new HashMap<String, Object>();

            Author author;
            Book book;

            Map<String, Object> model = new HashMap<String, Object>();
            List<Book> books = new ArrayList<Book>();
            // List<Reference> references = new ArrayList<Reference>();
            // List<Editor> editors = new ArrayList<Editor>();

            author = new Author();
            author.setFirstName("Charles");
            author.setLastName("Moulliard");
            author.setAge("43");

            // 1st Book
            book = new Book();
            book.setTitle("Camel in Action 1");
            book.setYear("2010");

            books.add(book);

            // 2nd book
            book = new Book();
            book.setTitle("Camel in Action 2");
            book.setYear("2012");

            books.add(book);

            // 3rd book
            book = new Book();
            book.setTitle("Camel in Action 3");
            book.setYear("2013");
            books.add(book);

            // 4th book
            book = new Book();
            book.setTitle("Camel in Action 4");
            book.setYear(null);
            books.add(book);

            // Add books to author
            author.setBooks(books);

            model.put(author.getClass().getName(), author);

            models.add(model);

            return models;
        }
    View Full Code Here

    Examples of org.apache.geronimo.test.jpa.entity.Author

            BlogPersistenceService service = getBlogPersistenceService();
           
            service.createAuthor("john@gmail.com", new Date(), "John Doe", "JDoe", "Test Name");
            service.createBlogPost("john@gmail.com", "First Blog Entry", "Hello. This is my first blog entry", null);
           
            Author author = service.getAuthor("john@gmail.com");
           
            PrintWriter out = response.getWriter();
            out.println("<html><head><title>OSGi JPA Test Application</title></head></html>");
            out.println("<body><h1>");
            out.println("Blog entry successfully created: " + author.getDisplayName());
            out.println("</h1></body></html>");
        }
    View Full Code Here

    Examples of org.apache.ibatis.domain.blog.Author

      @Test
      public void shouldInsertNewAuthorWithBeforeAutoKey() throws Exception {
       
        Executor executor = createExecutor(new JdbcTransaction(ds, null, false));
        try {
          Author author = new Author(-1, "someone", "******", "someone@apache.org", null, Section.NEWS);
          MappedStatement insertStatement = ExecutorTestHelper.prepareInsertAuthorMappedStatementWithBeforeAutoKey(config);
          MappedStatement selectStatement = ExecutorTestHelper.prepareSelectOneAuthorMappedStatement(config);
          int rows = executor.update(insertStatement, author);
          assertTrue(rows > 0 || rows == BatchExecutor.BATCH_UPDATE_RETURN_VALUE);
          if (rows == BatchExecutor.BATCH_UPDATE_RETURN_VALUE) {
            executor.flushStatements();
          }
          assertEquals(123456, author.getId());
          if (author.getId() != BatchExecutor.BATCH_UPDATE_RETURN_VALUE) {
            List<Author> authors = executor.query(selectStatement, author.getId(), RowBounds.DEFAULT, Executor.NO_RESULT_HANDLER);
            executor.rollback(true);
            assertEquals(1, authors.size());
            assertEquals(author.toString(), authors.get(0).toString());
            assertTrue(author.getId() >= 10000);
          }
        } finally {
          executor.rollback(true);
          executor.close(false);
        }
    View Full Code Here

    Examples of org.apache.jackrabbit.ocm.testmodel.version.Author

          pressRelease.setContent("content v1");
          pressRelease.setPath("/pressrelease1");
          pressRelease.setPubDate(new Date());
          pressRelease.setTitle("Title");

          Author author = new Author();
          author.setName("John");
          pressRelease.setAuthor(author);
          ocm.insert(pressRelease);
          ocm.save();

          pressRelease.setContent("content v2");
    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.