/*
 * Jooby https://jooby.io
 * Apache License Version 2.0 https://jooby.io/LICENSE.txt
 * Copyright 2014 Edgar Espina
 */
package io.jooby.javadoc.input;

import java.time.LocalDate;
import java.util.Set;

/** Book model. */
public class Book {
  /** Book ISBN. */
  private String isbn;

  /** Book's title. */
  String title;

  /** Publication date. Format mm-dd-yyyy. */
  LocalDate publicationDate;

  /** Book's content. */
  String text;

  /** Book type. */
  Type type = Type.Fiction;

  Set<Author> authors;

  /**
   * Book ISBN. Method.
   *
   * @return Book ISBN. Method.
   */
  public String getIsbn() {
    return isbn;
  }

  public void setIsbn(String isbn) {
    this.isbn = isbn;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public LocalDate getPublicationDate() {
    return publicationDate;
  }

  public void setPublicationDate(LocalDate publicationDate) {
    this.publicationDate = publicationDate;
  }

  public String getText() {
    return text;
  }

  public void setText(String text) {
    this.text = text;
  }

  public Type getType() {
    return type;
  }

  public void setType(Type type) {
    this.type = type;
  }

  public Set<Author> getAuthors() {
    return authors;
  }

  public void setAuthors(Set<Author> authors) {
    this.authors = authors;
  }
}
