content: package org.agoncal.book.javaee7.chapter15;
  
  import javax.xml.bind.annotation.XmlElement;
  import javax.xml.bind.annotation.XmlRootElement;
  import javax.xml.bind.annotation.XmlSeeAlso;
  import java.util.ArrayList;
  import java.util.Collection;
  import java.util.List;
  
  /**
   * @author Antonio Goncalves
   *         APress Book - Beginning Java EE 7 with Glassfish 4
   *         http://www.apress.com/
   *         http://www.antoniogoncalves.org
   *         --
   */
  @XmlRootElement
  @XmlSeeAlso(Book.class)
  public class Books extends ArrayList<Book> {
  
    // ======================================
    // =            Constructors            =
    // ======================================
  
    public Books() {
      super();
    }
  
    public Books(Collection<? extends Book> c) {
      super(c);
    }
  
    // ======================================
    // =          Getters & Setters         =
    // ======================================
  
    @XmlElement(name = "book")
    public List<Book> getBooks() {
      return this;
    }
  
    public void setBooks(List<Book> books) {
      this.addAll(books);
    }
  }