Package com.hascode.tutorial.xbeam.projection

Examples of com.hascode.tutorial.xbeam.projection.Books


import com.hascode.tutorial.xbeam.projection.Books;

public class SimpleXmlFileParsingExample {
  public static void main(final String[] args) throws IOException {
    Books bookProjection = new XBProjector().io().fromURLAnnotation(Books.class);
    bookProjection.getBooks().forEach(book -> {
      System.out.println("book -> title: " + book.getTitle() + " and authors: ");
      System.out.println(book.getAuthors().stream().map(a -> {
        return a.getFirstname() + " " + a.getLastname();
      }).collect(Collectors.joining(", ")));
    });
View Full Code Here

TOP

Related Classes of com.hascode.tutorial.xbeam.projection.Books

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.