View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  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,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.5.1,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.plugin.doap.options;
25  
26  /**
27   * The "Standard" element is used to list all the relevant
28   * standards implemented by the project.
29   * These standards include W3C or ISO standards, RFCs, various
30   * technical specifications etc.
31   * Example:
32   * <pre>
33   * &lt;asfext:implements&gt;
34   * &nbsp;&nbsp;&lt;asfext:Standard&gt;
35   * &nbsp;&nbsp;&nbsp;&nbsp;&lt;asfext:title&gt;Extensible
36   * Stylesheet Language - Formatting Objects (XSL-FO
37   * 1.1)&lt;/asfext:title&gt;
38   * &nbsp;&nbsp;&nbsp;&nbsp;&lt;asfext:body&gt;W3C&lt;/asfext:body&gt;
39   * &nbsp;&nbsp;&nbsp;&nbsp;&lt;asfext:id&gt;XSL
40   * 1.1&lt;/asfext:id&gt;
41   * &nbsp;&nbsp;&nbsp;&nbsp;&lt;asfext:url
42   * rdf:resource="http://www.w3.org/TR/xsl11/"/&gt;
43   * &nbsp;&nbsp;&lt;/asfext:Standard&gt;
44   * &lt;/asfext:implements&gt;
45   * </pre>
46   * @see <a
47   * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
48   * 
49   * @version $Revision$ $Date$
50   */
51  @SuppressWarnings( "all" )
52  public class Standard
53      implements java.io.Serializable
54  {
55  
56        //--------------------------/
57       //- Class/Member Variables -/
58      //--------------------------/
59  
60      /**
61       * The expanded title of the standard. Required.
62       * @see <a
63       * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
64       */
65      private String title;
66  
67      /**
68       * The body which published the standard (Example: "W3C",
69       * "OASIS", "ISO" etc.). Required.
70       * @see <a
71       * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
72       */
73      private String body;
74  
75      /**
76       * An identifier for the standard (Example: ISO/IEC 15438,
77       * RFC2397, JSR206 etc.). Required.
78       * @see <a
79       * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
80       */
81      private String id;
82  
83      /**
84       * An URL pointing to the standard (main website or
85       * specification document). Optional.
86       * @see <a
87       * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
88       */
89      private String url;
90  
91  
92        //-----------/
93       //- Methods -/
94      //-----------/
95  
96      /**
97       * Method equals.
98       * 
99       * @param other a other object.
100      * @return boolean
101      */
102     public boolean equals( Object other )
103     {
104         if ( this == other )
105         {
106             return true;
107         }
108 
109         if ( !( other instanceof Standard ) )
110         {
111             return false;
112         }
113 
114         Standard that = (Standard) other;
115         boolean result = true;
116 
117         result = result && ( getTitle() == null ? that.getTitle() == null : getTitle().equals( that.getTitle() ) );
118         result = result && ( getBody() == null ? that.getBody() == null : getBody().equals( that.getBody() ) );
119         result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
120         result = result && ( getUrl() == null ? that.getUrl() == null : getUrl().equals( that.getUrl() ) );
121 
122         return result;
123     } //-- boolean equals( Object )
124 
125     /**
126      * Get the body which published the standard (Example: "W3C",
127      * "OASIS", "ISO" etc.). Required.
128      * @see <a
129      * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
130      * 
131      * @return String
132      */
133     public String getBody()
134     {
135         return this.body;
136     } //-- String getBody()
137 
138     /**
139      * Get an identifier for the standard (Example: ISO/IEC 15438,
140      * RFC2397, JSR206 etc.). Required.
141      * @see <a
142      * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
143      * 
144      * @return String
145      */
146     public String getId()
147     {
148         return this.id;
149     } //-- String getId()
150 
151     /**
152      * Get the expanded title of the standard. Required.
153      * @see <a
154      * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
155      * 
156      * @return String
157      */
158     public String getTitle()
159     {
160         return this.title;
161     } //-- String getTitle()
162 
163     /**
164      * Get an URL pointing to the standard (main website or
165      * specification document). Optional.
166      * @see <a
167      * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
168      * 
169      * @return String
170      */
171     public String getUrl()
172     {
173         return this.url;
174     } //-- String getUrl()
175 
176     /**
177      * Method hashCode.
178      * 
179      * @return int
180      */
181     public int hashCode()
182     {
183         int result = 17;
184 
185         result = 37 * result + ( title != null ? title.hashCode() : 0 );
186         result = 37 * result + ( body != null ? body.hashCode() : 0 );
187         result = 37 * result + ( id != null ? id.hashCode() : 0 );
188         result = 37 * result + ( url != null ? url.hashCode() : 0 );
189 
190         return result;
191     } //-- int hashCode()
192 
193     /**
194      * Set the body which published the standard (Example: "W3C",
195      * "OASIS", "ISO" etc.). Required.
196      * @see <a
197      * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
198      * 
199      * @param body a body object.
200      */
201     public void setBody( String body )
202     {
203         this.body = body;
204     } //-- void setBody( String )
205 
206     /**
207      * Set an identifier for the standard (Example: ISO/IEC 15438,
208      * RFC2397, JSR206 etc.). Required.
209      * @see <a
210      * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
211      * 
212      * @param id a id object.
213      */
214     public void setId( String id )
215     {
216         this.id = id;
217     } //-- void setId( String )
218 
219     /**
220      * Set the expanded title of the standard. Required.
221      * @see <a
222      * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
223      * 
224      * @param title a title object.
225      */
226     public void setTitle( String title )
227     {
228         this.title = title;
229     } //-- void setTitle( String )
230 
231     /**
232      * Set an URL pointing to the standard (main website or
233      * specification document). Optional.
234      * @see <a
235      * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
236      * 
237      * @param url a url object.
238      */
239     public void setUrl( String url )
240     {
241         this.url = url;
242     } //-- void setUrl( String )
243 
244     /**
245      * Method toString.
246      * 
247      * @return String
248      */
249     public java.lang.String toString()
250     {
251         StringBuilder buf = new StringBuilder( 128 );
252 
253         buf.append( "title = '" );
254         buf.append( getTitle() );
255         buf.append( "'" );
256         buf.append( "\n" ); 
257         buf.append( "body = '" );
258         buf.append( getBody() );
259         buf.append( "'" );
260         buf.append( "\n" ); 
261         buf.append( "id = '" );
262         buf.append( getId() );
263         buf.append( "'" );
264         buf.append( "\n" ); 
265         buf.append( "url = '" );
266         buf.append( getUrl() );
267         buf.append( "'" );
268 
269         return buf.toString();
270     } //-- java.lang.String toString()
271 
272 }