]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/dal/bo/kernel/TextAttribute.java
Salome HOME
Refactoring continues: UserService is created instead of UserDirectory. Database...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / TextAttribute.java
1 package org.splat.dal.bo.kernel;
2
3 /**
4  * 
5  * @author    Daniel Brunier-Coulin
6  * @copyright OPEN CASCADE 2012
7  */
8
9
10 public abstract class TextAttribute extends Attribute {
11
12     //private  Text mytext;
13         private String mytext;
14
15 //  ==============================================================================================================================
16 //  Constructors
17 //  ==============================================================================================================================
18
19 //  Database fetch constructor.
20     protected TextAttribute () {
21     }
22
23 //  Initialization constructor
24     protected TextAttribute (Any from, String value) {
25 //  ----------------------------------------------
26       super(from);
27       mytext = value;
28     }
29
30 //  ==============================================================================================================================
31 //  Public member functions
32 //  ==============================================================================================================================
33
34     public String getValue () {
35 //  -------------------------
36       return mytext;
37     }
38
39 //  ==============================================================================================================================
40 //  Protected services
41 //  ==============================================================================================================================
42
43     protected void setValue (String value) {
44 //  --------------------------------------
45       mytext = value;
46 //RKV      if (this.isSaved()) Database.getCurSession().update(this);
47     }
48 }