Salome HOME
ccf2a76e3e9e8291abdb52d9684678da3d79218d
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / TextAttribute.java
1 package org.splat.dal.bo.kernel;
2
3 /**
4  * Text attribute persistent class.
5  * @author    Daniel Brunier-Coulin
6  * @copyright OPEN CASCADE 2012-2014
7  */
8 public abstract class TextAttribute extends Attribute {
9
10         /**
11          * Text value.
12          */
13         private String mytext;
14
15     /**
16      * Database fetch constructor.
17      */
18     public TextAttribute () {
19     }
20
21     /**
22      * Initialization constructor.
23      * @param from the owner of this attribute
24      * @param value the value of this attribute
25      */
26     protected TextAttribute (Any from, String value) {
27       super(from);
28       mytext = value;
29     }
30
31     /**
32      * Get value of this attribute.
33      * @return text value
34      */
35     public String getValue () {
36       return mytext;
37     }
38
39     /**
40      * Set value of this attribute.
41      * @param value the text value to set
42      */
43     public void setValue (String value) {
44       mytext = value;
45     }
46 }