01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: *
05: * File:CLIPConstants.java
06: *
07: * Date - Dec/15/2001
08: * Author - alejandro.abdelnur@sun.com
09: * @author Raja Nagendra Kumar, Nagendra.Raja@sun.com *
10: */
11: package com.sun.portal.rewriter.util.clip;
12:
13: public interface CLIPConstants {
14: /**
15: * Prefix for all types of options.
16: */
17: public static final String OPTION_PREFIX = "-";
18:
19: /**
20: * The switch for short option arguments.
21: */
22: public static final String SHORT_OPTION = OPTION_PREFIX;
23:
24: /**
25: * The switch for long option arguments.
26: */
27: public static final String LONG_OPTION = OPTION_PREFIX + "-";
28:
29: /**
30: * The switch for negating a boolean option argument.
31: */
32: public static final String NEGATE_OPTION = OPTION_PREFIX + "-no-";
33:
34: /**
35: * Indicates that no more options occur.
36: */
37: public static final String NO_MORE_OPTIONS = OPTION_PREFIX + "-";
38:
39: /**
40: * Indicates addition to collection option.
41: */
42: public static final String ADD_TO_COLLECTION_OPTION = OPTION_PREFIX
43: + "-add-";
44:
45: /**
46: * Indicates removal from collection option.
47: */
48: public static final String REMOVE_FROM_COLLECTION_OPTION = OPTION_PREFIX
49: + "-remove-";
50:
51: /**
52: * Type for boolean options.
53: */
54: public static final int BOOLEAN = 0;
55:
56: /**
57: * Type for regular options.
58: */
59: public static final int REGULAR = 1;
60:
61: /**
62: * Type for collection options.
63: */
64: public static final int COLLECTION = 2;
65:
66: public static final String OPTION_HELP = "help";
67: public static final String OPTION_VERSION = "version";
68: public static final String OPTION_LOCALE = "locale";
69: public static final String OPTION_VERBOSE = "verbose";
70:
71: public static final String SUB_COMMAND_XPATH = "\\\\CLIPToolSpec\\SUBCommand";
72: public static final String COMMON_OPTIONS_XPATH = "\\\\CLIPToolSpec\\CommonOptions\\Option";
73: public static final String HELP = "help";
74: public static final String NAME = "name";
75: public static final String COMMAND_HANDLER = "commandHandler";
76: public static final String LOCALE_ID = "localeID";
77: public static final String MIN_OPERANDS = "minOperands";
78: public static final String MAX_OPERANDS = "maxOperands";
79: public static final String OPERANDS_HELP = "operandsHelp";
80: public static final String LONG_NAME = "longName";
81: public static final String SHORT_NAME = "shortName";
82: public static final String TYPE = "type";
83: public static final String DEFAULT_VALUES = "defaultValues";
84: }//interface CLIPConstants
|