Coverage Report - org.apache.maven.doxia.site.decoration.Skin
 
Classes in this File Line Coverage Branch Coverage Complexity
Skin
38%
18/47
32%
11/34
2,455
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.4.1 on 2011-04-27 00:03:43,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.doxia.site.decoration;
 9  
 
 10  
 /**
 11  
  * An skin artifact declaration.
 12  
  * 
 13  
  * @version $Revision$ $Date$
 14  
  */
 15  
 @SuppressWarnings( "all" )
 16  72
 public class Skin
 17  
     implements java.io.Serializable, java.lang.Cloneable
 18  
 {
 19  
 
 20  
       //--------------------------/
 21  
      //- Class/Member Variables -/
 22  
     //--------------------------/
 23  
 
 24  
     /**
 25  
      * The skin group ID.
 26  
      */
 27  
     private String groupId;
 28  
 
 29  
     /**
 30  
      * The skin artifact ID.
 31  
      */
 32  
     private String artifactId;
 33  
 
 34  
     /**
 35  
      * The skin version.
 36  
      */
 37  
     private String version;
 38  
 
 39  
 
 40  
       //-----------/
 41  
      //- Methods -/
 42  
     //-----------/
 43  
 
 44  
     /**
 45  
      * Method clone.
 46  
      * 
 47  
      * @return Skin
 48  
      */
 49  
     public Skin clone()
 50  
     {
 51  
         try
 52  
         {
 53  24
             Skin copy = (Skin) super.clone();
 54  
 
 55  24
             return copy;
 56  
         }
 57  0
         catch ( java.lang.Exception ex )
 58  
         {
 59  0
             throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
 60  
                 + " does not support clone()" ).initCause( ex );
 61  
         }
 62  
     } //-- Skin clone()
 63  
 
 64  
     /**
 65  
      * Method equals.
 66  
      * 
 67  
      * @param other
 68  
      * @return boolean
 69  
      */
 70  
     public boolean equals( Object other )
 71  
     {
 72  60
         if ( this == other )
 73  
         {
 74  0
             return true;
 75  
         }
 76  
 
 77  60
         if ( !( other instanceof Skin ) )
 78  
         {
 79  0
             return false;
 80  
         }
 81  
 
 82  60
         Skin that = (Skin) other;
 83  60
         boolean result = true;
 84  
 
 85  60
         result = result && ( getGroupId() == null ? that.getGroupId() == null : getGroupId().equals( that.getGroupId() ) );
 86  60
         result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) );
 87  60
         result = result && ( getVersion() == null ? that.getVersion() == null : getVersion().equals( that.getVersion() ) );
 88  
 
 89  60
         return result;
 90  
     } //-- boolean equals( Object )
 91  
 
 92  
     /**
 93  
      * Get the skin artifact ID.
 94  
      * 
 95  
      * @return String
 96  
      */
 97  
     public String getArtifactId()
 98  
     {
 99  180
         return this.artifactId;
 100  
     } //-- String getArtifactId()
 101  
 
 102  
     /**
 103  
      * Get the skin group ID.
 104  
      * 
 105  
      * @return String
 106  
      */
 107  
     public String getGroupId()
 108  
     {
 109  180
         return this.groupId;
 110  
     } //-- String getGroupId()
 111  
 
 112  
     /**
 113  
      * Get the skin version.
 114  
      * 
 115  
      * @return String
 116  
      */
 117  
     public String getVersion()
 118  
     {
 119  120
         return this.version;
 120  
     } //-- String getVersion()
 121  
 
 122  
     /**
 123  
      * Method hashCode.
 124  
      * 
 125  
      * @return int
 126  
      */
 127  
     public int hashCode()
 128  
     {
 129  0
         int result = 17;
 130  
 
 131  0
         result = 37 * result + ( groupId != null ? groupId.hashCode() : 0 );
 132  0
         result = 37 * result + ( artifactId != null ? artifactId.hashCode() : 0 );
 133  0
         result = 37 * result + ( version != null ? version.hashCode() : 0 );
 134  
 
 135  0
         return result;
 136  
     } //-- int hashCode()
 137  
 
 138  
     /**
 139  
      * Set the skin artifact ID.
 140  
      * 
 141  
      * @param artifactId
 142  
      */
 143  
     public void setArtifactId( String artifactId )
 144  
     {
 145  72
         this.artifactId = artifactId;
 146  72
     } //-- void setArtifactId( String )
 147  
 
 148  
     /**
 149  
      * Set the skin group ID.
 150  
      * 
 151  
      * @param groupId
 152  
      */
 153  
     public void setGroupId( String groupId )
 154  
     {
 155  72
         this.groupId = groupId;
 156  72
     } //-- void setGroupId( String )
 157  
 
 158  
     /**
 159  
      * Set the skin version.
 160  
      * 
 161  
      * @param version
 162  
      */
 163  
     public void setVersion( String version )
 164  
     {
 165  0
         this.version = version;
 166  0
     } //-- void setVersion( String )
 167  
 
 168  
     /**
 169  
      * Method toString.
 170  
      * 
 171  
      * @return String
 172  
      */
 173  
     public java.lang.String toString()
 174  
     {
 175  0
         StringBuilder buf = new StringBuilder( 128 );
 176  
 
 177  0
         buf.append( "groupId = '" );
 178  0
         buf.append( getGroupId() );
 179  0
         buf.append( "'" );
 180  0
         buf.append( "\n" ); 
 181  0
         buf.append( "artifactId = '" );
 182  0
         buf.append( getArtifactId() );
 183  0
         buf.append( "'" );
 184  0
         buf.append( "\n" ); 
 185  0
         buf.append( "version = '" );
 186  0
         buf.append( getVersion() );
 187  0
         buf.append( "'" );
 188  
 
 189  0
         return buf.toString();
 190  
     } //-- java.lang.String toString()
 191  
 
 192  
     
 193  
             
 194  
     /**
 195  
      * @return the default skin <code>org.apache.maven.skins:maven-default-skin</code>.
 196  
      */
 197  
     public static Skin getDefaultSkin()
 198  
     {
 199  0
         Skin skin = new Skin();
 200  0
         skin.setGroupId( "org.apache.maven.skins" );
 201  0
         skin.setArtifactId( "maven-default-skin" );
 202  0
         skin.setVersion( "1.0" );
 203  0
         return skin;
 204  
     }
 205  
             
 206  
           
 207  
 }