01: // Copyright 2007 The Apache Software Foundation
02: //
03: // Licensed under the Apache License, Version 2.0 (the "License");
04: // you may not use this file except in compliance with the License.
05: // You may obtain a copy of the License at
06: //
07: // http://www.apache.org/licenses/LICENSE-2.0
08: //
09: // Unless required by applicable law or agreed to in writing, software
10: // distributed under the License is distributed on an "AS IS" BASIS,
11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: // See the License for the specific language governing permissions and
13: // limitations under the License.
14:
15: package org.apache.tapestry.mojo;
16:
17: public class ParameterDescription {
18: private final String _name;
19:
20: private final String _type;
21:
22: private final String _defaultValue;
23:
24: private final String _defaultPrefix;
25:
26: private final boolean _required;
27:
28: private final boolean _cache;
29:
30: private final String _description;
31:
32: public ParameterDescription(String name, String type,
33: String defaultValue, String defaultPrefix,
34: boolean required, boolean cache, String description) {
35: _name = name;
36: _type = type;
37: _defaultValue = defaultValue;
38: _defaultPrefix = defaultPrefix;
39: _required = required;
40: _cache = cache;
41: _description = description;
42: }
43:
44: public boolean getCache() {
45: return _cache;
46: }
47:
48: public String getDefaultPrefix() {
49: return _defaultPrefix;
50: }
51:
52: public String getDefaultValue() {
53: return _defaultValue;
54: }
55:
56: public String getDescription() {
57: return _description;
58: }
59:
60: public String getName() {
61: return _name;
62: }
63:
64: public boolean getRequired() {
65: return _required;
66: }
67:
68: public String getType() {
69: return _type;
70: }
71:
72: }
|