tmf: remove deprecated methods from tmf
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / parsers / custom / CustomXmlInputAttribute.java
CommitLineData
a7418109 1/*******************************************************************************
f5cc6ed1 2 * Copyright (c) 2014, 2016 Ericsson
a7418109
MK
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 * Patrick Tasse - Initial API and implementation
11 * Matthew Khouzam - Pulled out class
12 *******************************************************************************/
13package org.eclipse.tracecompass.tmf.core.parsers.custom;
14
f5cc6ed1
PT
15import org.eclipse.tracecompass.tmf.core.parsers.custom.CustomTraceDefinition.Tag;
16
a7418109
MK
17/**
18 * Wrapper for XML element attributes
19 */
20public final class CustomXmlInputAttribute {
21
22 /** Name of the XML attribute */
23 private final String fAttributeName;
24
f5cc6ed1
PT
25 /** Input tag */
26 private final Tag fInputTag;
27
a7418109
MK
28 /** Input name */
29 private final String fInputName;
30
31 /** Input action */
32 private final int fInputAction;
33
34 /** Input format */
35 private final String fInputFormat;
36
f5cc6ed1
PT
37 /**
38 * Constructor
39 *
40 * @param attributeName
41 * Name of the XML attribute
42 * @param inputTag
43 * Input tag
44 * @param inputName
45 * Input name
46 * @param inputAction
47 * Input action
48 * @param inputFormat
49 * Input format
50 * @since 2.1
51 */
52 public CustomXmlInputAttribute(String attributeName, Tag inputTag,
53 String inputName, int inputAction, String inputFormat) {
54 fAttributeName = attributeName;
55 fInputTag = inputTag;
a7418109
MK
56 fInputName = inputName;
57 fInputAction = inputAction;
58 fInputFormat = inputFormat;
59 }
60
61 /**
62 * @return the attributeName
63 */
64 public String getAttributeName() {
65 return fAttributeName;
66 }
67
f5cc6ed1
PT
68 /**
69 * @return the inputTag
70 * @since 2.1
71 */
72 public Tag getInputTag() {
73 return fInputTag;
74 }
75
a7418109
MK
76 /**
77 * @return the inputName
78 */
79 public String getInputName() {
80 return fInputName;
81 }
82
83 /**
84 * @return the inputAction
85 */
86 public int getInputAction() {
87 return fInputAction;
88 }
89
90 /**
91 * @return the inputFormat
92 */
93 public String getInputFormat() {
94 return fInputFormat;
95 }
96
97}
This page took 0.066702 seconds and 5 git commands to generate.