View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.4-b02-fcs 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2007.10.19 at 05:03:52 PM BST 
6   //
7   
8   
9   package org.cateproject.model.reference;
10  
11  import javax.persistence.Entity;
12  import javax.xml.bind.annotation.XmlAccessType;
13  import javax.xml.bind.annotation.XmlAccessorType;
14  import javax.xml.bind.annotation.XmlElement;
15  import javax.xml.bind.annotation.XmlType;
16  
17  /**
18   * <p>Java class for Book complex type.
19   * 
20   * <p>The following schema fragment specifies the expected content contained within this class.
21   * 
22   * <pre>
23   * &lt;complexType name="Book">
24   *   &lt;complexContent>
25   *     &lt;extension base="{http://cate-project.org/schema/reference/0.5}PrintedUnitBase">
26   *       &lt;sequence>
27   *         &lt;element name="Edition" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
28   *         &lt;element name="ISBN" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
29   *       &lt;/sequence>
30   *     &lt;/extension>
31   *   &lt;/complexContent>
32   * &lt;/complexType>
33   * </pre>
34   * 
35   * 
36   */
37  @XmlAccessorType(XmlAccessType.FIELD)
38  @XmlType(name = "Book", propOrder = {
39      "edition",
40      "isbn"
41  })
42  @Entity
43  public class Book
44      extends PrintedUnitBase
45  {
46  
47      /**
48  	 * 
49  	 */
50  	private static final long serialVersionUID = 2875250954196644056L;
51  
52  	@XmlElement(name = "Edition")
53      protected String edition;
54      
55      @XmlElement(name = "ISBN")
56      protected String isbn;
57  
58      /**
59       * Gets the value of the edition property.
60       * 
61       * @return
62       *     possible object is
63       *     {@link String }
64       *     
65       */
66      public String getEdition() {
67          return edition;
68      }
69  
70      /**
71       * Sets the value of the edition property.
72       * 
73       * @param value
74       *     allowed object is
75       *     {@link String }
76       *     
77       */
78      public void setEdition(String value) {
79          this.edition = value;
80      }
81  
82      /**
83       * Gets the value of the isbn property.
84       * 
85       * @return
86       *     possible object is
87       *     {@link String }
88       *     
89       */
90      public String getISBN() {
91          return isbn;
92      }
93  
94      /**
95       * Sets the value of the isbn property.
96       * 
97       * @param value
98       *     allowed object is
99       *     {@link String }
100      *     
101      */
102     public void setISBN(String value) {
103         this.isbn = value;
104     }
105 
106 	public <TO> TO format(ReferenceFormatter formatter, Class<TO> to, Object style) {
107 		return formatter.formatBook(this, to, style);
108 	}
109 }