1
2
3
4
5
6
7
8 package org.apache.maven.doxia.book.model;
9
10
11
12
13
14
15 @SuppressWarnings( "all" )
16 public class Section
17 implements java.io.Serializable
18 {
19
20
21
22
23
24
25
26
27
28
29
30
31 private String id;
32
33
34
35
36
37
38 private String title;
39
40
41
42
43
44
45 private String file;
46
47
48
49
50
51
52
53
54
55
56
57
58 public boolean equals( Object other )
59 {
60 if ( this == other )
61 {
62 return true;
63 }
64
65 if ( !( other instanceof Section ) )
66 {
67 return false;
68 }
69
70 Section that = (Section) other;
71 boolean result = true;
72
73 result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
74
75 return result;
76 }
77
78
79
80
81
82
83 public String getFile()
84 {
85 return this.file;
86 }
87
88
89
90
91
92
93
94
95 public String getId()
96 {
97 return this.id;
98 }
99
100
101
102
103
104
105 public String getTitle()
106 {
107 return this.title;
108 }
109
110
111
112
113
114
115 public int hashCode()
116 {
117 int result = 17;
118
119 result = 37 * result + ( id != null ? id.hashCode() : 0 );
120
121 return result;
122 }
123
124
125
126
127
128
129 public void setFile( String file )
130 {
131 this.file = file;
132 }
133
134
135
136
137
138
139
140
141 public void setId( String id )
142 {
143 this.id = id;
144 }
145
146
147
148
149
150
151 public void setTitle( String title )
152 {
153 this.title = title;
154 }
155
156
157
158
159
160
161 public java.lang.String toString()
162 {
163 StringBuilder buf = new StringBuilder( 128 );
164
165 buf.append( "id = '" );
166 buf.append( getId() );
167 buf.append( "'" );
168
169 return buf.toString();
170 }
171
172 }