View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.tools.plugin;
20  
21  import java.net.URI;
22  
23  import org.apache.maven.plugin.descriptor.Parameter;
24  import org.apache.maven.plugin.descriptor.Requirement;
25  
26  /**
27   * Wrapper around regular {@link Parameter} which adds capability to
28   * read/write a type javadoc URL
29   */
30  public class EnhancedParameterWrapper extends Parameter {
31      private final Parameter delegate;
32      private URI typeJavadocUrl;
33  
34      public EnhancedParameterWrapper(Parameter delegate) {
35          super();
36          this.delegate = delegate;
37      }
38  
39      public String getName() {
40          return delegate.getName();
41      }
42  
43      public void setName(String name) {
44          delegate.setName(name);
45      }
46  
47      public String getType() {
48          return delegate.getType();
49      }
50  
51      public void setType(String type) {
52          delegate.setType(type);
53      }
54  
55      public boolean isRequired() {
56          return delegate.isRequired();
57      }
58  
59      public void setRequired(boolean required) {
60          delegate.setRequired(required);
61      }
62  
63      public String getDescription() {
64          return delegate.getDescription();
65      }
66  
67      public void setDescription(String description) {
68          delegate.setDescription(description);
69      }
70  
71      public String getExpression() {
72          return delegate.getExpression();
73      }
74  
75      public void setExpression(String expression) {
76          delegate.setExpression(expression);
77      }
78  
79      public String getDeprecated() {
80          return delegate.getDeprecated();
81      }
82  
83      public void setDeprecated(String deprecated) {
84          delegate.setDeprecated(deprecated);
85      }
86  
87      public int hashCode() {
88          return delegate.hashCode();
89      }
90  
91      public boolean equals(Object other) {
92          return delegate.equals(other);
93      }
94  
95      public String getAlias() {
96          return delegate.getAlias();
97      }
98  
99      public void setAlias(String alias) {
100         delegate.setAlias(alias);
101     }
102 
103     public boolean isEditable() {
104         return delegate.isEditable();
105     }
106 
107     public void setEditable(boolean editable) {
108         delegate.setEditable(editable);
109     }
110 
111     public void setDefaultValue(String defaultValue) {
112         delegate.setDefaultValue(defaultValue);
113     }
114 
115     public String getDefaultValue() {
116         return delegate.getDefaultValue();
117     }
118 
119     public String toString() {
120         return delegate.toString();
121     }
122 
123     public Requirement getRequirement() {
124         return delegate.getRequirement();
125     }
126 
127     public void setRequirement(Requirement requirement) {
128         delegate.setRequirement(requirement);
129     }
130 
131     public String getImplementation() {
132         return delegate.getImplementation();
133     }
134 
135     public void setImplementation(String implementation) {
136         delegate.setImplementation(implementation);
137     }
138 
139     public String getSince() {
140         return delegate.getSince();
141     }
142 
143     public void setSince(String since) {
144         delegate.setSince(since);
145     }
146 
147     public Parameter clone() {
148         return delegate.clone();
149     }
150 
151     public URI getTypeJavadocUrl() {
152         return typeJavadocUrl;
153     }
154 
155     public void setTypeJavadocUrl(URI typeJavadocUrl) {
156         this.typeJavadocUrl = typeJavadocUrl;
157     }
158 }