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