View Javadoc
1   package org.apache.maven.tools.plugin;
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  import java.net.URI;
23  
24  import org.apache.maven.plugin.descriptor.Parameter;
25  import org.apache.maven.plugin.descriptor.Requirement;
26  
27  /**
28   * Wrapper around regular {@link Parameter} which adds capability to
29   * read/write a type javadoc URL
30   */
31  public class EnhancedParameterWrapper
32      extends Parameter
33  {
34      private final Parameter delegate;
35      private URI typeJavadocUrl;
36      
37      public EnhancedParameterWrapper( Parameter delegate )
38      {
39          super();
40          this.delegate = delegate;
41      }
42  
43      public String getName()
44      {
45          return delegate.getName();
46      }
47  
48      public void setName( String name )
49      {
50          delegate.setName( name );
51      }
52  
53      public String getType()
54      {
55          return delegate.getType();
56      }
57  
58      public void setType( String type )
59      {
60          delegate.setType( type );
61      }
62  
63      public boolean isRequired()
64      {
65          return delegate.isRequired();
66      }
67  
68      public void setRequired( boolean required )
69      {
70          delegate.setRequired( required );
71      }
72  
73      public String getDescription()
74      {
75          return delegate.getDescription();
76      }
77  
78      public void setDescription( String description )
79      {
80          delegate.setDescription( description );
81      }
82  
83      public String getExpression()
84      {
85          return delegate.getExpression();
86      }
87  
88      public void setExpression( String expression )
89      {
90          delegate.setExpression( expression );
91      }
92  
93      public String getDeprecated()
94      {
95          return delegate.getDeprecated();
96      }
97  
98      public void setDeprecated( String deprecated )
99      {
100         delegate.setDeprecated( deprecated );
101     }
102 
103     public int hashCode()
104     {
105         return delegate.hashCode();
106     }
107 
108     public boolean equals( Object other )
109     {
110         return delegate.equals( other );
111     }
112 
113     public String getAlias()
114     {
115         return delegate.getAlias();
116     }
117 
118     public void setAlias( String alias )
119     {
120         delegate.setAlias( alias );
121     }
122 
123     public boolean isEditable()
124     {
125         return delegate.isEditable();
126     }
127 
128     public void setEditable( boolean editable )
129     {
130         delegate.setEditable( editable );
131     }
132 
133     public void setDefaultValue( String defaultValue )
134     {
135         delegate.setDefaultValue( defaultValue );
136     }
137 
138     public String getDefaultValue()
139     {
140         return delegate.getDefaultValue();
141     }
142 
143     public String toString()
144     {
145         return delegate.toString();
146     }
147 
148     public Requirement getRequirement()
149     {
150         return delegate.getRequirement();
151     }
152 
153     public void setRequirement( Requirement requirement )
154     {
155         delegate.setRequirement( requirement );
156     }
157 
158     public String getImplementation()
159     {
160         return delegate.getImplementation();
161     }
162 
163     public void setImplementation( String implementation )
164     {
165         delegate.setImplementation( implementation );
166     }
167 
168     public String getSince()
169     {
170         return delegate.getSince();
171     }
172 
173     public void setSince( String since )
174     {
175         delegate.setSince( since );
176     }
177 
178     public Parameter clone()
179     {
180         return delegate.clone();
181     }
182 
183     public URI getTypeJavadocUrl()
184     {
185         return typeJavadocUrl;
186     }
187 
188     public void setTypeJavadocUrl( URI typeJavadocUrl )
189     {
190         this.typeJavadocUrl = typeJavadocUrl;
191     }
192 }