1
2
3
4
5
6 package org.apache.maven.doxia.document;
7
8
9
10
11
12
13 @SuppressWarnings( "all" )
14 public class DocumentModel
15 implements java.io.Serializable
16 {
17
18
19
20
21
22
23
24
25
26
27
28 private String outputName;
29
30
31
32
33
34
35 private DocumentMeta meta;
36
37
38
39
40
41
42
43 private DocumentTOC toc;
44
45
46
47
48
49
50
51 private DocumentCover cover;
52
53
54
55
56 private String modelEncoding = "UTF-8";
57
58
59
60
61
62
63
64
65
66
67
68
69 public boolean equals( Object other )
70 {
71 if ( this == other )
72 {
73 return true;
74 }
75
76 if ( !( other instanceof DocumentModel ) )
77 {
78 return false;
79 }
80
81 DocumentModel that = (DocumentModel) other;
82 boolean result = true;
83
84 result = result && ( getOutputName() == null ? that.getOutputName() == null : getOutputName().equals( that.getOutputName() ) );
85 result = result && ( getMeta() == null ? that.getMeta() == null : getMeta().equals( that.getMeta() ) );
86 result = result && ( getToc() == null ? that.getToc() == null : getToc().equals( that.getToc() ) );
87 result = result && ( getCover() == null ? that.getCover() == null : getCover().equals( that.getCover() ) );
88
89 return result;
90 }
91
92
93
94
95
96
97
98 public DocumentCover getCover()
99 {
100 return this.cover;
101 }
102
103
104
105
106
107
108 public DocumentMeta getMeta()
109 {
110 return this.meta;
111 }
112
113
114
115
116
117
118 public String getModelEncoding()
119 {
120 return this.modelEncoding;
121 }
122
123
124
125
126
127
128 public String getOutputName()
129 {
130 return this.outputName;
131 }
132
133
134
135
136
137
138 public DocumentTOC getToc()
139 {
140 return this.toc;
141 }
142
143
144
145
146
147
148 public int hashCode()
149 {
150 int result = 17;
151
152 result = 37 * result + ( outputName != null ? outputName.hashCode() : 0 );
153 result = 37 * result + ( meta != null ? meta.hashCode() : 0 );
154 result = 37 * result + ( toc != null ? toc.hashCode() : 0 );
155 result = 37 * result + ( cover != null ? cover.hashCode() : 0 );
156
157 return result;
158 }
159
160
161
162
163
164
165
166 public void setCover( DocumentCover cover )
167 {
168 this.cover = cover;
169 }
170
171
172
173
174
175
176 public void setMeta( DocumentMeta meta )
177 {
178 this.meta = meta;
179 }
180
181
182
183
184
185
186 public void setModelEncoding( String modelEncoding )
187 {
188 this.modelEncoding = modelEncoding;
189 }
190
191
192
193
194
195
196 public void setOutputName( String outputName )
197 {
198 this.outputName = outputName;
199 }
200
201
202
203
204
205
206 public void setToc( DocumentTOC toc )
207 {
208 this.toc = toc;
209 }
210
211
212
213
214
215
216 public java.lang.String toString()
217 {
218 StringBuilder buf = new StringBuilder( 128 );
219
220 buf.append( "outputName = '" );
221 buf.append( getOutputName() );
222 buf.append( "'" );
223 buf.append( "\n" );
224 buf.append( "meta = '" );
225 buf.append( getMeta() );
226 buf.append( "'" );
227 buf.append( "\n" );
228 buf.append( "toc = '" );
229 buf.append( getToc() );
230 buf.append( "'" );
231 buf.append( "\n" );
232 buf.append( "cover = '" );
233 buf.append( getCover() );
234 buf.append( "'" );
235
236 return buf.toString();
237 }
238
239 }