]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/SPlat/src/org/splat/som/DescriptionAttribute.java
Salome HOME
SIMAN Eclipse workspace first version
[tools/siman.git] / Workspace / SPlat / src / org / splat / som / DescriptionAttribute.java
1 package org.splat.som;
2 /**
3  * Attribute class of type Description.<br/>
4  * A description is made of any text up to 65 thousand characters.
5  * 
6  * @author    Daniel Brunier-Coulin
7  * @copyright OPEN CASCADE 2012
8  */
9
10 import org.splat.kernel.Text;
11 import org.splat.kernel.TextAttribute;
12
13
14 public class DescriptionAttribute extends TextAttribute {
15
16 //  ==============================================================================================================================
17 //  Constructors
18 //  ==============================================================================================================================
19
20 //  Database fetch constructor.
21     protected DescriptionAttribute () {
22     }
23 /**
24  * Constructs the description of a study or a scenario.
25  * 
26  * @param from  the study or the scenario to which this description is attached.
27  * @param value the text of this description
28  */
29     protected DescriptionAttribute (ProjectElement from, String value) {
30 //  ------------------------------------------------------------------
31       super(from, new Text(value));
32     }
33 /**
34  * Constructs the description attached to a version relation.
35  * 
36  * @param from  the version relation to which this description is attached.
37  * @param value the text of this description
38  */
39     protected DescriptionAttribute (VersionsRelation from, String value) {
40 //  --------------------------------------------------------------------
41       super(from, new Text(value));
42     }
43     /**
44      * Constructs the description attached to a conversion relation.
45      * 
46      * @param from  the conversion relation to which this description is attached.
47      * @param value the text of this description
48      */
49     protected DescriptionAttribute (ConvertsRelation from, String value) {
50 //  --------------------------------------------------------------------
51       super(from, new Text(value));
52     }
53 }