Salome HOME
Fix: document removing is fixed. Unit tests for StudyDAO and StepService.removeDocume...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / som / VersionsRelation.java
index c4e92cfeb6e2a19e8021248d0b84927ba5faf6e1..b906cdf5f7694b10240a16d2b7e71b976a76e5a3 100644 (file)
@@ -29,20 +29,22 @@ public class VersionsRelation extends Relation {
       description = null;
     }
 //  Initialization constructors
-    public VersionsRelation (Document from, Document to) {
+    public VersionsRelation (final Document from, final Document to) {
 //  -------------------------------------------------------
       super(from);
       this.refer       = to;
       this.got         = true;
       this.description = null;          // Conversion not described
     }
-    public VersionsRelation (Document from, Document to, String description) {
+    public VersionsRelation (final Document from, final Document to, final String description) {
 //  ---------------------------------------------------------------------------
       super(from);
       this.refer       = to;
       this.got         = true;
       this.description = description;   // May be null
-      if (description != null) this.setAttribute( new DescriptionAttribute(this, description) );
+      if (description != null) {
+               this.setAttribute( new DescriptionAttribute(this, description) );
+       }
     }
 
 //  ==============================================================================================================================
@@ -53,17 +55,21 @@ public class VersionsRelation extends Relation {
 //  -------------------------------
       if (!got) {
         DescriptionAttribute field = (DescriptionAttribute)this.getAttribute(DescriptionAttribute.class);
-        if (field != null) description = field.getValue();
+        if (field != null) {
+                       description = field.getValue();
+               }
         got = true;                     // Don't need to be modified later as set and remove attribute functions are private to this class
       }
       return description;               // May be null
     }
 
-    public Document getTo () {
+    @Override
+       public Document getTo () {
 //  -------------------------
       return refer;
     }
-    protected void setTo (Persistent to) {
+    @Override
+       public void setTo (final Persistent to) {
 //  ------------------------------------
       refer = (Document)to;
     }