Source for net.dpml.cli.resource.ResourceConstants

   1: /*
   2:  * Copyright 2005 The Apache Software Foundation
   3:  * Copyright 2005 Stephen McConnell
   4:  *
   5:  * Licensed under the Apache License, Version 2.0 (the "License");
   6:  * you may not use this file except in compliance with the License.
   7:  * You may obtain a copy of the License at
   8:  *
   9:  *     http://www.apache.org/licenses/LICENSE-2.0
  10:  *
  11:  * Unless required by applicable law or agreed to in writing, software
  12:  * distributed under the License is distributed on an "AS IS" BASIS,
  13:  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14:  * See the License for the specific language governing permissions and
  15:  * limitations under the License.
  16:  */
  17: package net.dpml.cli.resource;
  18: 
  19: /**
  20:  * Common resurce constants.
  21:  * @author <a href="@PUBLISHER-URL@">@PUBLISHER-NAME@</a>
  22:  * @version @PROJECT-VERSION@
  23:  */
  24: public abstract class ResourceConstants
  25: {
  26:    /**
  27:     * Bad classname constant.
  28:     */
  29:     public static final String CLASSVALIDATOR_BAD_CLASSNAME = "ClassValidator.bad.classname";
  30:     
  31:    /**
  32:     * Class not found constant.
  33:     */
  34:     public static final String CLASSVALIDATOR_CLASS_NOTFOUND = "ClassValidator.class.notfound";
  35:     
  36:    /**
  37:     * Class access constant.
  38:     */
  39:     public static final String CLASSVALIDATOR_CLASS_ACCESS = "ClassValidator.class.access";
  40:     
  41:    /**
  42:     * Class creation constant.
  43:     */
  44:     public static final String CLASSVALIDATOR_CLASS_CREATE = "ClassValidator.class.create";
  45:     
  46:    /**
  47:     * Date out of range constant.
  48:     */
  49:     public static final String DATEVALIDATOR_DATE_OUTOFRANGE = "DateValidator.date.OutOfRange";
  50:     
  51:    /**
  52:     * Malformed uri constant.
  53:     */
  54:     public static final String URIVALIDATOR_MALFORMED_URI = "URIValidator.malformed.URI";
  55:     
  56:    /**
  57:     * Malformed url constant.
  58:     */
  59:     public static final String URLVALIDATOR_MALFORMED_URL = "URLValidator.malformed.URL";
  60:     
  61:    /**
  62:     * Number out-of-range constant.
  63:     */
  64:     public static final String NUMBERVALIDATOR_NUMBER_OUTOFRANGE =
  65:         "NumberValidator.number.OutOfRange";
  66:     
  67:    /**
  68:     * Unexpected argument value constant.
  69:     */
  70:     public static final String ARGUMENT_UNEXPECTED_VALUE = "Argument.unexpected.value";
  71:     
  72:    /**
  73:     * Minimum greater than maximum error constant.
  74:     */
  75:     public static final String ARGUMENT_MIN_EXCEEDS_MAX = "Argument.minimum.exceeds.maximum";
  76: 
  77:    /**
  78:     * Too few defaults error constant.
  79:     */
  80:     public static final String ARGUMENT_TOO_FEW_DEFAULTS = "Argument.too.few.defaults";
  81:     
  82:    /**
  83:     * Too many defaults error constant.
  84:     */
  85:     public static final String ARGUMENT_TOO_MANY_DEFAULTS = "Argument.too.many.defaults";
  86:     
  87:    /**
  88:     * Missing argument error constant.
  89:     */
  90:     public static final String ARGUMENT_MISSING_VALUES = "Argument.missing.values";
  91:     
  92:    /**
  93:     * Too many argument values error constant.
  94:     */
  95:     public static final String ARGUMENT_TOO_MANY_VALUES = "Argument.too.many.values";
  96:     
  97:    /**
  98:     * Missing trigger prefix error constant.
  99:     */
 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: }