|
1 | | -/* |
2 | | - * Licensed to the Apache Software Foundation (ASF) under one |
3 | | - * or more contributor license agreements. See the NOTICE file |
4 | | - * distributed with this work for additional information |
5 | | - * regarding copyright ownership. The ASF licenses this file |
6 | | - * to you under the Apache License, Version 2.0 (the |
7 | | - * "License"); you may not use this file except in compliance |
8 | | - * with the License. You may obtain a copy of the License at |
9 | | - * |
10 | | - * http://www.apache.org/licenses/LICENSE-2.0 |
11 | | - * |
12 | | - * Unless required by applicable law or agreed to in writing, |
13 | | - * software distributed under the License is distributed on an |
14 | | - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
15 | | - * KIND, either express or implied. See the License for the |
16 | | - * specific language governing permissions and limitations |
17 | | - * under the License. |
18 | | - */ |
19 | | -package org.apache.commons.cli2.resource; |
20 | | - |
21 | | -public abstract class ResourceConstants { |
22 | | - public static final String CLASSVALIDATOR_BAD_CLASSNAME = "ClassValidator.bad.classname"; |
23 | | - public static final String CLASSVALIDATOR_CLASS_NOTFOUND = "ClassValidator.class.notfound"; |
24 | | - public static final String CLASSVALIDATOR_CLASS_ACCESS = "ClassValidator.class.access"; |
25 | | - public static final String CLASSVALIDATOR_CLASS_CREATE = "ClassValidator.class.create"; |
26 | | - public static final String DATEVALIDATOR_DATE_OUTOFRANGE = "DateValidator.date.OutOfRange"; |
27 | | - public static final String URLVALIDATOR_MALFORMED_URL = "URLValidator.malformed.URL"; |
28 | | - public static final String NUMBERVALIDATOR_NUMBER_OUTOFRANGE = |
29 | | - "NumberValidator.number.OutOfRange"; |
30 | | - public static final String ARGUMENT_UNEXPECTED_VALUE = "Argument.unexpected.value"; |
31 | | - public static final String ARGUMENT_MIN_EXCEEDS_MAX = "Argument.minimum.exceeds.maximum"; |
32 | | - public static final String ARGUMENT_TOO_FEW_DEFAULTS = "Argument.too.few.defaults"; |
33 | | - public static final String ARGUMENT_TOO_MANY_DEFAULTS = "Argument.too.many.defaults"; |
34 | | - public static final String ARGUMENT_MISSING_VALUES = "Argument.missing.values"; |
35 | | - public static final String ARGUMENT_TOO_MANY_VALUES = "Argument.too.many.values"; |
36 | | - public static final String OPTION_TRIGGER_NEEDS_PREFIX = "Option.trigger.needs.prefix"; |
37 | | - public static final String OPTION_MISSING_REQUIRED = "Option.missing.required"; |
38 | | - public static final String OPTION_NO_NAME = "Option.no.name"; |
39 | | - public static final String OPTION_ILLEGAL_LONG_PREFIX = "Option.illegal.long.prefix"; |
40 | | - public static final String OPTION_ILLEGAL_SHORT_PREFIX = "Option.illegal.short.prefix"; |
41 | | - public static final String UNEXPECTED_TOKEN = "Unexpected.token"; |
42 | | - public static final String MISSING_OPTION = "Missing.option"; |
43 | | - public static final String CANNOT_BURST = "Cannot.burst"; |
44 | | - public static final String COMMAND_PREFERRED_NAME_TOO_SHORT = "Command.preferredName.too.short"; |
45 | | - public static final String SWITCH_ILLEGAL_ENABLED_PREFIX = "Option.illegal.enabled.prefix"; |
46 | | - public static final String SWITCH_ILLEGAL_DISABLED_PREFIX = "Option.illegal.disabled.prefix"; |
47 | | - public static final String SWITCH_IDENTICAL_PREFIXES = "Option.identical.prefixes"; |
48 | | - public static final String SWITCH_ALREADY_SET = "Switch.already.set"; |
49 | | - public static final String SWITCH_NO_ENABLED_PREFIX = "Switch.no.enabledPrefix"; |
50 | | - public static final String SWITCH_NO_DISABLED_PREFIX = "Switch.no.disabledPrefix"; |
51 | | - public static final String SWITCH_ENABLED_STARTS_WITH_DISABLED = |
52 | | - "Switch.enabled.startsWith.disabled"; |
53 | | - public static final String SWITCH_DISABLED_STARTWS_WITH_ENABLED = |
54 | | - "Switch.disabled.startsWith.enabled"; |
55 | | - public static final String SWITCH_PREFERRED_NAME_TOO_SHORT = "Switch.preferredName.too.short"; |
56 | | - public static final String SOURCE_DEST_MUST_ENFORCE_VALUES = "SourceDest.must.enforce.values"; |
57 | | - public static final String HELPFORMATTER_GUTTER_TOO_LONG = "HelpFormatter.gutter.too.long"; |
58 | | - public static final String HELPFORMATTER_WIDTH_TOO_NARROW = "HelpFormatter.width.too.narrow"; |
59 | | - public static final String ENUM_ILLEGAL_VALUE = "Enum.illegal.value"; |
60 | | - public static final String ARGUMENT_BUILDER_NULL_CONSUME_REMAINING = "ArgumentBuilder.null.consume.remaining"; |
61 | | - public static final String ARGUMENT_BUILDER_EMPTY_CONSUME_REMAINING = "ArgumentBuilder.empty.consume.remaining"; |
62 | | - public static final String ARGUMENT_BUILDER_NULL_DEFAULT = "ArgumentBuilder.null.default"; |
63 | | - public static final String ARGUMENT_BUILDER_NULL_DEFAULTS = "ArgumentBuilder.null.defaults"; |
64 | | - public static final String ARGUMENT_BUILDER_NEGATIVE_MAXIMUM = "ArgumentBuilder.negative.maximum"; |
65 | | - public static final String ARGUMENT_BUILDER_NEGATIVE_MINIMUM = "ArgumentBuilder.negative.minimum"; |
66 | | - public static final String ARGUMENT_BUILDER_NULL_NAME = "ArgumentBuilder.null.name"; |
67 | | - public static final String ARGUMENT_BUILDER_EMPTY_NAME = "ArgumentBuilder.empty.name"; |
68 | | - public static final String ARGUMENT_BUILDER_NULL_VALIDATOR = "ArgumentBuilder.null.validator"; |
69 | | - |
70 | | -} |
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + * or more contributor license agreements. See the NOTICE file |
| 4 | + * distributed with this work for additional information |
| 5 | + * regarding copyright ownership. The ASF licenses this file |
| 6 | + * to you under the Apache License, Version 2.0 (the |
| 7 | + * "License"); you may not use this file except in compliance |
| 8 | + * with the License. You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
| 19 | +package org.apache.commons.cli2.resource; |
| 20 | + |
| 21 | +public abstract class ResourceConstants { |
| 22 | + public static final String CLASSVALIDATOR_BAD_CLASSNAME = "ClassValidator.bad.classname"; |
| 23 | + public static final String CLASSVALIDATOR_CLASS_NOTFOUND = "ClassValidator.class.notfound"; |
| 24 | + public static final String CLASSVALIDATOR_CLASS_ACCESS = "ClassValidator.class.access"; |
| 25 | + public static final String CLASSVALIDATOR_CLASS_CREATE = "ClassValidator.class.create"; |
| 26 | + public static final String DATEVALIDATOR_DATE_OUTOFRANGE = "DateValidator.date.OutOfRange"; |
| 27 | + public static final String URLVALIDATOR_MALFORMED_URL = "URLValidator.malformed.URL"; |
| 28 | + public static final String NUMBERVALIDATOR_NUMBER_OUTOFRANGE = |
| 29 | + "NumberValidator.number.OutOfRange"; |
| 30 | + public static final String ARGUMENT_UNEXPECTED_VALUE = "Argument.unexpected.value"; |
| 31 | + public static final String ARGUMENT_MIN_EXCEEDS_MAX = "Argument.minimum.exceeds.maximum"; |
| 32 | + public static final String ARGUMENT_TOO_FEW_DEFAULTS = "Argument.too.few.defaults"; |
| 33 | + public static final String ARGUMENT_TOO_MANY_DEFAULTS = "Argument.too.many.defaults"; |
| 34 | + public static final String ARGUMENT_MISSING_VALUES = "Argument.missing.values"; |
| 35 | + public static final String ARGUMENT_TOO_MANY_VALUES = "Argument.too.many.values"; |
| 36 | + public static final String OPTION_TRIGGER_NEEDS_PREFIX = "Option.trigger.needs.prefix"; |
| 37 | + public static final String OPTION_MISSING_REQUIRED = "Option.missing.required"; |
| 38 | + public static final String OPTION_NO_NAME = "Option.no.name"; |
| 39 | + public static final String OPTION_ILLEGAL_LONG_PREFIX = "Option.illegal.long.prefix"; |
| 40 | + public static final String OPTION_ILLEGAL_SHORT_PREFIX = "Option.illegal.short.prefix"; |
| 41 | + public static final String UNEXPECTED_TOKEN = "Unexpected.token"; |
| 42 | + public static final String MISSING_OPTION = "Missing.option"; |
| 43 | + public static final String CANNOT_BURST = "Cannot.burst"; |
| 44 | + public static final String COMMAND_PREFERRED_NAME_TOO_SHORT = "Command.preferredName.too.short"; |
| 45 | + public static final String SWITCH_ILLEGAL_ENABLED_PREFIX = "Option.illegal.enabled.prefix"; |
| 46 | + public static final String SWITCH_ILLEGAL_DISABLED_PREFIX = "Option.illegal.disabled.prefix"; |
| 47 | + public static final String SWITCH_IDENTICAL_PREFIXES = "Option.identical.prefixes"; |
| 48 | + public static final String SWITCH_ALREADY_SET = "Switch.already.set"; |
| 49 | + public static final String SWITCH_NO_ENABLED_PREFIX = "Switch.no.enabledPrefix"; |
| 50 | + public static final String SWITCH_NO_DISABLED_PREFIX = "Switch.no.disabledPrefix"; |
| 51 | + public static final String SWITCH_ENABLED_STARTS_WITH_DISABLED = |
| 52 | + "Switch.enabled.startsWith.disabled"; |
| 53 | + public static final String SWITCH_DISABLED_STARTWS_WITH_ENABLED = |
| 54 | + "Switch.disabled.startsWith.enabled"; |
| 55 | + public static final String SWITCH_PREFERRED_NAME_TOO_SHORT = "Switch.preferredName.too.short"; |
| 56 | + public static final String SOURCE_DEST_MUST_ENFORCE_VALUES = "SourceDest.must.enforce.values"; |
| 57 | + public static final String HELPFORMATTER_GUTTER_TOO_LONG = "HelpFormatter.gutter.too.long"; |
| 58 | + public static final String HELPFORMATTER_WIDTH_TOO_NARROW = "HelpFormatter.width.too.narrow"; |
| 59 | + public static final String ENUM_ILLEGAL_VALUE = "Enum.illegal.value"; |
| 60 | + public static final String ARGUMENT_BUILDER_NULL_CONSUME_REMAINING = "ArgumentBuilder.null.consume.remaining"; |
| 61 | + public static final String ARGUMENT_BUILDER_EMPTY_CONSUME_REMAINING = "ArgumentBuilder.empty.consume.remaining"; |
| 62 | + public static final String ARGUMENT_BUILDER_NULL_DEFAULT = "ArgumentBuilder.null.default"; |
| 63 | + public static final String ARGUMENT_BUILDER_NULL_DEFAULTS = "ArgumentBuilder.null.defaults"; |
| 64 | + public static final String ARGUMENT_BUILDER_NEGATIVE_MAXIMUM = "ArgumentBuilder.negative.maximum"; |
| 65 | + public static final String ARGUMENT_BUILDER_NEGATIVE_MINIMUM = "ArgumentBuilder.negative.minimum"; |
| 66 | + public static final String ARGUMENT_BUILDER_NULL_NAME = "ArgumentBuilder.null.name"; |
| 67 | + public static final String ARGUMENT_BUILDER_EMPTY_NAME = "ArgumentBuilder.empty.name"; |
| 68 | + public static final String ARGUMENT_BUILDER_NULL_VALIDATOR = "ArgumentBuilder.null.validator"; |
| 69 | + |
| 70 | +} |
0 commit comments