Source code: jsource/codegenerator/TypeDef.java
1 package jsource.codegenerator;
2
3
4 /**
5 * TypeDef.java 03/17/03
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Library General Public License as published
9 * by the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Library General Public License for more details.
16 */
17
18 public class TypeDef {
19
20 private int m_iId = 0;
21 private String m_sName = null;
22 private String m_sDescription = null;
23
24 public TypeDef(int _id, String _name, String _description) {
25 m_iId = _id;
26 m_sName = _name;
27 m_sDescription = _description;
28 }
29
30 public TypeDef(TypeDef _from) {
31 m_iId = _from.m_iId;
32 m_sName = _from.m_sName;
33 m_sDescription = _from.m_sDescription;
34 }
35
36 public int getId() {
37 return m_iId;
38
39 }
40
41 public void setId(int _value) {
42 m_iId = _value;
43 }
44
45 public String getName() {
46 return m_sName;
47 }
48
49 public void setName(String _value) {
50 m_sName = _value;
51 }
52
53 public String getDescription() {
54 return m_sDescription;
55 }
56
57 public void setDescription(String _value) {
58 m_sDescription = _value;
59 }
60
61 public String toString() {
62 return getName();
63 }
64 }