1 /*******************************************************************************
2 * Copyright (c) 2014 École Polytechnique de Montréal
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 * Geneviève Bastien - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.analysis
.xml
.core
.model
.readonly
;
15 import java
.util
.Collections
;
16 import java
.util
.List
;
18 import org
.eclipse
.tracecompass
.tmf
.analysis
.xml
.core
.model
.ITmfXmlStateAttribute
;
19 import org
.eclipse
.tracecompass
.tmf
.analysis
.xml
.core
.model
.TmfXmlStateValue
;
20 import org
.eclipse
.tracecompass
.tmf
.analysis
.xml
.core
.module
.IXmlStateSystemContainer
;
21 import org
.w3c
.dom
.Element
;
24 * Implements a state value is a read only mode. See {@link TmfXmlStateValue}
25 * for the syntax of the state value.
27 * In read mode, a state value will typically be used to find a path to a value,
28 * so the value is known and there is a path of attributes that should lead to
31 * @author Geneviève Bastien
33 public class TmfXmlReadOnlyStateValue
extends TmfXmlStateValue
{
36 * Constructor where the path to the value is a list of state attributes
39 * The factory used to create XML model elements
41 * The state value XML element
43 * The state system container this state value belongs to
45 * The attributes representing the path to this value
47 public TmfXmlReadOnlyStateValue(TmfXmlReadOnlyModelFactory modelFactory
, Element node
,
48 IXmlStateSystemContainer container
, List
<ITmfXmlStateAttribute
> attributes
) {
49 super(modelFactory
, node
, container
, attributes
, null);
53 * Constructor where the path to the value is an event field
56 * The factory used to create XML model elements
58 * The state value XML element
60 * The state system container this state value belongs to
62 * The event field where to get the value
64 public TmfXmlReadOnlyStateValue(TmfXmlReadOnlyModelFactory modelFactory
, Element node
,
65 IXmlStateSystemContainer container
, String eventField
) {
66 super(modelFactory
, node
, container
, Collections
.EMPTY_LIST
, eventField
);