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