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