5bbb8848a8e3116844dcf5f3031cb38f48264c2f
1 /*******************************************************************************
2 * Copyright (c) 2014, 2016 Ericsson
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 * Patrick Tasse - Initial API and implementation
11 * Matthew Khouzam - Pulled out class
12 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.core
.parsers
.custom
;
15 import org
.eclipse
.tracecompass
.tmf
.core
.parsers
.custom
.CustomTraceDefinition
.Tag
;
18 * Wrapper for XML element attributes
20 public final class CustomXmlInputAttribute
{
22 /** Name of the XML attribute */
23 private final String fAttributeName
;
26 private final Tag fInputTag
;
29 private final String fInputName
;
32 private final int fInputAction
;
35 private final String fInputFormat
;
40 * @param attributeName
41 * Name of the XML attribute
49 * {@link #CustomXmlInputAttribute(String, Tag, String, int, String)}
53 public CustomXmlInputAttribute(String attributeName
, String inputName
,
54 int inputAction
, String inputFormat
) {
55 fAttributeName
= attributeName
;
56 fInputTag
= Tag
.IGNORE
;
57 fInputName
= inputName
;
58 fInputAction
= inputAction
;
59 fInputFormat
= inputFormat
;
65 * @param attributeName
66 * Name of the XML attribute
77 public CustomXmlInputAttribute(String attributeName
, Tag inputTag
,
78 String inputName
, int inputAction
, String inputFormat
) {
79 fAttributeName
= attributeName
;
81 fInputName
= inputName
;
82 fInputAction
= inputAction
;
83 fInputFormat
= inputFormat
;
87 * @return the attributeName
89 public String
getAttributeName() {
90 return fAttributeName
;
94 * @return the inputTag
97 public Tag
getInputTag() {
102 * @return the inputName
104 public String
getInputName() {
109 * @return the inputAction
111 public int getInputAction() {
116 * @return the inputFormat
118 public String
getInputFormat() {
This page took 0.034835 seconds and 4 git commands to generate.