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.engines;
06:
07: import com.sun.portal.rewriter.util.Constants;
08:
09: public interface LanguageConstants {
10: public static final String CODE = "code";
11: public static final String CODEBASE = "codebase";
12:
13: public static final String APPLET = "applet";
14: public static final String SLASH_APPLET = Constants.SLASH + APPLET;
15:
16: public static final String OBJECT = "object";
17: public static final String SLASH_OBJECT = Constants.SLASH + OBJECT;
18:
19: public static final String TEXTAREA = "textarea";
20: public static final String SLASH_TEXTAREA = Constants.SLASH
21: + TEXTAREA;
22:
23: public static final String FORM = "form";
24: public static final String SLASH_FORM = Constants.SLASH + FORM;
25:
26: public static final String SELECT = "select";
27: public static final String SLASH_SELECT = Constants.SLASH + SELECT;
28:
29: public static final String SCRIPT = "script";
30: public static final String SLASH_SCRIPT = Constants.SLASH + SCRIPT;
31:
32: public static final String SPAN = "span";
33: public static final String SLASH_SPAN = Constants.SLASH + SPAN;
34:
35: public static final String STYLE = "style";
36: public static final String SLASH_STYLE = Constants.SLASH + STYLE;
37:
38: public static final String XML = "xml";
39: public static final String SLASH_XML = Constants.SLASH + XML;
40:
41: public static final String META = "meta";
42: public static final String CONTENT = "content";
43: public static final String NAME = "name";
44: public static final String CLASSID = "classid";
45: public static final String HREF = "href";
46: public static final String BASE = "base";
47: public static final String BODY = "body";
48: public static final String BACKGROUND = "background";
49: public static final String VALUE = "value";
50: public static final String PARAM = "param";
51: public static final String INPUT = "input";
52: public static final String OPTION = "option";
53: public static final String SRC = "src";
54: public static final String HTTPS = "https";
55: public static final String ARCHIVE = "archive";
56: public static final String SCRIPT_REFERRER = "psScriptReferrer";//BugNo:4890520
57: public static final String JS_SCRIPT_PROTOCOL = "javascript:";
58: public static final String JS_DUMMY_FUNCTION = "\nfunction dummy(){}";
59:
60: public static final String SCRIPT_TAG_BEGIN = "\n<SCRIPT>"
61: + "\n<!--\n";
62:
63: public static final String SCRIPT_TAG_END = "\n//-->"
64: + "\n</SCRIPT>\n";
65:
66: public static final String TARGET = "target";
67:
68: public static final String STYLE_SHEET_ROOT_NODE_NAME = "xsl:stylesheet";
69: public static final String HTML_MIME = "text/html";
70: public static final String JS_MIME = "application/x-javascript";
71: public static final String CSS_MIME = "text/css";
72: public static final String XML_MIME = "text/xml";
73: public static final String MARKUP_MIME = "text/markup";
74: public static final String UNKNOWN_MIME = "UNKNOWN";
75:
76: public static final String ENTITY_DECIMAL_SINGLE_QUOTE = "'";
77: public static final String ENTITY_HEX_SINGLE_QUOTE = "'";
78: public static final String ENTITY_DECIMAL_DOUBLE_QUOTE = """;
79: public static final String ENTITY_HEX_DOUBLE_QUOTE = """;
80: public static final String ENTITY_TEXT_DOUBLE_QUOTE = """;
81:
82: public static final String NAME_SPACE = "";
83: public static final String TAG_BEGIN = "<";
84: public static final String TAG_END = Constants.SLASH_GREATER_THAN;
85: public static final String COMMENT_TAG_BEGIN = "<!--";
86: public static final String COMMENT_TAG_END = "-->";
87:
88: public static final String CSS_IMPORT_NODE_START = "@import ";
89:
90: public static final String[][] HTML_ENTITIES = new String[][] {
91: { "'", "'" }, { "'", "'" }, { """, "\"" },
92: { """, "\"" }, { "/", "/" }, { "/", "/" },
93: { "\", "\\" }, { "\", "\\" }, { "'", "'" },
94: { """, "\"" }, };
95: }//Interface LanguageConstants
|