Coverage Report - org.apache.maven.plugin.doap.options.ASFExtOptions
 
Classes in this File Line Coverage Branch Coverage Complexity
ASFExtOptions
0 %
0/89
0 %
0/64
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  
  * Specific ASF DOAP parameters, i.e. ASF options which make DOAP
 12  
  * file ASF compliant.
 13  
  * @see <a
 14  
  * href="http://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/asfext">
 15  
  * http://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/asfext</a>
 16  
  * @see <a
 17  
  * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 18  
  * @see <a
 19  
  * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
 20  
  * 
 21  
  * @version $Revision$ $Date$
 22  
  */
 23  
 @SuppressWarnings( "all" )
 24  0
 public class ASFExtOptions
 25  
     implements java.io.Serializable
 26  
 {
 27  
 
 28  
       //--------------------------/
 29  
      //- Class/Member Variables -/
 30  
     //--------------------------/
 31  
 
 32  
     /**
 33  
      * The ASFext xmlns prefix.<br/>
 34  
      * <b>Default value</b>: asfext.
 35  
      */
 36  0
     private String xmlnsPrefix = "asfext";
 37  
 
 38  
     /**
 39  
      * The URI of the ASFext xmlns namespace.<br/>
 40  
      * <b>Default value</b>: http://projects.apache.org/ns/asfext#.
 41  
      */
 42  0
     private String xmlnsNamespaceURI = "http://projects.apache.org/ns/asfext#";
 43  
 
 44  
     /**
 45  
      * Flag to use or not the ASF extension in the generated DOAP.
 46  
      */
 47  0
     private boolean included = false;
 48  
 
 49  
     /**
 50  
      * The top level element within a file. Optional will be
 51  
      * discovered from POM.<br/>
 52  
      * <b>Default value</b>: ${project.url}
 53  
      * @see <a
 54  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 55  
      */
 56  0
     private String pmc = "${project.url}";
 57  
 
 58  
     /**
 59  
      * The name of the PMC, including the 'Apache ', e.g. 'Apache
 60  
      * Forrest'. Optional will be discovered from POM.<br/>
 61  
      * <b>Default value</b>: ${project.name}
 62  
      * @see <a
 63  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 64  
      */
 65  0
     private String name = "${project.name}";
 66  
 
 67  
     /**
 68  
      * Every PMC is created by a board resolution with a specific
 69  
      * charter. That charter should be
 70  
      *             listed here as it gives the focus and scope of
 71  
      * the PMC. Optional.
 72  
      * @see <a
 73  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 74  
      */
 75  
     private String charter;
 76  
 
 77  
     /**
 78  
      * This should contain the name of the current PMC chairperson.
 79  
      * Optional.<br/>
 80  
      * <b>Note</b>: it will be discovered from
 81  
      * ${project.developers.roles}
 82  
      * @see <a
 83  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 84  
      */
 85  
     private String chair;
 86  
 
 87  
     /**
 88  
      * Field standards.
 89  
      */
 90  
     private java.util.List<Standard> standards;
 91  
 
 92  
     /**
 93  
      * Field extra.
 94  
      */
 95  
     private java.util.Map extra;
 96  
 
 97  
 
 98  
       //-----------/
 99  
      //- Methods -/
 100  
     //-----------/
 101  
 
 102  
     /**
 103  
      * Method addExtra.
 104  
      * 
 105  
      * @param key
 106  
      * @param value
 107  
      */
 108  
     public void addExtra( Object key, String value )
 109  
     {
 110  0
         getExtra().put( key, value );
 111  0
     } //-- void addExtra( Object, String )
 112  
 
 113  
     /**
 114  
      * Method addStandard.
 115  
      * 
 116  
      * @param standard
 117  
      */
 118  
     public void addStandard( Standard standard )
 119  
     {
 120  0
         getStandards().add( standard );
 121  0
     } //-- void addStandard( Standard )
 122  
 
 123  
     /**
 124  
      * Method equals.
 125  
      * 
 126  
      * @param other
 127  
      * @return boolean
 128  
      */
 129  
     public boolean equals( Object other )
 130  
     {
 131  0
         if ( this == other )
 132  
         {
 133  0
             return true;
 134  
         }
 135  
 
 136  0
         if ( !( other instanceof ASFExtOptions ) )
 137  
         {
 138  0
             return false;
 139  
         }
 140  
 
 141  0
         ASFExtOptions that = (ASFExtOptions) other;
 142  0
         boolean result = true;
 143  
 
 144  0
         result = result && included == that.included;
 145  0
         result = result && ( getPmc() == null ? that.getPmc() == null : getPmc().equals( that.getPmc() ) );
 146  0
         result = result && ( getName() == null ? that.getName() == null : getName().equals( that.getName() ) );
 147  0
         result = result && ( getCharter() == null ? that.getCharter() == null : getCharter().equals( that.getCharter() ) );
 148  0
         result = result && ( getChair() == null ? that.getChair() == null : getChair().equals( that.getChair() ) );
 149  0
         result = result && ( getExtra() == null ? that.getExtra() == null : getExtra().equals( that.getExtra() ) );
 150  
 
 151  0
         return result;
 152  
     } //-- boolean equals( Object )
 153  
 
 154  
     /**
 155  
      * Get this should contain the name of the current PMC
 156  
      * chairperson. Optional.<br/>
 157  
      * <b>Note</b>: it will be discovered from
 158  
      * ${project.developers.roles}
 159  
      * @see <a
 160  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 161  
      * 
 162  
      * @return String
 163  
      */
 164  
     public String getChair()
 165  
     {
 166  0
         return this.chair;
 167  
     } //-- String getChair()
 168  
 
 169  
     /**
 170  
      * Get every PMC is created by a board resolution with a
 171  
      * specific charter. That charter should be
 172  
      *             listed here as it gives the focus and scope of
 173  
      * the PMC. Optional.
 174  
      * @see <a
 175  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 176  
      * 
 177  
      * @return String
 178  
      */
 179  
     public String getCharter()
 180  
     {
 181  0
         return this.charter;
 182  
     } //-- String getCharter()
 183  
 
 184  
     /**
 185  
      * Method getExtra.
 186  
      * 
 187  
      * @return Map
 188  
      */
 189  
     public java.util.Map getExtra()
 190  
     {
 191  0
         if ( this.extra == null )
 192  
         {
 193  0
             this.extra = new java.util.HashMap();
 194  
         }
 195  
 
 196  0
         return this.extra;
 197  
     } //-- java.util.Map getExtra()
 198  
 
 199  
     /**
 200  
      * Get the name of the PMC, including the 'Apache ', e.g.
 201  
      * 'Apache Forrest'. Optional will be discovered from POM.<br/>
 202  
      * <b>Default value</b>: ${project.name}
 203  
      * @see <a
 204  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 205  
      * 
 206  
      * @return String
 207  
      */
 208  
     public String getName()
 209  
     {
 210  0
         return this.name;
 211  
     } //-- String getName()
 212  
 
 213  
     /**
 214  
      * Get the top level element within a file. Optional will be
 215  
      * discovered from POM.<br/>
 216  
      * <b>Default value</b>: ${project.url}
 217  
      * @see <a
 218  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 219  
      * 
 220  
      * @return String
 221  
      */
 222  
     public String getPmc()
 223  
     {
 224  0
         return this.pmc;
 225  
     } //-- String getPmc()
 226  
 
 227  
     /**
 228  
      * Method getStandards.
 229  
      * 
 230  
      * @return List
 231  
      */
 232  
     public java.util.List<Standard> getStandards()
 233  
     {
 234  0
         if ( this.standards == null )
 235  
         {
 236  0
             this.standards = new java.util.ArrayList<Standard>();
 237  
         }
 238  
 
 239  0
         return this.standards;
 240  
     } //-- java.util.List<Standard> getStandards()
 241  
 
 242  
     /**
 243  
      * Get the URI of the ASFext xmlns namespace.<br/>
 244  
      * <b>Default value</b>: http://projects.apache.org/ns/asfext#.
 245  
      * 
 246  
      * @return String
 247  
      */
 248  
     public String getXmlnsNamespaceURI()
 249  
     {
 250  0
         return this.xmlnsNamespaceURI;
 251  
     } //-- String getXmlnsNamespaceURI()
 252  
 
 253  
     /**
 254  
      * Get the ASFext xmlns prefix.<br/>
 255  
      * <b>Default value</b>: asfext.
 256  
      * 
 257  
      * @return String
 258  
      */
 259  
     public String getXmlnsPrefix()
 260  
     {
 261  0
         return this.xmlnsPrefix;
 262  
     } //-- String getXmlnsPrefix()
 263  
 
 264  
     /**
 265  
      * Method hashCode.
 266  
      * 
 267  
      * @return int
 268  
      */
 269  
     public int hashCode()
 270  
     {
 271  0
         int result = 17;
 272  
 
 273  0
         result = 37 * result + ( included ? 0 : 1 );
 274  0
         result = 37 * result + ( pmc != null ? pmc.hashCode() : 0 );
 275  0
         result = 37 * result + ( name != null ? name.hashCode() : 0 );
 276  0
         result = 37 * result + ( charter != null ? charter.hashCode() : 0 );
 277  0
         result = 37 * result + ( chair != null ? chair.hashCode() : 0 );
 278  0
         result = 37 * result + ( extra != null ? extra.hashCode() : 0 );
 279  
 
 280  0
         return result;
 281  
     } //-- int hashCode()
 282  
 
 283  
     /**
 284  
      * Get flag to use or not the ASF extension in the generated
 285  
      * DOAP.
 286  
      * 
 287  
      * @return boolean
 288  
      */
 289  
     public boolean isIncluded()
 290  
     {
 291  0
         return this.included;
 292  
     } //-- boolean isIncluded()
 293  
 
 294  
     /**
 295  
      * Method removeStandard.
 296  
      * 
 297  
      * @param standard
 298  
      */
 299  
     public void removeStandard( Standard standard )
 300  
     {
 301  0
         getStandards().remove( standard );
 302  0
     } //-- void removeStandard( Standard )
 303  
 
 304  
     /**
 305  
      * Set this should contain the name of the current PMC
 306  
      * chairperson. Optional.<br/>
 307  
      * <b>Note</b>: it will be discovered from
 308  
      * ${project.developers.roles}
 309  
      * @see <a
 310  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 311  
      * 
 312  
      * @param chair
 313  
      */
 314  
     public void setChair( String chair )
 315  
     {
 316  0
         this.chair = chair;
 317  0
     } //-- void setChair( String )
 318  
 
 319  
     /**
 320  
      * Set every PMC is created by a board resolution with a
 321  
      * specific charter. That charter should be
 322  
      *             listed here as it gives the focus and scope of
 323  
      * the PMC. Optional.
 324  
      * @see <a
 325  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 326  
      * 
 327  
      * @param charter
 328  
      */
 329  
     public void setCharter( String charter )
 330  
     {
 331  0
         this.charter = charter;
 332  0
     } //-- void setCharter( String )
 333  
 
 334  
     /**
 335  
      * Set extra ASFext vocabulary as key/value, not actually
 336  
      * defined as plugin options.
 337  
      * 
 338  
      * @param extra
 339  
      */
 340  
     public void setExtra( java.util.Map extra )
 341  
     {
 342  0
         this.extra = extra;
 343  0
     } //-- void setExtra( java.util.Map )
 344  
 
 345  
     /**
 346  
      * Set flag to use or not the ASF extension in the generated
 347  
      * DOAP.
 348  
      * 
 349  
      * @param included
 350  
      */
 351  
     public void setIncluded( boolean included )
 352  
     {
 353  0
         this.included = included;
 354  0
     } //-- void setIncluded( boolean )
 355  
 
 356  
     /**
 357  
      * Set the name of the PMC, including the 'Apache ', e.g.
 358  
      * 'Apache Forrest'. Optional will be discovered from POM.<br/>
 359  
      * <b>Default value</b>: ${project.name}
 360  
      * @see <a
 361  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 362  
      * 
 363  
      * @param name
 364  
      */
 365  
     public void setName( String name )
 366  
     {
 367  0
         this.name = name;
 368  0
     } //-- void setName( String )
 369  
 
 370  
     /**
 371  
      * Set the top level element within a file. Optional will be
 372  
      * discovered from POM.<br/>
 373  
      * <b>Default value</b>: ${project.url}
 374  
      * @see <a
 375  
      * href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
 376  
      * 
 377  
      * @param pmc
 378  
      */
 379  
     public void setPmc( String pmc )
 380  
     {
 381  0
         this.pmc = pmc;
 382  0
     } //-- void setPmc( String )
 383  
 
 384  
     /**
 385  
      * Set list of Standard object. Optional.
 386  
      * @see <a
 387  
      * href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
 388  
      * 
 389  
      * @param standards
 390  
      */
 391  
     public void setStandards( java.util.List<Standard> standards )
 392  
     {
 393  0
         this.standards = standards;
 394  0
     } //-- void setStandards( java.util.List )
 395  
 
 396  
     /**
 397  
      * Set the URI of the ASFext xmlns namespace.<br/>
 398  
      * <b>Default value</b>: http://projects.apache.org/ns/asfext#.
 399  
      * 
 400  
      * @param xmlnsNamespaceURI
 401  
      */
 402  
     public void setXmlnsNamespaceURI( String xmlnsNamespaceURI )
 403  
     {
 404  0
         this.xmlnsNamespaceURI = xmlnsNamespaceURI;
 405  0
     } //-- void setXmlnsNamespaceURI( String )
 406  
 
 407  
     /**
 408  
      * Set the ASFext xmlns prefix.<br/>
 409  
      * <b>Default value</b>: asfext.
 410  
      * 
 411  
      * @param xmlnsPrefix
 412  
      */
 413  
     public void setXmlnsPrefix( String xmlnsPrefix )
 414  
     {
 415  0
         this.xmlnsPrefix = xmlnsPrefix;
 416  0
     } //-- void setXmlnsPrefix( String )
 417  
 
 418  
     /**
 419  
      * Method toString.
 420  
      * 
 421  
      * @return String
 422  
      */
 423  
     public java.lang.String toString()
 424  
     {
 425  0
         StringBuilder buf = new StringBuilder( 128 );
 426  
 
 427  0
         buf.append( "included = '" );
 428  0
         buf.append( isIncluded() );
 429  0
         buf.append( "'" );
 430  0
         buf.append( "\n" ); 
 431  0
         buf.append( "pmc = '" );
 432  0
         buf.append( getPmc() );
 433  0
         buf.append( "'" );
 434  0
         buf.append( "\n" ); 
 435  0
         buf.append( "name = '" );
 436  0
         buf.append( getName() );
 437  0
         buf.append( "'" );
 438  0
         buf.append( "\n" ); 
 439  0
         buf.append( "charter = '" );
 440  0
         buf.append( getCharter() );
 441  0
         buf.append( "'" );
 442  0
         buf.append( "\n" ); 
 443  0
         buf.append( "chair = '" );
 444  0
         buf.append( getChair() );
 445  0
         buf.append( "'" );
 446  0
         buf.append( "\n" ); 
 447  0
         buf.append( "extra = '" );
 448  0
         buf.append( getExtra() );
 449  0
         buf.append( "'" );
 450  
 
 451  0
         return buf.toString();
 452  
     } //-- java.lang.String toString()
 453  
 
 454  
 }