1 /*******************************************************************************
2 * Copyright (c) 2014 Ecole Polytechnique
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Florian Wininger - Initial implementation
11 ******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.analysis
.xml
.core
.stateprovider
;
15 import org
.eclipse
.jdt
.annotation
.NonNullByDefault
;
18 * This file defines all name in the XML Structure for the State Provider
20 * @author Florian Wininger
21 * @noimplement This interface only contains static defines
23 @SuppressWarnings({ "javadoc", "nls" })
25 public interface TmfXmlStrings
{
27 /* XML generic Element attribute names */
28 static final String VALUE
= "value";
29 static final String NAME
= "name";
30 static final String VERSION
= "version";
31 static final String TYPE
= "type";
33 /* XML header element */
34 static final String HEAD
= "head";
35 static final String TRACETYPE
= "traceType";
36 static final String ID
= "id";
37 static final String LABEL
= "label";
38 static final String ANALYSIS
= "analysis";
41 static final String NULL
= "";
42 static final String WILDCARD
= "*";
43 static final String VARIABLE_PREFIX
= "$";
44 static final String COLOR
= "color";
45 static final String COLOR_PREFIX
= "#";
47 /* XML Element Name */
48 static final String STATE_PROVIDER
= "stateProvider";
49 static final String DEFINED_VALUE
= "definedValue";
50 static final String LOCATION
= "location";
51 static final String EVENT_HANDLER
= "eventHandler";
52 static final String STATE_ATTRIBUTE
= "stateAttribute";
53 static final String STATE_VALUE
= "stateValue";
54 static final String STATE_CHANGE
= "stateChange";
55 static final String ELEMENT_FIELD
= "field";
57 /* XML Condition strings */
58 static final String IF
= "if";
59 static final String CONDITION
= "condition";
60 static final String THEN
= "then";
61 static final String ELSE
= "else";
63 /* XML event handler strings */
64 static final String HANDLER_EVENT_NAME
= "eventName";
66 /* XML constant for Type of Attribute and Value */
67 static final String TYPE_NULL
= "null";
68 static final String TYPE_CONSTANT
= "constant";
69 static final String EVENT_FIELD
= "eventField";
70 static final String TYPE_LOCATION
= "location";
71 static final String TYPE_QUERY
= "query";
72 static final String TYPE_SELF
= "self";
73 static final String TYPE_INT
= "int";
74 static final String TYPE_LONG
= "long";
75 static final String TYPE_STRING
= "string";
76 static final String TYPE_EVENT_NAME
= "eventName";
77 static final String TYPE_DELETE
= "delete";
78 static final String INCREMENT
= "increment";
79 static final String FORCED_TYPE
= "forcedType";
80 static final String ATTRIBUTE_STACK
= "stack";
81 static final String STACK_POP
= "pop";
82 static final String STACK_PUSH
= "push";
83 static final String STACK_PEEK
= "peek";
84 static final String CPU
= "cpu";
89 static final String TIMESTAMP
= "timestamp";
92 static final String NOT
= "not";
93 static final String AND
= "and";
94 static final String OR
= "or";