001package org.apache.maven.tools.plugin;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *   http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022import java.net.URI;
023
024import org.apache.maven.plugin.descriptor.Parameter;
025import org.apache.maven.plugin.descriptor.Requirement;
026
027/**
028 * Wrapper around regular {@link Parameter} which adds capability to
029 * read/write a type javadoc URL
030 */
031public class EnhancedParameterWrapper
032    extends Parameter
033{
034    private final Parameter delegate;
035    private URI typeJavadocUrl;
036    
037    public EnhancedParameterWrapper( Parameter delegate )
038    {
039        super();
040        this.delegate = delegate;
041    }
042
043    public String getName()
044    {
045        return delegate.getName();
046    }
047
048    public void setName( String name )
049    {
050        delegate.setName( name );
051    }
052
053    public String getType()
054    {
055        return delegate.getType();
056    }
057
058    public void setType( String type )
059    {
060        delegate.setType( type );
061    }
062
063    public boolean isRequired()
064    {
065        return delegate.isRequired();
066    }
067
068    public void setRequired( boolean required )
069    {
070        delegate.setRequired( required );
071    }
072
073    public String getDescription()
074    {
075        return delegate.getDescription();
076    }
077
078    public void setDescription( String description )
079    {
080        delegate.setDescription( description );
081    }
082
083    public String getExpression()
084    {
085        return delegate.getExpression();
086    }
087
088    public void setExpression( String expression )
089    {
090        delegate.setExpression( expression );
091    }
092
093    public String getDeprecated()
094    {
095        return delegate.getDeprecated();
096    }
097
098    public void setDeprecated( String deprecated )
099    {
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}