001: /*
002: DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003:
004: Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005:
006:
007: The contents of this file are subject to the terms of either the GNU
008: General Public License Version 2 only ("GPL") or the Common
009: Development and Distribution License("CDDL") (collectively, the
010: "License"). You may not use this file except in compliance with the
011: License. You can obtain a copy of the License at
012: http://www.netbeans.org/cddl-gplv2.html
013: or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
014: specific language governing permissions and limitations under the
015: License. When distributing the software, include this License Header
016: Notice in each file and include the License file at
017: nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
018: particular file as subject to the "Classpath" exception as provided
019: by Sun in the GPL Version 2 section of the License file that
020: accompanied this code. If applicable, add the following below the
021: License Header, with the fields enclosed by brackets [] replaced by
022: your own identifying information:
023: "Portions Copyrighted [year] [name of copyright owner]"
024:
025: Contributor(s):
026:
027: The Original Software is NetBeans. The Initial Developer of the Original
028: Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
029: Microsystems, Inc. All Rights Reserved.
030:
031: If you wish your version of this file to be governed by only the CDDL
032: or only the GPL Version 2, indicate your decision by adding
033: "[Contributor] elects to include this software in this distribution
034: under the [CDDL or GPL Version 2] license." If you do not indicate a
035: single choice of license, a recipient has the option to distribute
036: your version of this file under either the CDDL, the GPL Version 2 or
037: to extend the choice of license to its licensees as provided above.
038: However, if you add GPL Version 2 code and therefore, elected the GPL
039: Version 2 license, then the option applies only if the new code is
040: made subject to such option by the copyright holder.
041: */
042: package org.netbeans.test.dataprovider.common;
043:
044: public interface Constants {
045: String TEST_LOG_FILE_PATH = System.getProperty("xtest.workdir")
046: + "/..",
047: TEST_LOG_FILE_NAME = "test_log.txt",
048:
049: MAIN_MENU_ITEM_WINDOW_SAVE_ALL = "File|Save All",
050: MAIN_MENU_ITEM_WINDOW = "Window",
051: MAIN_MENU_ITEM_EDIT_COPY = "Edit|Copy",
052: MAIN_MENU_ITEM_WINDOW_SERVICES = MAIN_MENU_ITEM_WINDOW
053: + "|Services",
054: MAIN_MENU_ITEM_WINDOW_PALETTE = MAIN_MENU_ITEM_WINDOW
055: + "|Palette",
056: MAIN_MENU_ITEM_WINDOW_NAVIGATOR = MAIN_MENU_ITEM_WINDOW
057: + "|Navigating|Navigator",
058: MAIN_MENU_ITEM_WINDOW_PROPERTIES = MAIN_MENU_ITEM_WINDOW
059: + "|Properties",
060: MAIN_MENU_ITEM_WINDOW_PROJECTS = MAIN_MENU_ITEM_WINDOW
061: + "|Projects",
062: MAIN_MENU_ITEM_WINDOW_CLOSE_WINDOW = MAIN_MENU_ITEM_WINDOW
063: + "|Close Window",
064: MAIN_MENU_ITEM_WINDOW_RESET_WINDOWS = MAIN_MENU_ITEM_WINDOW
065: + "|Reset Windows",
066: MAIN_MENU_ITEM_SOURCE_FIX_IMPORTS = "Source|Fix Imports",
067: MAIN_MENU_ITEM_TOOLS_JAVA_DB_DATABASE_SETTINGS = "Tools|Java DB Database|Settings",
068:
069: WINDOW_NAVIGATOR_TITLE = "Navigator",
070: WINDOW_PROPERTIES_TITLE = "Properties",
071:
072: PROJECT_CATEGORY_WEB = "Web",
073: PROJECT_TYPE_WEB_APP = "Web Application",
074:
075: JAVA_EDITOR_TITLE = "Page1.java",
076:
077: WEB_PAGE_FORM_NAME = "form1",
078: WEB_PAGE_FORM_PREFIX = WEB_PAGE_FORM_NAME + ":",
079:
080: WEB_PAGE_COMPONENT_ID_J2EE5_PREFIX = "\"id\":",
081: WEB_PAGE_COMPONENT_ID_J2EE14_PREFIX = "id=",
082:
083: WEB_PAGE_TABLE_ROW_GROUP_PREFIX = WEB_PAGE_FORM_PREFIX
084: + "table1:tableRowGroup1:",
085: WEB_PAGE_TABLE_ROW_GROUP_ID_PREFIX = WEB_PAGE_COMPONENT_ID_J2EE5_PREFIX
086: + "\"" + WEB_PAGE_TABLE_ROW_GROUP_PREFIX,
087:
088: WEB_PAGE_COMPONENT_VALUE_PREFIX = "value",
089: WEB_PAGE_CLOSING_TAG_SPAN = "</span>",
090: WEB_PAGE_LAST_TAG_CHAR = ">",
091:
092: NAVIGATOR_COMBOBOX_ITEM_NAVIGATOR = "Navigator",
093: NAVIGATOR_COMBOBOX_ITEM_OUTLINE = "Outline",
094: NAVIGATOR_TREE_NODE_PAGE_PREFIX = "Page1|",
095: NAVIGATOR_TREE_NODE_SESSION_PREFIX = "SessionBean1|",
096: NAVIGATOR_TREE_NODE_FORM_PREFIX = NAVIGATOR_TREE_NODE_PAGE_PREFIX
097: + "page1|html1|body1|" + WEB_PAGE_FORM_NAME + "|",
098: NAVIGATOR_TREE_NODE_TABLE1_ROWGROUP_PREFIX = NAVIGATOR_TREE_NODE_FORM_PREFIX
099: + "table1|tableRowGroup1",
100:
101: SERVICES_TREE_NODE_SERVERS = "Servers",
102: SERVICES_TREE_NODE_APPLICATIONS = "Applications",
103: SERVICES_TREE_NODE_WEB_APPLICATIONS = "Web Applications",
104: SERVICES_TREE_NODE_DATABASES = "Databases",
105:
106: DB_TREE_NODE_DRIVERS = "Drivers",
107: DB_TREE_NODE_ORACLE_JDBC_DRIVER_NAME = "Oracle",
108: DB_TREE_NODE_DERBY_JDBC_DRIVER_NAME = "Java DB (Network)",
109: DB_TREE_NODE_TABLES = "Tables",
110:
111: DB_NAME_DERBY = "Derby",
112: DB_NAME_ORACLE = "Oracle",
113: DB_NAME_MYSQL = "MySQL",
114: DB_NAME_POSTGRES = "Postgres",
115:
116: DB_SCHEMA_NAME_TRAVEL = "TRAVEL",
117: DB_TABLE_PERSON = "PERSON",
118: DB_TABLE_TRIP = "TRIP",
119: DB_TABLE_TRIPTYPE = "TRIPTYPE",
120: DB_TABLE_VALIDATION_TABLE = "VALIDATION_TABLE",
121:
122: DB_TABLE_TRIP_TRIPID = "TRIPID",
123: DB_TABLE_TRIP_PERSONID = "PERSONID",
124: DB_TABLE_TRIP_DEPDATE = "DEPDATE",
125: DB_TABLE_TRIP_TRIPTYPEID = "TRIPTYPEID",
126: DB_TABLE_TRIP_LASTUPDATED = "LASTUPDATED",
127: DB_TABLE_TRIP_DEPCITY = "DEPCITY",
128: DB_TABLE_TRIP_DESTCITY = "DESTCITY",
129:
130: DB_POPUP_MENU_ITEM_LABEL_CONNECT = "Connect",
131: DB_POPUP_MENU_ITEM_LABEL_NEW_DRIVER = "New Driver",
132: DB_POPUP_MENU_ITEM_LABEL_NEW_CONNECTION = "New Connection",
133:
134: DB_DIALOG_CONNECT_TITLE = "Connect",
135: DB_DIALOG_NEW_DRIVER_TITLE = "New JDBC Driver",
136: DB_DIALOG_NEW_CONNECTION_TITLE = "New Database Connection",
137: DB_DIALOG_JAV_DB_SETTINGS_TITLE = "Java DB Settings",
138:
139: PALETTE_NAME_BASIC = "Basic",
140: PALETTE_NAME_CONVERTERS = "Converters",
141:
142: COMPONENT_BUTTON_NAME = "Button",
143: COMPONENT_DROP_DOWN_LIST_NAME = "Drop Down List",
144: COMPONENT_TABLE_NAME = "Table",
145: COMPONENT_TEXT_FIELD_NAME = "Text Field",
146:
147: COMPONENT_SQL_TIMESTAMP_CONVERTER_NAME = "SQL Timestamp Converter",
148: SQL_TIMESTAMP_CONVERTER_ID = "sqlTimestampConverter1",
149: SQL_TIMESTAMP_CONVERTER_PATTERN = "dd.MM.yyyy",
150:
151: POPUP_MENU_ITEM_AUTO_SUBMIT = "Auto-Submit on Change",
152: POPUP_MENU_ITEM_CONFIGURE_VIRTUAL_FORMS = "Configure Virtual Forms",
153: POPUP_MENU_ITEM_EDIT_SQL_STATEMENT = "Edit SQL Statement",
154: POPUP_MENU_ITEM_PROCESS_VALUE_CHANGE = "Edit Event Handler|processValueChange",
155: POPUP_MENU_ITEM_TABLE_LAYOUT = "Table Layout",
156: POPUP_MENU_ITEM_BIND_DATA = "Bind to Data",
157: POPUP_MENU_ITEM_DESIGN_QUERY = "Design Query",
158: POPUP_MENU_ITEM_START = "Start",
159: POPUP_MENU_ITEM_STOP = "Stop",
160: POPUP_MENU_ITEM_REFRESH = "Refresh",
161: POPUP_MENU_ITEM_RUN = "Run",
162: POPUP_MENU_ITEM_UNDEPLOY = "Undeploy",
163: POPUP_MENU_ITEM_CLOSE = "Close",
164: POPUP_MENU_ITEM_PASTE = "Paste",
165:
166: DIALOG_TITLE_CONFIGURE_VIRTUAL_FORMS = "Configure Virtual Forms",
167: DIALOG_TITLE_TABLE_LAYOUT = "Table Layout",
168: DIALOG_TITLE_BIND_DATA = "Bind to Data",
169: DIALOG_TITLE_ADD_NEW_DATAPROVIDER_WITH_ROWSET = "Add New Data Provider with RowSet",
170: DIALOG_TITLE_SQL_PARSING_ERROR = "Parse Error",
171:
172: BUTTON_LABEL_ADD = "Add",
173: BUTTON_LABEL_OPEN = "Open",
174: BUTTON_LABEL_NEW = "New",
175: BUTTON_LABEL_OK = "OK",
176: BUTTON_LABEL_CANCEL = "Cancel",
177: BUTTON_LABEL_TO_LEFT = "<",
178:
179: PROPERTY_NAME_ID = "id",
180: PROPERTY_NAME_STYLE = "style",
181: PROPERTY_NAME_COMMAND = "command",
182: PROPERTY_NAME_PATTERN = "pattern",
183: PROPERTY_NAME_CONVERTER = "converter",
184:
185: ROW_SET_SUFFIX = "RowSet",
186: DATA_PROVIDER_SUFFIX = "DataProvider",
187:
188: METHOD_DECLARATION_PRERENDER = "public void prerender() {",
189:
190: VIRTUAL_FORM_YES = "Yes",
191: VIRTUAL_FORM_NO = "No",
192:
193: PROPERTY_NAME_SERVER_SETTINGS = "server_settings",
194: PROPERTY_NAME_DATABASE_SETTINGS = "database_settings",
195:
196: J2EE_LEVEL_14 = "J2EE 1.4",
197: J2EE_LEVEL_5 = "Java EE 5",
198: J2EE_LEVEL_14_COMPATIBILITY_KIT = "Visual Web JSF Backwards Compatibility Kit",
199:
200: LEFT_ROUND_BRACKET = "(",
201: RIGHT_ROUND_BRACKET = ")",
202: LEFT_CURLY_BRACKET = "{",
203: RIGHT_CURLY_BRACKET = "}",
204: LEFT_ANGLE_BRACKET = "<",
205: RIGHT_ANGLE_BRACKET = ">",
206: EQUAL_SIGN = "=",
207:
208: PATTERN_ANY_CHARS = "[\\u0000-\\uffff]*",
209:
210: PROP_SPEC_CHAR_SLASH = "\\",
211: PROP_SPEC_CHAR_DOUBLE_PERCENT = "%%",
212:
213: PROP_NAME_PATTERN = "[[\\s]*[\\w\\-]*[\\s]*]",
214: PROP_VALUE_PATTERN = "[[\\s]*[%@\\*;><:/ \\w\\.\\-]*[\\s]*]",
215: PROP_DATA_PATTERN = "[" + PROP_NAME_PATTERN + "="
216: + PROP_VALUE_PATTERN + "]",
217: PROP_ITEM_PATTERN = "[\\{" + PROP_DATA_PATTERN + "\\}]",
218: PROP_ITEM_LIST_PATTERN = "[\\{" + PROP_DATA_PATTERN
219: + "\\}]+",
220: PROP_ITEM_SET_PATTERN = "[[\\s]*" + PROP_ITEM_PATTERN
221: + "[\\s]*[,]?[\\s]*&&[^\\(\\)]]+",
222: PROP_SETTINGS_PATTERN = "\\(" + PROP_ITEM_SET_PATTERN
223: + "\\)",
224:
225: // using: PATTERN_PREFIX + dropDownID + PATTERN_POSTFIX
226: PATTERN_PREFIX_DEPLOYMENT_DATA_J2EE_5_PERSON_DROPDOWNLIST = PATTERN_ANY_CHARS
227: + "<script type=\"text/javascript\">"
228: + PATTERN_ANY_CHARS
229: + WEB_PAGE_COMPONENT_ID_J2EE5_PREFIX
230: + "\""
231: + WEB_PAGE_FORM_PREFIX,
232: PATTERN_POSTFIX_DEPLOYMENT_DATA_J2EE_5_PERSON_DROPDOWNLIST = "\""
233: + PATTERN_ANY_CHARS
234: + "\"options\":\\[\\{\"selected\":true,\""
235: + PATTERN_ANY_CHARS
236: + "\"label\":\"Able, Tony\""
237: + PATTERN_ANY_CHARS
238: + "\\{\"selected\":false,\""
239: + PATTERN_ANY_CHARS
240: + "\"label\":\"Black, John\""
241: + PATTERN_ANY_CHARS
242: + "\\{\"selected\":false,\""
243: + PATTERN_ANY_CHARS
244: + "\"label\":\"Kent, Richard\""
245: + PATTERN_ANY_CHARS
246: + "\\{\"selected\":false,\""
247: + PATTERN_ANY_CHARS
248: + "\"label\":\"Chen, Larry\""
249: + PATTERN_ANY_CHARS
250: + "\\{\"selected\":false,\""
251: + PATTERN_ANY_CHARS
252: + "\"label\":\"Donaldson, Sue\""
253: + PATTERN_ANY_CHARS
254: + "\\{\"selected\":false,\""
255: + PATTERN_ANY_CHARS
256: + "\"label\":\"Murrell, Tony\""
257: + PATTERN_ANY_CHARS
258: + "</script>"
259: + PATTERN_ANY_CHARS,
260:
261: // using: PATTERN_PREFIX + dropDownID + PATTERN_POSTFIX
262: PATTERN_PREFIX_DEPLOYMENT_DATA_J2EE_14_PERSON_DROPDOWNLIST = PATTERN_ANY_CHARS
263: + "<select"
264: + PATTERN_ANY_CHARS
265: + WEB_PAGE_COMPONENT_ID_J2EE14_PREFIX
266: + "\""
267: + WEB_PAGE_FORM_PREFIX,
268: PATTERN_POSTFIX_DEPLOYMENT_DATA_J2EE_14_PERSON_DROPDOWNLIST = "\""
269: + PATTERN_ANY_CHARS
270: + "<option"
271: + PATTERN_ANY_CHARS
272: + "selected=\"selected\">Able, Tony</option>"
273: + PATTERN_ANY_CHARS
274: + "<option"
275: + PATTERN_ANY_CHARS
276: + "Black, John</option>"
277: + PATTERN_ANY_CHARS
278: + "<option"
279: + PATTERN_ANY_CHARS
280: + "Kent, Richard</option>"
281: + PATTERN_ANY_CHARS
282: + "<option"
283: + PATTERN_ANY_CHARS
284: + "Chen, Larry</option>"
285: + PATTERN_ANY_CHARS
286: + "<option"
287: + PATTERN_ANY_CHARS
288: + "Donaldson, Sue</option>"
289: + PATTERN_ANY_CHARS
290: + "<option"
291: + PATTERN_ANY_CHARS
292: + "Murrell, Tony</option>"
293: + PATTERN_ANY_CHARS
294: + "</select>" + PATTERN_ANY_CHARS,
295:
296: GOLDEN_FILE_LINE_SEPARATOR = "#";
297:
298: int VIRTUAL_FORM_COL_NAME = 1, VIRTUAL_FORM_COL_PARTICIPATE = 2,
299: VIRTUAL_FORM_COL_SUBMIT = 3,
300:
301: // amount of trips for person with smallest ID (id = 1, Able Tony)
302: AMOUNT_TRIPS_PERSON_ID_1 = 5,
303:
304: WEB_RESPONSE_CODE_OK = 200;
305: }
|