1 /* 2 * $Id: BookBean.java 421486 2006-07-13 03:37:08Z wsmoak $ 3 * 4 * Copyright 2005 The Apache Software Foundation. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 package examples.options; 20 21 /*** 22 * Represents a book 23 * 24 * @version $Rev: 421486 $ $Date: 2006-07-12 20:37:08 -0700 (Wed, 12 Jul 2006) $ 25 */ 26 public class BookBean { 27 28 // ------------------------------------------------------ Instance Variables 29 30 /*** 31 * International Standard Book Number (ISBN) 32 */ 33 private String isbn; 34 35 /*** 36 * Book Title 37 */ 38 private String title; 39 40 // ------------------------------------------------------------ Constructors 41 42 /*** 43 * Constructor for BookBean. 44 * @param title the book title 45 * @param isbn the ISBN 46 */ 47 public BookBean(String isbn, String title) { 48 this.isbn = isbn; 49 this.title = title; 50 } 51 52 // ------------------------------------------------------ Property Accessors 53 54 /*** 55 * Returns the ISBN. 56 * @return the ISBN 57 */ 58 public String getIsbn() { 59 return this.isbn; 60 } 61 62 /*** 63 * Returns the book title 64 * @return the title 65 */ 66 public String getTitle() { 67 return this.title; 68 } 69 70 71 }