Skip to main content
summaryrefslogtreecommitdiffstats
blob: 5dc00399f7d0f8cf806cb793175cf7d87abf7ba5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*******************************************************************************
 * Copyright (c) 2009, 2010 Tasktop Technologies and others.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *  
 *  Contributors:
 *      Tasktop Technologies - initial API and implementation
 *******************************************************************************/

package org.eclipse.mylyn.internal.oslc.core;

import org.jdom.Namespace;

/**
 * @author Robert Elves
 */
public interface IOslcCoreConstants {

	public static final String ID_PLUGIN = "org.eclipse.mylyn.oslc.core"; //$NON-NLS-1$

	// Task Repository property keys

	public static final String OSLC_BASEURL = "oslc.baseurl"; //$NON-NLS-1$

	//Namespaces

	public static final Namespace NAMESPACE_OSLC_CM_1_0 = Namespace.getNamespace(
			"oslc_cm", "http://open-services.net/xmlns/cm/1.0/"); //$NON-NLS-1$ //$NON-NLS-2$

	public static final Namespace NAMESPACE_OSLC_DISCOVERY_1_0 = Namespace.getNamespace(
			"oslc_disc", "http://open-services.net/xmlns/discovery/1.0/"); //$NON-NLS-1$ //$NON-NLS-2$

	public static final Namespace NAMESPACE_DC = Namespace.getNamespace("dc", "http://purl.org/dc/terms/"); //$NON-NLS-1$

	public static final Namespace NAMESPACE_RDF = Namespace.getNamespace(
			"rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#"); //$NON-NLS-1$ //$NON-NLS-2$

	public static final Namespace NAMESPACE_ATOM = Namespace.getNamespace("atom", "http://www.w3.org/2005/Atom"); //$NON-NLS-1$ //$NON-NLS-2$

	public static final Namespace NAMESPACE_RTC_CM_1_0 = Namespace.getNamespace(
			"rtc_cm", "http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/"); //$NON-NLS-1$ //$NON-NLS-2$

	// Content types

	public static final String CONTENT_TYPE_CHANGE_REQUEST = "application/x-oslc-cm-change-request+xml"; //$NON-NLS-1$

	// XML element ids
	public static final String ELEMENT_SERVICE_PROVIDER_CATALOG = "ServiceProviderCatalog"; //$NON-NLS-1$

	public static final String ELEMENT_SERVICE_PROVIDER = "ServiceProvider"; //$NON-NLS-1$

	public static final String ELEMENT_CHANGEREQUEST = "ChangeRequest"; //$NON-NLS-1$

	public static final String ELEMENT_SERVICES = "services"; //$NON-NLS-1$

	public static final String ELEMENT_CREATIONDIALOG = "creationDialog"; //$NON-NLS-1$

	public static final String ELEMENT_SELECTIONDIALOG = "selectionDialog"; //$NON-NLS-1$

	public static final String ELEMENT_FACTORY = "factory"; //$NON-NLS-1$

	public static final String ELEMENT_HOME = "home"; //$NON-NLS-1$

	public static final String ELEMENT_TITLE = "title"; //$NON-NLS-1$

	public static final String ELEMENT_TYPE = "type"; //$NON-NLS-1$

	public static final String ELEMENT_IDENTIFIER = "identifier"; //$NON-NLS-1$

	public static final String ELEMENT_DESCRIPTION = "description"; //$NON-NLS-1$

	public static final String ELEMENT_CREATOR = "creator"; //$NON-NLS-1$

	public static final String ELEMENT_MODIFIED = "modified"; //$NON-NLS-1$

	public static final String ELEMENT_SUBJECT = "subject"; //$NON-NLS-1$

	public static final String ELEMENT_URL = "url"; //$NON-NLS-1$

	public static final String ELEMENT_SIMPLEQUERY = "simpleQuery"; //$NON-NLS-1$

	public static final String ELEMENT_LABEL = "label"; //$NON-NLS-1$

	// XML attribute ids
	public static final String ATTRIBUTE_RESOURCE = "resource"; //$NON-NLS-1$

	public static final String ATTRIBUTE_DEFAULT = "default"; //$NON-NLS-1$

	public static final String ATTRIBUTE_HINTWIDTH = "hintWidth"; //$NON-NLS-1$

	public static final String ATTRIBUTE_HINTHEIGHT = "hintHeight"; //$NON-NLS-1$

	public static final String ATTRIBUTE_ABOUT = "about"; //$NON-NLS-1$

	// Http header keys
	public static final String HEADER_ETAG = "ETag"; //$NON-NLS-1$

	public static final String HEADER_IF_MATCH = "If-Match"; //$NON-NLS-1$

}

Back to the top