david_williams | 282b8f4 | 2005-02-14 07:00:56 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
david_williams | 646a5e2 | 2005-04-02 07:16:27 +0000 | [diff] [blame] | 2 | * Copyright (c) 2005 IBM Corporation and others. |
david_williams | 282b8f4 | 2005-02-14 07:00:56 +0000 | [diff] [blame] | 3 | * 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_williams | 4ad020f | 2005-04-18 08:00:30 +0000 | [diff] [blame] | 13 | package org.eclipse.wst.xml.core.internal.provisional.contenttype; |
david_williams | 282b8f4 | 2005-02-14 07:00:56 +0000 | [diff] [blame] | 14 | |
| 15 | /** |
david_williams | 5677702 | 2005-04-11 06:21:55 +0000 | [diff] [blame] | 16 | * This class, with its few field, is a convience to provide compile-time |
david_williams | 282b8f4 | 2005-02-14 07:00:56 +0000 | [diff] [blame] | 17 | * 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_williams | 646a5e2 | 2005-04-02 07:16:27 +0000 | [diff] [blame] | 19 | * |
david_williams | 6cb2639 | 2005-06-24 20:13:29 +0000 | [diff] [blame] | 20 | * @plannedfor 1.0 |
david_williams | 282b8f4 | 2005-02-14 07:00:56 +0000 | [diff] [blame] | 21 | */ |
david_williams | fbf4472 | 2005-04-15 23:36:32 +0000 | [diff] [blame] | 22 | final public class ContentTypeIdForXML { |
david_williams | 282b8f4 | 2005-02-14 07:00:56 +0000 | [diff] [blame] | 23 | /** |
| 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_williams | 935a3c3 | 2005-03-16 14:08:18 +0000 | [diff] [blame] | 28 | public final static String ContentTypeID_XML = getConstantString2(); |
david_williams | 282b8f4 | 2005-02-14 07:00:56 +0000 | [diff] [blame] | 29 | /** |
david_williams | 646a5e2 | 2005-04-02 07:16:27 +0000 | [diff] [blame] | 30 | * This value is public only for testing and special infrastructure. The |
david_williams | 282b8f4 | 2005-02-14 07:00:56 +0000 | [diff] [blame] | 31 | * 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_williams | 935a3c3 | 2005-03-16 14:08:18 +0000 | [diff] [blame] | 34 | * plugin.xml file. Note: this value is intentially set with default |
| 35 | * protected method so it will not be inlined. |
david_williams | 282b8f4 | 2005-02-14 07:00:56 +0000 | [diff] [blame] | 36 | */ |
david_williams | 935a3c3 | 2005-03-16 14:08:18 +0000 | [diff] [blame] | 37 | 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_williams | 282b8f4 | 2005-02-14 07:00:56 +0000 | [diff] [blame] | 53 | |
| 54 | } |