Subversion Repositories XServices

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
31 brianR 1
/*
2
 *   Mylyn Connector for Serena Business Mashups
3
 * 	 Copyright 2010 Brian Rosenberger (Brutex Network)
4
 *
5
 *   Licensed under the Apache License, Version 2.0 (the "License");
6
 *   you may not use this file except in compliance with the License.
7
 *   You may obtain a copy of the License at
8
 *
9
 *       http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 *   Unless required by applicable law or agreed to in writing, software
12
 *   distributed under the License is distributed on an "AS IS" BASIS,
13
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 *   See the License for the specific language governing permissions and
15
 *   limitations under the License.
16
 *
17
 *   Serena, TeamTrack and Serena Business Mashup are
18
 * 	 registered trademarks of SERENA Software Inc.
19
 */
20
 
21
package net.brutex.mylyn.sbmconnector.core.model;
22
 
23
// TODO: Auto-generated Javadoc
24
/**
25
 * The Class SBMField.
26
 * @author Brian Rosenberger, bru@brutex.de
27
 */
28
public class SBMField {
29
 
30
	/** The type. */
31
	private SBMFieldTypes type;
32
 
33
	/** The value. */
34
	private String value;
35
 
36
	/** The internal value. */
37
	private Object internalValue;
38
 
39
	/** The parent table. */
40
	private String parentTable;
41
 
42
	/** The label. */
43
	private String label;
44
 
45
	/** The name. */
46
	private String name;
47
 
48
	/**
49
	 * Instantiates a new SBM field.
50
	 *
51
	 * @param type the type
52
	 * @param parentTable the parent table
53
	 * @param label the label
54
	 * @param name the name
55
	 */
56
	public SBMField(SBMFieldTypes type, String parentTable, String label,
57
			String name) {
58
		super();
59
		this.type = type;
60
		this.parentTable = parentTable;
61
		this.label = label;
62
		this.name = name;
63
	}
64
 
65
	/**
66
	 * Gets the value.
67
	 *
68
	 * @return the value
69
	 */
70
	public String getValue() {
71
		return value;
72
	}
73
 
74
	/**
75
	 * Sets the value.
76
	 *
77
	 * @param value the new value
78
	 */
79
	public void setValue(String value) {
80
		this.value = value;
81
	}
82
 
83
	/**
84
	 * Gets the internal value.
85
	 *
86
	 * @return the internal value
87
	 */
88
	public Object getInternalValue() {
89
		return internalValue;
90
	}
91
 
92
	/**
93
	 * Sets the internal value.
94
	 *
95
	 * @param internalValue the new internal value
96
	 */
97
	public void setInternalValue(Object internalValue) {
98
		this.internalValue = internalValue;
99
	}
100
 
101
	/**
102
	 * Gets the type.
103
	 *
104
	 * @return the type
105
	 */
106
	public SBMFieldTypes getType() {
107
		return type;
108
	}
109
 
110
	/**
111
	 * Gets the parent table.
112
	 *
113
	 * @return the parent table
114
	 */
115
	public String getParentTable() {
116
		return parentTable;
117
	}
118
 
119
	/**
120
	 * Gets the label.
121
	 *
122
	 * @return the label
123
	 */
124
	public String getLabel() {
125
		return label;
126
	}
127
 
128
	/**
129
	 * Gets the name.
130
	 *
131
	 * @return the name
132
	 */
133
	public String getName() {
134
		return name;
135
	}
136
 
137
 
138
 
139
}