book.java

来自「基于java的xsl技术1」· Java 代码 · 共 58 行

JAVA
58
字号
package chap1;

/**
 * A helper class used by LibraryDOMCreator and LibraryJDOMCreator,
 * presented as Examples 1-4 and 1-5 in Chapter 1.
 *
 * @author Eric M. Burke
 */
public class Book {
    private Publisher publisher;
    private String title;
    private int edition;
    private String author;
    private String isbn;
    private int publicationMonth;
    private int publicationYear;

    public Book(Publisher publisher, String title, int edition,
            String author, String isbn, int publicationMonth,
            int publicationYear) {
        this.publisher = publisher;
        this.title = title;
        this.edition = edition;
        this.author = author;
        this.isbn = isbn;
        this.publicationMonth = publicationMonth;
        this.publicationYear = publicationYear;
    }

    public Publisher getPublisher() {
        return this.publisher;
    }

    public String getTitle() {
        return this.title;
    }

    public int getEdition() {
        return this.edition;
    }

    public String getAuthor() {
        return this.author;
    }

    public String getISBN() {
        return this.isbn;
    }

    public int getPublicationYear() {
        return this.publicationYear;
    }

    public int getPublicationMonth() {
        return this.publicationMonth;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?