1 package org.apache.maven.plugin.descriptor; 2 3 18 19 23 public class Parameter 24 { 25 private String alias; 26 27 private String name; 28 29 private String type; 30 31 private boolean required; 32 33 private boolean editable = true; 34 35 private String description; 36 37 private String expression; 38 39 private String deprecated; 40 41 private String defaultValue; 42 43 private Requirement requirement; 44 45 49 public String getName() 50 { 51 return name; 52 } 53 54 public void setName( String name ) 55 { 56 this.name = name; 57 } 58 59 public String getType() 60 { 61 return type; 62 } 63 64 public void setType( String type ) 65 { 66 this.type = type; 67 } 68 69 public boolean isRequired() 70 { 71 return required; 72 } 73 74 public void setRequired( boolean required ) 75 { 76 this.required = required; 77 } 78 79 public String getDescription() 80 { 81 return description; 82 } 83 84 public void setDescription( String description ) 85 { 86 this.description = description; 87 } 88 89 public String getExpression() 90 { 91 return expression; 92 } 93 94 public void setExpression( String expression ) 95 { 96 this.expression = expression; 97 } 98 99 public String getDeprecated() 100 { 101 return deprecated; 102 } 103 104 public void setDeprecated( String deprecated ) 105 { 106 this.deprecated = deprecated; 107 } 108 109 public int hashCode() 110 { 111 return name.hashCode(); 112 } 113 114 public boolean equals( Object other ) 115 { 116 return ( other instanceof Parameter ) && getName().equals( ( (Parameter) other ).getName() ); 117 } 118 119 public String getAlias() 120 { 121 return alias; 122 } 123 124 public void setAlias( String alias ) 125 { 126 this.alias = alias; 127 } 128 129 public boolean isEditable() 130 { 131 return editable; 132 } 133 134 public void setEditable( boolean editable ) 135 { 136 this.editable = editable; 137 } 138 139 public void setDefaultValue( String defaultValue ) 140 { 141 this.defaultValue = defaultValue; 142 } 143 144 public String getDefaultValue() 145 { 146 return defaultValue; 147 } 148 149 public String toString() 150 { 151 return "Mojo parameter [name: \'" + getName() + "\'; alias: \'" + getAlias() + "\']"; 152 } 153 154 public Requirement getRequirement() 155 { 156 return requirement; 157 } 158 159 public void setRequirement( Requirement requirement ) 160 { 161 this.requirement = requirement; 162 } 163 } 164 | Popular Tags |