Coverage Report - org.apache.maven.archetype.common.ArchetypeDefinition
 
Classes in this File Line Coverage Branch Coverage Complexity
ArchetypeDefinition
0 %
0/32
0 %
0/8
1
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.3 on 2010-04-23 01:00:20,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.archetype.common;
 9  
 
 10  
 /**
 11  
  * Class ArchetypeDefinition.
 12  
  * 
 13  
  * @version $Revision$ $Date$
 14  
  */
 15  0
 public class ArchetypeDefinition
 16  
     implements java.io.Serializable
 17  
 {
 18  
 
 19  
       //--------------------------/
 20  
      //- Class/Member Variables -/
 21  
     //--------------------------/
 22  
 
 23  
     /**
 24  
      * Field GroupId.
 25  
      */
 26  
     private String GroupId;
 27  
 
 28  
     /**
 29  
      * Field ArtifactId.
 30  
      */
 31  
     private String ArtifactId;
 32  
 
 33  
     /**
 34  
      * Field Version.
 35  
      */
 36  
     private String Version;
 37  
 
 38  
     /**
 39  
      * Field Name.
 40  
      */
 41  
     private String Name;
 42  
 
 43  
     /**
 44  
      * Field repository.
 45  
      */
 46  
     private String repository;
 47  
 
 48  
     /**
 49  
      * Field goals.
 50  
      */
 51  
     private String goals;
 52  
 
 53  
     /**
 54  
      * Field modelEncoding.
 55  
      */
 56  0
     private String modelEncoding = "UTF-8";
 57  
 
 58  
 
 59  
       //-----------/
 60  
      //- Methods -/
 61  
     //-----------/
 62  
 
 63  
     /**
 64  
      * Get the ArtifactId field.
 65  
      * 
 66  
      * @return String
 67  
      */
 68  
     public String getArtifactId()
 69  
     {
 70  0
         return this.ArtifactId;
 71  
     } //-- String getArtifactId()
 72  
 
 73  
     /**
 74  
      * Get the goals field.
 75  
      * 
 76  
      * @return String
 77  
      */
 78  
     public String getGoals()
 79  
     {
 80  0
         return this.goals;
 81  
     } //-- String getGoals()
 82  
 
 83  
     /**
 84  
      * Get the GroupId field.
 85  
      * 
 86  
      * @return String
 87  
      */
 88  
     public String getGroupId()
 89  
     {
 90  0
         return this.GroupId;
 91  
     } //-- String getGroupId()
 92  
 
 93  
     /**
 94  
      * Get the modelEncoding field.
 95  
      * 
 96  
      * @return String
 97  
      */
 98  
     public String getModelEncoding()
 99  
     {
 100  0
         return this.modelEncoding;
 101  
     } //-- String getModelEncoding()
 102  
 
 103  
     /**
 104  
      * Get the Name field.
 105  
      * 
 106  
      * @return String
 107  
      */
 108  
     public String getName()
 109  
     {
 110  0
         return this.Name;
 111  
     } //-- String getName()
 112  
 
 113  
     /**
 114  
      * Get the repository field.
 115  
      * 
 116  
      * @return String
 117  
      */
 118  
     public String getRepository()
 119  
     {
 120  0
         return this.repository;
 121  
     } //-- String getRepository()
 122  
 
 123  
     /**
 124  
      * Get the Version field.
 125  
      * 
 126  
      * @return String
 127  
      */
 128  
     public String getVersion()
 129  
     {
 130  0
         return this.Version;
 131  
     } //-- String getVersion()
 132  
 
 133  
     /**
 134  
      * Set the ArtifactId field.
 135  
      * 
 136  
      * @param ArtifactId
 137  
      */
 138  
     public void setArtifactId( String ArtifactId )
 139  
     {
 140  0
         this.ArtifactId = ArtifactId;
 141  0
     } //-- void setArtifactId( String )
 142  
 
 143  
     /**
 144  
      * Set the goals field.
 145  
      * 
 146  
      * @param goals
 147  
      */
 148  
     public void setGoals( String goals )
 149  
     {
 150  0
         this.goals = goals;
 151  0
     } //-- void setGoals( String )
 152  
 
 153  
     /**
 154  
      * Set the GroupId field.
 155  
      * 
 156  
      * @param GroupId
 157  
      */
 158  
     public void setGroupId( String GroupId )
 159  
     {
 160  0
         this.GroupId = GroupId;
 161  0
     } //-- void setGroupId( String )
 162  
 
 163  
     /**
 164  
      * Set the modelEncoding field.
 165  
      * 
 166  
      * @param modelEncoding
 167  
      */
 168  
     public void setModelEncoding( String modelEncoding )
 169  
     {
 170  0
         this.modelEncoding = modelEncoding;
 171  0
     } //-- void setModelEncoding( String )
 172  
 
 173  
     /**
 174  
      * Set the Name field.
 175  
      * 
 176  
      * @param Name
 177  
      */
 178  
     public void setName( String Name )
 179  
     {
 180  0
         this.Name = Name;
 181  0
     } //-- void setName( String )
 182  
 
 183  
     /**
 184  
      * Set the repository field.
 185  
      * 
 186  
      * @param repository
 187  
      */
 188  
     public void setRepository( String repository )
 189  
     {
 190  0
         this.repository = repository;
 191  0
     } //-- void setRepository( String )
 192  
 
 193  
     /**
 194  
      * Set the Version field.
 195  
      * 
 196  
      * @param Version
 197  
      */
 198  
     public void setVersion( String Version )
 199  
     {
 200  0
         this.Version = Version;
 201  0
     } //-- void setVersion( String )
 202  
 
 203  
     
 204  
     public void reset ()
 205  
     {
 206  0
         setGroupId ( null );
 207  0
         setArtifactId ( null );
 208  0
         setVersion ( null );
 209  0
     }
 210  
 
 211  
     public boolean isArtifactDefined ()
 212  
     {
 213  0
         return org.codehaus.plexus.util.StringUtils.isNotEmpty( getArtifactId () );
 214  
     }
 215  
 
 216  
     public boolean isDefined ()
 217  
     {
 218  0
         return isPartiallyDefined () && isVersionDefined ();
 219  
     }
 220  
 
 221  
     public boolean isGroupDefined ()
 222  
     {
 223  0
         return org.codehaus.plexus.util.StringUtils.isNotEmpty( getGroupId () );
 224  
     }
 225  
 
 226  
     public boolean isPartiallyDefined ()
 227  
     {
 228  0
         return isGroupDefined () && isArtifactDefined ();
 229  
     }
 230  
 
 231  
     public boolean isVersionDefined ()
 232  
     {
 233  0
         return org.codehaus.plexus.util.StringUtils.isNotEmpty( getVersion () );
 234  
     }
 235  
                     
 236  
 }