001    /*
002     * Copyright 2005 The Apache Software Foundation
003     * Copyright 2005 Stephen McConnell
004     *
005     * Licensed under the Apache License, Version 2.0 (the "License");
006     * you may not use this file except in compliance with the License.
007     * You may obtain a copy of the License at
008     *
009     *     http://www.apache.org/licenses/LICENSE-2.0
010     *
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed under the License is distributed on an "AS IS" BASIS,
013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     * See the License for the specific language governing permissions and
015     * limitations under the License.
016     */
017    package net.dpml.cli.resource;
018    
019    /**
020     * Common resurce constants.
021     * @author <a href="http://www.dpml.net">Digital Product Meta Library</a>
022     * @version 1.0.0
023     */
024    public abstract class ResourceConstants
025    {
026       /**
027        * Bad classname constant.
028        */
029        public static final String CLASSVALIDATOR_BAD_CLASSNAME = "ClassValidator.bad.classname";
030        
031       /**
032        * Class not found constant.
033        */
034        public static final String CLASSVALIDATOR_CLASS_NOTFOUND = "ClassValidator.class.notfound";
035        
036       /**
037        * Class access constant.
038        */
039        public static final String CLASSVALIDATOR_CLASS_ACCESS = "ClassValidator.class.access";
040        
041       /**
042        * Class creation constant.
043        */
044        public static final String CLASSVALIDATOR_CLASS_CREATE = "ClassValidator.class.create";
045        
046       /**
047        * Date out of range constant.
048        */
049        public static final String DATEVALIDATOR_DATE_OUTOFRANGE = "DateValidator.date.OutOfRange";
050        
051       /**
052        * Malformed uri constant.
053        */
054        public static final String URIVALIDATOR_MALFORMED_URI = "URIValidator.malformed.URI";
055        
056       /**
057        * Malformed url constant.
058        */
059        public static final String URLVALIDATOR_MALFORMED_URL = "URLValidator.malformed.URL";
060        
061       /**
062        * Number out-of-range constant.
063        */
064        public static final String NUMBERVALIDATOR_NUMBER_OUTOFRANGE =
065            "NumberValidator.number.OutOfRange";
066        
067       /**
068        * Unexpected argument value constant.
069        */
070        public static final String ARGUMENT_UNEXPECTED_VALUE = "Argument.unexpected.value";
071        
072       /**
073        * Minimum greater than maximum error constant.
074        */
075        public static final String ARGUMENT_MIN_EXCEEDS_MAX = "Argument.minimum.exceeds.maximum";
076    
077       /**
078        * Too few defaults error constant.
079        */
080        public static final String ARGUMENT_TOO_FEW_DEFAULTS = "Argument.too.few.defaults";
081        
082       /**
083        * Too many defaults error constant.
084        */
085        public static final String ARGUMENT_TOO_MANY_DEFAULTS = "Argument.too.many.defaults";
086        
087       /**
088        * Missing argument error constant.
089        */
090        public static final String ARGUMENT_MISSING_VALUES = "Argument.missing.values";
091        
092       /**
093        * Too many argument values error constant.
094        */
095        public static final String ARGUMENT_TOO_MANY_VALUES = "Argument.too.many.values";
096        
097       /**
098        * Missing trigger prefix error constant.
099        */
100        public static final String OPTION_TRIGGER_NEEDS_PREFIX = "Option.trigger.needs.prefix";
101        
102       /**
103        * Missing required option error constant.
104        */
105        public static final String OPTION_MISSING_REQUIRED = "Option.missing.required";
106        
107       /**
108        * Missing option name error constant.
109        */
110        public static final String OPTION_NO_NAME = "Option.no.name";
111        
112       /**
113        * Illegal long prefix error constant.
114        */
115        public static final String OPTION_ILLEGAL_LONG_PREFIX = "Option.illegal.long.prefix";
116        
117       /**
118        * Illegal short prefix error constant.
119        */
120        public static final String OPTION_ILLEGAL_SHORT_PREFIX = "Option.illegal.short.prefix";
121        
122       /**
123        * Unexpected token error constant.
124        */
125        public static final String UNEXPECTED_TOKEN = "Unexpected.token";
126        
127       /**
128        * Missing option error constant.
129        */
130        public static final String MISSING_OPTION = "Missing.option";
131        
132       /**
133        * Cannot burst error constant.
134        */
135        public static final String CANNOT_BURST = "Cannot.burst";
136        
137       /**
138        * Preferenced commmand name too long error constant.
139        */
140        public static final String COMMAND_PREFERRED_NAME_TOO_SHORT = "Command.preferredName.too.short";
141        
142       /**
143        * Preferenced commmand name too long error constant.
144        */
145        public static final String SWITCH_ILLEGAL_ENABLED_PREFIX = "Option.illegal.enabled.prefix";
146        
147       /**
148        * Illegal disabled prefix error constant.
149        */
150        public static final String SWITCH_ILLEGAL_DISABLED_PREFIX = "Option.illegal.disabled.prefix";
151        
152       /**
153        * Illegal duplicate prefix error constant.
154        */
155        public static final String SWITCH_IDENTICAL_PREFIXES = "Option.identical.prefixes";
156        
157       /**
158        * Switch already set error constant.
159        */
160        public static final String SWITCH_ALREADY_SET = "Switch.already.set";
161        
162       /**
163        * No enabled prefix error constant.
164        */
165        public static final String SWITCH_NO_ENABLED_PREFIX = "Switch.no.enabledPrefix";
166        
167       /**
168        * No disabled prefix error constant.
169        */
170        public static final String SWITCH_NO_DISABLED_PREFIX = "Switch.no.disabledPrefix";
171        
172       /**
173        * Switch enabled starts with disabled error constant.
174        */
175        public static final String SWITCH_ENABLED_STARTS_WITH_DISABLED =
176            "Switch.enabled.startsWith.disabled";
177        
178       /**
179        * Switch disabled starts with enabled error constant.
180        */
181        public static final String SWITCH_DISABLED_STARTWS_WITH_ENABLED =
182            "Switch.disabled.startsWith.enabled";
183        
184       /**
185        * Switch preferred name too short error constant.
186        */
187        public static final String SWITCH_PREFERRED_NAME_TOO_SHORT = "Switch.preferredName.too.short";
188        
189       /**
190        * Source dest must enforce values error constant.
191        */
192        public static final String SOURCE_DEST_MUST_ENFORCE_VALUES = "SourceDest.must.enforce.values";
193        
194       /**
195        * Gutter too long error constant.
196        */
197        public static final String HELPFORMATTER_GUTTER_TOO_LONG = "HelpFormatter.gutter.too.long";
198        
199       /**
200        * Width too narrow error constant.
201        */
202        public static final String HELPFORMATTER_WIDTH_TOO_NARROW = "HelpFormatter.width.too.narrow";
203        
204       /**
205        * Illegal emumeration value error constant.
206        */
207        public static final String ENUM_ILLEGAL_VALUE = "Enum.illegal.value";
208        
209       /**
210        * Null consume remaining error constant.
211        */
212        public static final String ARGUMENT_BUILDER_NULL_CONSUME_REMAINING = "ArgumentBuilder.null.consume.remaining";
213        
214       /**
215        * Empty consume remaining error constant.
216        */
217        public static final String ARGUMENT_BUILDER_EMPTY_CONSUME_REMAINING = "ArgumentBuilder.empty.consume.remaining";
218        
219       /**
220        * Null default error constant.
221        */
222        public static final String ARGUMENT_BUILDER_NULL_DEFAULT = "ArgumentBuilder.null.default";
223        
224       /**
225        * Null defaults error constant.
226        */
227        public static final String ARGUMENT_BUILDER_NULL_DEFAULTS = "ArgumentBuilder.null.defaults";
228        
229       /**
230        * Negative maximum error constant.
231        */
232        public static final String ARGUMENT_BUILDER_NEGATIVE_MAXIMUM = "ArgumentBuilder.negative.maximum";
233        
234       /**
235        * Negative minimum error constant.
236        */
237        public static final String ARGUMENT_BUILDER_NEGATIVE_MINIMUM = "ArgumentBuilder.negative.minimum";
238        
239       /**
240        * Null name error constant.
241        */
242        public static final String ARGUMENT_BUILDER_NULL_NAME = "ArgumentBuilder.null.name";
243        
244       /**
245        * Empty name error constant.
246        */
247        public static final String ARGUMENT_BUILDER_EMPTY_NAME = "ArgumentBuilder.empty.name";
248        
249       /**
250        * Null validator argument error constant.
251        */
252        public static final String ARGUMENT_BUILDER_NULL_VALIDATOR = "ArgumentBuilder.null.validator";
253    
254    }