TMF: Refactor XML model code, using factories to re-use element parsers
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.analysis.xml.core / src / org / eclipse / linuxtools / tmf / analysis / xml / core / stateprovider / TmfXmlStrings.java
1 /*******************************************************************************
2 * Copyright (c) 2014 Ecole Polytechnique
3 *
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
8 *
9 * Contributors:
10 * Florian Wininger - Initial implementation
11 ******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.analysis.xml.core.stateprovider;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18 * This file defines all name in the XML Structure for the State Provider
19 *
20 * @author Florian Wininger
21 */
22 @SuppressWarnings({ "javadoc", "nls" })
23 @NonNullByDefault
24 public interface TmfXmlStrings {
25
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";
31
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
38 /* XML String */
39 static final String NULL = "";
40 static final String WILDCARD = "*";
41 static final String VARIABLE_PREFIX = "$";
42
43 /* XML Element Name */
44 static final String STATE_PROVIDER = "stateProvider";
45 static final String DEFINED_VALUE = "definedValue";
46 static final String LOCATION = "location";
47 static final String EVENT_HANDLER = "eventHandler";
48 static final String STATE_ATTRIBUTE = "stateAttribute";
49 static final String STATE_VALUE = "stateValue";
50 static final String STATE_CHANGE = "stateChange";
51 static final String ELEMENT_FIELD = "field";
52
53 /* XML Condition strings */
54 static final String IF = "if";
55 static final String CONDITION = "condition";
56 static final String THEN = "then";
57 static final String ELSE = "else";
58
59 /* XML event handler strings */
60 static final String HANDLER_EVENT_NAME = "eventName";
61
62 /* XML constant for Type of Attribute and Value */
63 static final String TYPE_NULL = "null";
64 static final String TYPE_CONSTANT = "constant";
65 static final String EVENT_FIELD = "eventField";
66 static final String TYPE_LOCATION = "location";
67 static final String TYPE_QUERY = "query";
68 static final String TYPE_SELF = "self";
69 static final String TYPE_INT = "int";
70 static final String TYPE_LONG = "long";
71 static final String TYPE_STRING = "string";
72 static final String TYPE_EVENT_NAME = "eventName";
73 static final String TYPE_DELETE = "delete";
74 static final String INCREMENT = "increment";
75 static final String FORCED_TYPE = "forcedType";
76 static final String ATTRIBUTE_STACK = "stack";
77 static final String STACK_POP = "pop";
78 static final String STACK_PUSH = "push";
79 static final String STACK_PEEK = "peek";
80 static final String CPU = "cpu";
81
82 /* Operator type */
83 static final String NOT = "not";
84 static final String AND = "and";
85 static final String OR = "or";
86
87 }
This page took 0.038926 seconds and 6 git commands to generate.