01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.rewriter.util;
06:
07: import com.sun.portal.rewriter.util.xml.Node;
08:
09: public interface Constants {
10: public static final byte[] EMTPY_BYTE_ARRAY = new byte[0];
11: public static final int[][] EMPTY_INT_INT_ARRAY = new int[0][0];
12: public static final int[] EMPTY_INT_ARRAY = new int[0];
13: public static final String[] EMPTY_STRING_ARRAY = new String[0];
14: public static final Integer[] EMPTY_INTEGER_ARRAY = new Integer[0];
15: public static final Node[] EMPTY_NODE_ARRAY = new Node[0];
16:
17: public static final String REG_EX_FOR_TRIMING_QUOTES = "^([(\\\\\")\\s\"'])+|([(\\\\\")\\s\"'])+$";
18:
19: public static final String DEFAULT_REGULAR_EXPRESSION = "*";
20: public static final String CHILD_PATTERN = DEFAULT_REGULAR_EXPRESSION
21: + DEFAULT_REGULAR_EXPRESSION; //"**"
22: public static final String ZERO_POSTITION_CHILD_PATTERN_INDICATOR = CHILD_PATTERN; //"**"
23: public static final String TRANSLATE_FULL_STRING = CHILD_PATTERN
24: + DEFAULT_REGULAR_EXPRESSION; //"***"
25: public static final String MULTI_VALUE_DELIMITER = ";";
26: public static final String CHILD_PATTERN_SEPERATOR = ":";
27:
28: public static final String SLASH = "/";
29: public static final String SPACE = " ";
30: public static final String QUESTION_MARK = "?";
31: public static final String AND = "&";
32: public static final String LESS_THAN = "<";
33: public static final String GREATER_THAN = ">";
34: public static final String SLASH_GREATER_THAN = SLASH + '>';
35: public static final String SPACE_SLASH_GREATER_THAN = SPACE
36: + SLASH_GREATER_THAN;
37:
38: public static final String NEGATE = "!";
39: public static final String RECURSIVE = "REC:";//Bug#4965568
40: public static final String ASTERISK = "*";
41: public static final char CHAR_ASTERISK = '*';
42: public static final String ESCAPE_ASTERISK = "\\*";
43: public static final String ESCAPE_FORWARD_SLASH = "\\";
44: public static final char ESCAPE_FORWARD_SLASH_CHAR = ESCAPE_FORWARD_SLASH
45: .charAt(0);
46: public static final String EMPTY_STRING = "";
47: public static final String SINGLE_SPACE = SPACE;
48: public static final String SINGLE_QUOTES = "'";
49: public static final String DOUBLE_QUOTES = "\"";
50: public static final char SINGLE_QUOTES_CHAR = SINGLE_QUOTES
51: .charAt(0);
52: public static final char DOUBLE_QUOTES_CHAR = DOUBLE_QUOTES
53: .charAt(0);
54: public static final String ESCAPE_DOUBLE_QUOTES = "\\\"";
55: public static final String ESCAPE_SINGLE_QUOTES = "\\\'";
56: public static final String EQUALS = "=";
57: public static final String NEW_LINE = "\n";
58:
59: public static final String PROPERTY_MODULE_ID = "MODULE_ID";
60: public static final String PROPERTY_DATA_SOURCE_TYPE = "DATA_SOURCE_TYPE";
61: public static final String FILE = "FILE";
62: public static final String PROPERTY_VALUE_DELIMITERS = "|;:";
63: public static final String SYSTEM_ENCODING = System
64: .getProperty("file.encoding");
65: public static final String LOG_LOCATION = "LOG_LOCATION";
66: public static final String LOG_LEVEL = "LOG_LEVEL";
67: }//inteface Constatns
|