Coverage Report - org.apache.maven.doxia.site.decoration.Version
 
Classes in this File Line Coverage Branch Coverage Complexity
Version
50%
12/24
35%
5/14
2,667
 
 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  
  * Modify display properties for version published.
 12  
  * 
 13  
  * @version $Revision$ $Date$
 14  
  */
 15  
 @SuppressWarnings( "all" )
 16  54
 public class Version
 17  
     implements java.io.Serializable, java.lang.Cloneable
 18  
 {
 19  
 
 20  
       //--------------------------/
 21  
      //- Class/Member Variables -/
 22  
     //--------------------------/
 23  
 
 24  
     /**
 25  
      * Where to place the version published (left, right,
 26  
      * navigation-top, navigation-bottom, bottom).
 27  
      */
 28  
     private String position;
 29  
 
 30  
 
 31  
       //-----------/
 32  
      //- Methods -/
 33  
     //-----------/
 34  
 
 35  
     /**
 36  
      * Method clone.
 37  
      * 
 38  
      * @return Version
 39  
      */
 40  
     public Version clone()
 41  
     {
 42  
         try
 43  
         {
 44  12
             Version copy = (Version) super.clone();
 45  
 
 46  12
             return copy;
 47  
         }
 48  0
         catch ( java.lang.Exception ex )
 49  
         {
 50  0
             throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
 51  
                 + " does not support clone()" ).initCause( ex );
 52  
         }
 53  
     } //-- Version clone()
 54  
 
 55  
     /**
 56  
      * Method equals.
 57  
      * 
 58  
      * @param other
 59  
      * @return boolean
 60  
      */
 61  
     public boolean equals( Object other )
 62  
     {
 63  42
         if ( this == other )
 64  
         {
 65  0
             return true;
 66  
         }
 67  
 
 68  42
         if ( !( other instanceof Version ) )
 69  
         {
 70  0
             return false;
 71  
         }
 72  
 
 73  42
         Version that = (Version) other;
 74  42
         boolean result = true;
 75  
 
 76  42
         result = result && ( getPosition() == null ? that.getPosition() == null : getPosition().equals( that.getPosition() ) );
 77  
 
 78  42
         return result;
 79  
     } //-- boolean equals( Object )
 80  
 
 81  
     /**
 82  
      * Get where to place the version published (left, right,
 83  
      * navigation-top, navigation-bottom, bottom).
 84  
      * 
 85  
      * @return String
 86  
      */
 87  
     public String getPosition()
 88  
     {
 89  126
         return this.position;
 90  
     } //-- String getPosition()
 91  
 
 92  
     /**
 93  
      * Method hashCode.
 94  
      * 
 95  
      * @return int
 96  
      */
 97  
     public int hashCode()
 98  
     {
 99  0
         int result = 17;
 100  
 
 101  0
         result = 37 * result + ( position != null ? position.hashCode() : 0 );
 102  
 
 103  0
         return result;
 104  
     } //-- int hashCode()
 105  
 
 106  
     /**
 107  
      * Set where to place the version published (left, right,
 108  
      * navigation-top, navigation-bottom, bottom).
 109  
      * 
 110  
      * @param position
 111  
      */
 112  
     public void setPosition( String position )
 113  
     {
 114  54
         this.position = position;
 115  54
     } //-- void setPosition( String )
 116  
 
 117  
     /**
 118  
      * Method toString.
 119  
      * 
 120  
      * @return String
 121  
      */
 122  
     public java.lang.String toString()
 123  
     {
 124  0
         StringBuilder buf = new StringBuilder( 128 );
 125  
 
 126  0
         buf.append( "position = '" );
 127  0
         buf.append( getPosition() );
 128  0
         buf.append( "'" );
 129  
 
 130  0
         return buf.toString();
 131  
     } //-- java.lang.String toString()
 132  
 
 133  
 }