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
22 @SuppressWarnings({ "javadoc", "nls" })
24 public interface TmfXmlStrings
{
26 /* XML generic Element attribute names */
27 static final String VALUE
= "value";
28 static final String NAME
= "name";
29 static final String VERSION
= "version";
30 static final String TYPE
= "type";
32 /* XML header element */
33 static final String HEAD
= "head";
34 static final String TRACETYPE
= "traceType";
35 static final String ID
= "id";
36 static final String LABEL
= "label";
37 static final String ANALYSIS
= "analysis";
40 static final String NULL
= "";
41 static final String WILDCARD
= "*";
42 static final String VARIABLE_PREFIX
= "$";
43 static final String COLOR
= "color";
44 static final String COLOR_PREFIX
= "#";
46 /* XML Element Name */
47 static final String STATE_PROVIDER
= "stateProvider";
48 static final String DEFINED_VALUE
= "definedValue";
49 static final String LOCATION
= "location";
50 static final String EVENT_HANDLER
= "eventHandler";
51 static final String STATE_ATTRIBUTE
= "stateAttribute";
52 static final String STATE_VALUE
= "stateValue";
53 static final String STATE_CHANGE
= "stateChange";
54 static final String ELEMENT_FIELD
= "field";
56 /* XML Condition strings */
57 static final String IF
= "if";
58 static final String CONDITION
= "condition";
59 static final String THEN
= "then";
60 static final String ELSE
= "else";
62 /* XML event handler strings */
63 static final String HANDLER_EVENT_NAME
= "eventName";
65 /* XML constant for Type of Attribute and Value */
66 static final String TYPE_NULL
= "null";
67 static final String TYPE_CONSTANT
= "constant";
68 static final String EVENT_FIELD
= "eventField";
69 static final String TYPE_LOCATION
= "location";
70 static final String TYPE_QUERY
= "query";
71 static final String TYPE_SELF
= "self";
72 static final String TYPE_INT
= "int";
73 static final String TYPE_LONG
= "long";
74 static final String TYPE_STRING
= "string";
75 static final String TYPE_EVENT_NAME
= "eventName";
76 static final String TYPE_DELETE
= "delete";
77 static final String INCREMENT
= "increment";
78 static final String FORCED_TYPE
= "forcedType";
79 static final String ATTRIBUTE_STACK
= "stack";
80 static final String STACK_POP
= "pop";
81 static final String STACK_PUSH
= "push";
82 static final String STACK_PEEK
= "peek";
83 static final String CPU
= "cpu";
87 static final String TIMESTAMP
= "timestamp";
90 static final String NOT
= "not";
91 static final String AND
= "and";
92 static final String OR
= "or";