Coverage Report - org.apache.maven.plugin.javadoc.options.Group
 
Classes in this File Line Coverage Branch Coverage Complexity
Group
24 %
7/29
0 %
0/24
1,571
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.1 on 2009-10-23 09:16:44,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.plugin.javadoc.options;
 9  
 
 10  
 /**
 11  
  * A Group parameter.
 12  
  * 
 13  
  * @version $Revision$ $Date$
 14  
  */
 15  2
 public class Group
 16  
     implements java.io.Serializable
 17  
 {
 18  
 
 19  
       //--------------------------/
 20  
      //- Class/Member Variables -/
 21  
     //--------------------------/
 22  
 
 23  
     /**
 24  
      * Title can be any text, and can include white space. This
 25  
      * text is placed in the table heading for the group.
 26  
      */
 27  
     private String title;
 28  
 
 29  
     /**
 30  
      * Packages can be any package name, or can be the start of any
 31  
      * package name followed by an asterisk (*). The asterisk is a
 32  
      * wildcard meaning "match any characters". This is the only
 33  
      * wildcard allowed. Multiple patterns can be included in a
 34  
      * group by separating them with colons (:).
 35  
      */
 36  
     private String packages;
 37  
 
 38  
 
 39  
       //-----------/
 40  
      //- Methods -/
 41  
     //-----------/
 42  
 
 43  
     /**
 44  
      * Method equals.
 45  
      * 
 46  
      * @param other
 47  
      * @return boolean
 48  
      */
 49  
     public boolean equals( Object other )
 50  
     {
 51  0
         if ( this == other )
 52  
         {
 53  0
             return true;
 54  
         }
 55  
 
 56  0
         if ( !( other instanceof Group ) )
 57  
         {
 58  0
             return false;
 59  
         }
 60  
 
 61  0
         Group that = (Group) other;
 62  0
         boolean result = true;
 63  
 
 64  0
         result = result && ( getTitle() == null ? that.getTitle() == null : getTitle().equals( that.getTitle() ) );
 65  0
         result = result && ( getPackages() == null ? that.getPackages() == null : getPackages().equals( that.getPackages() ) );
 66  
 
 67  0
         return result;
 68  
     } //-- boolean equals( Object )
 69  
 
 70  
     /**
 71  
      * Get packages can be any package name, or can be the start of
 72  
      * any package name followed by an asterisk (*). The asterisk
 73  
      * is a wildcard meaning "match any characters". This is the
 74  
      * only wildcard allowed. Multiple patterns can be included in
 75  
      * a group by separating them with colons (:).
 76  
      * 
 77  
      * @return String
 78  
      */
 79  
     public String getPackages()
 80  
     {
 81  4
         return this.packages;
 82  
     } //-- String getPackages()
 83  
 
 84  
     /**
 85  
      * Get title can be any text, and can include white space. This
 86  
      * text is placed in the table heading for the group.
 87  
      * 
 88  
      * @return String
 89  
      */
 90  
     public String getTitle()
 91  
     {
 92  4
         return this.title;
 93  
     } //-- String getTitle()
 94  
 
 95  
     /**
 96  
      * Method hashCode.
 97  
      * 
 98  
      * @return int
 99  
      */
 100  
     public int hashCode()
 101  
     {
 102  0
         int result = 17;
 103  
 
 104  0
         result = 37 * result + ( title != null ? title.hashCode() : 0 );
 105  0
         result = 37 * result + ( packages != null ? packages.hashCode() : 0 );
 106  
 
 107  0
         return result;
 108  
     } //-- int hashCode()
 109  
 
 110  
     /**
 111  
      * Set packages can be any package name, or can be the start of
 112  
      * any package name followed by an asterisk (*). The asterisk
 113  
      * is a wildcard meaning "match any characters". This is the
 114  
      * only wildcard allowed. Multiple patterns can be included in
 115  
      * a group by separating them with colons (:).
 116  
      * 
 117  
      * @param packages
 118  
      */
 119  
     public void setPackages( String packages )
 120  
     {
 121  2
         this.packages = packages;
 122  2
     } //-- void setPackages( String )
 123  
 
 124  
     /**
 125  
      * Set title can be any text, and can include white space. This
 126  
      * text is placed in the table heading for the group.
 127  
      * 
 128  
      * @param title
 129  
      */
 130  
     public void setTitle( String title )
 131  
     {
 132  2
         this.title = title;
 133  2
     } //-- void setTitle( String )
 134  
 
 135  
     /**
 136  
      * Method toString.
 137  
      * 
 138  
      * @return String
 139  
      */
 140  
     public java.lang.String toString()
 141  
     {
 142  0
         StringBuffer buf = new StringBuffer( 128 );
 143  
 
 144  0
         buf.append( "title = '" );
 145  0
         buf.append( getTitle() );
 146  0
         buf.append( "'" );
 147  0
         buf.append( "\n" ); 
 148  0
         buf.append( "packages = '" );
 149  0
         buf.append( getPackages() );
 150  0
         buf.append( "'" );
 151  
 
 152  0
         return buf.toString();
 153  
     } //-- java.lang.String toString()
 154  
 
 155  
 }