blob: 67c3a90b03362062b7062c105a472b737aa7ea24 [file] [log] [blame]
david_williams282b8f42005-02-14 07:00:56 +00001/*******************************************************************************
david_williams646a5e22005-04-02 07:16:27 +00002 * Copyright (c) 2005 IBM Corporation and others.
david_williams282b8f42005-02-14 07:00:56 +00003 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *
11 *******************************************************************************/
12
david_williams4ad020f2005-04-18 08:00:30 +000013package org.eclipse.wst.xml.core.internal.provisional.contenttype;
david_williams282b8f42005-02-14 07:00:56 +000014
15/**
david_williams56777022005-04-11 06:21:55 +000016 * This class, with its few field, is a convience to provide compile-time
david_williams282b8f42005-02-14 07:00:56 +000017 * safety when refering to a contentType ID. The value of the contenttype id
18 * field must match what is specified in plugin.xml file.
david_williams646a5e22005-04-02 07:16:27 +000019 *
david_williams6cb26392005-06-24 20:13:29 +000020 * @plannedfor 1.0
david_williams282b8f42005-02-14 07:00:56 +000021 */
david_williamsfbf44722005-04-15 23:36:32 +000022final public class ContentTypeIdForXML {
david_williams282b8f42005-02-14 07:00:56 +000023 /**
24 * This content type is actually supplied by base Eclipse. Its given here
25 * just as documentation for WTP based clients. Typically, clients should
26 * use the values/constants supplied by base Eclipse.
27 */
david_williams935a3c32005-03-16 14:08:18 +000028 public final static String ContentTypeID_XML = getConstantString2();
david_williams282b8f42005-02-14 07:00:56 +000029 /**
david_williams646a5e22005-04-02 07:16:27 +000030 * This value is public only for testing and special infrastructure. The
david_williams282b8f42005-02-14 07:00:56 +000031 * constant nor is value should not be referenced by clients.
32 *
33 * The value of the contenttype id field must match what is specified in
david_williams935a3c32005-03-16 14:08:18 +000034 * plugin.xml file. Note: this value is intentially set with default
35 * protected method so it will not be inlined.
david_williams282b8f42005-02-14 07:00:56 +000036 */
david_williams935a3c32005-03-16 14:08:18 +000037 public final static String ContentTypeID_SSEXML = getConstantString();
38
39 /**
40 * Don't allow instantiation.
41 */
42 private ContentTypeIdForXML() {
43 super();
44 }
45
46 static String getConstantString() {
47 return "org.eclipse.wst.xml.core.xmlsource"; //$NON-NLS-1$
48 }
49
50 static String getConstantString2() {
51 return "org.eclipse.core.runtime.xml"; //$NON-NLS-1$
52 }
david_williams282b8f42005-02-14 07:00:56 +000053
54}