Commit | Line | Data |
---|---|---|
a7418109 MK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2014 Ericsson | |
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 | *******************************************************************************/ | |
13 | package org.eclipse.tracecompass.tmf.core.parsers.custom; | |
14 | ||
15 | /** | |
16 | * Wrapper for XML element attributes | |
17 | */ | |
18 | public final class CustomXmlInputAttribute { | |
19 | ||
20 | /** Name of the XML attribute */ | |
21 | private final String fAttributeName; | |
22 | ||
23 | /** Input name */ | |
24 | private final String fInputName; | |
25 | ||
26 | /** Input action */ | |
27 | private final int fInputAction; | |
28 | ||
29 | /** Input format */ | |
30 | private final String fInputFormat; | |
31 | ||
32 | /** | |
33 | * Constructor | |
34 | * | |
35 | * @param attributeName | |
36 | * Name of the XML attribute | |
37 | * @param inputName | |
38 | * Input name | |
39 | * @param inputAction | |
40 | * Input action | |
41 | * @param inputFormat | |
42 | * Input format | |
43 | */ | |
44 | public CustomXmlInputAttribute(String attributeName, String inputName, | |
45 | int inputAction, String inputFormat) { | |
46 | fAttributeName = attributeName; | |
47 | fInputName = inputName; | |
48 | fInputAction = inputAction; | |
49 | fInputFormat = inputFormat; | |
50 | } | |
51 | ||
52 | /** | |
53 | * @return the attributeName | |
54 | */ | |
55 | public String getAttributeName() { | |
56 | return fAttributeName; | |
57 | } | |
58 | ||
59 | /** | |
60 | * @return the inputName | |
61 | */ | |
62 | public String getInputName() { | |
63 | return fInputName; | |
64 | } | |
65 | ||
66 | /** | |
67 | * @return the inputAction | |
68 | */ | |
69 | public int getInputAction() { | |
70 | return fInputAction; | |
71 | } | |
72 | ||
73 | /** | |
74 | * @return the inputFormat | |
75 | */ | |
76 | public String getInputFormat() { | |
77 | return fInputFormat; | |
78 | } | |
79 | ||
80 | } |