Coverage Report - org.apache.maven.plugin.descriptor.Parameter
 
Classes in this File Line Coverage Branch Coverage Complexity
Parameter
0 %
0/41
0 %
0/4
1
 
 1  
 package org.apache.maven.plugin.descriptor;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *  http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 /**
 23  
  * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
 24  
  * @version $Id: Parameter.java 495147 2007-01-11 07:47:53Z jvanzyl $
 25  
  */
 26  0
 public class Parameter
 27  
 {
 28  
     private String alias;
 29  
 
 30  
     private String name;
 31  
 
 32  
     private String type;
 33  
 
 34  
     private boolean required;
 35  
 
 36  0
     private boolean editable = true;
 37  
 
 38  
     private String description;
 39  
 
 40  
     private String expression;
 41  
 
 42  
     private String deprecated;
 43  
 
 44  
     private String defaultValue;
 45  
 
 46  
     private String implementation;
 47  
 
 48  
     private Requirement requirement;
 49  
 
 50  
     private String since;
 51  
 
 52  
     // ----------------------------------------------------------------------
 53  
     //
 54  
     // ----------------------------------------------------------------------
 55  
 
 56  
     public String getName()
 57  
     {
 58  0
         return name;
 59  
     }
 60  
 
 61  
     public void setName( String name )
 62  
     {
 63  0
         this.name = name;
 64  0
     }
 65  
 
 66  
     public String getType()
 67  
     {
 68  0
         return type;
 69  
     }
 70  
 
 71  
     public void setType( String type )
 72  
     {
 73  0
         this.type = type;
 74  0
     }
 75  
 
 76  
     public boolean isRequired()
 77  
     {
 78  0
         return required;
 79  
     }
 80  
 
 81  
     public void setRequired( boolean required )
 82  
     {
 83  0
         this.required = required;
 84  0
     }
 85  
 
 86  
     public String getDescription()
 87  
     {
 88  0
         return description;
 89  
     }
 90  
 
 91  
     public void setDescription( String description )
 92  
     {
 93  0
         this.description = description;
 94  0
     }
 95  
 
 96  
     public String getExpression()
 97  
     {
 98  0
         return expression;
 99  
     }
 100  
 
 101  
     public void setExpression( String expression )
 102  
     {
 103  0
         this.expression = expression;
 104  0
     }
 105  
 
 106  
     public String getDeprecated()
 107  
     {
 108  0
         return deprecated;
 109  
     }
 110  
 
 111  
     public void setDeprecated( String deprecated )
 112  
     {
 113  0
         this.deprecated = deprecated;
 114  0
     }
 115  
 
 116  
     public int hashCode()
 117  
     {
 118  0
         return name.hashCode();
 119  
     }
 120  
 
 121  
     public boolean equals( Object other )
 122  
     {
 123  0
         return ( other instanceof Parameter ) && getName().equals( ( (Parameter) other ).getName() );
 124  
     }
 125  
 
 126  
     public String getAlias()
 127  
     {
 128  0
         return alias;
 129  
     }
 130  
 
 131  
     public void setAlias( String alias )
 132  
     {
 133  0
         this.alias = alias;
 134  0
     }
 135  
 
 136  
     public boolean isEditable()
 137  
     {
 138  0
         return editable;
 139  
     }
 140  
 
 141  
     public void setEditable( boolean editable )
 142  
     {
 143  0
         this.editable = editable;
 144  0
     }
 145  
 
 146  
     public void setDefaultValue( String defaultValue )
 147  
     {
 148  0
         this.defaultValue = defaultValue;
 149  0
     }
 150  
 
 151  
     public String getDefaultValue()
 152  
     {
 153  0
         return defaultValue;
 154  
     }
 155  
 
 156  
     public String toString()
 157  
     {
 158  0
         return "Mojo parameter [name: \'" + getName() + "\'; alias: \'" + getAlias() + "\']";
 159  
     }
 160  
 
 161  
     public Requirement getRequirement()
 162  
     {
 163  0
         return requirement;
 164  
     }
 165  
 
 166  
     public void setRequirement( Requirement requirement )
 167  
     {
 168  0
         this.requirement = requirement;
 169  0
     }
 170  
 
 171  
     public String getImplementation()
 172  
     {
 173  0
         return implementation;
 174  
     }
 175  
 
 176  
     public void setImplementation( String implementation )
 177  
     {
 178  0
         this.implementation = implementation;
 179  0
     }
 180  
 
 181  
     public String getSince()
 182  
     {
 183  0
         return since;
 184  
     }
 185  
 
 186  
     public void setSince( String since )
 187  
     {
 188  0
         this.since = since;
 189  0
     }
 190  
 }