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 / ConvertsRelation.java
index 1e79f757b27a7e715b739ab7992a85e412f098fc..b23f650308292cfbe765746dbb9f746c4bc1c577 100644 (file)
@@ -29,20 +29,22 @@ public class ConvertsRelation extends Relation {
       description = null;
     }
 //  Initialization constructors
-    protected ConvertsRelation (Document from, File to) {
+    protected ConvertsRelation (final Document from, final File to) {
 //  ---------------------------------------------------
       super(from);
       this.refer       = to;
       this.got         = true;
       this.description = null;          // Conversion not described
     }
-    public ConvertsRelation (Document from, File to, String description) {
+    public ConvertsRelation (final Document from, final File 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,22 @@ public class ConvertsRelation 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 File getTo () {
+    @Override
+       public File getTo () {
 //  --------------------
       return refer;
     }
-    protected void setTo (Persistent to) {
+    
+    @Override
+       public void setTo (final Persistent to) {
 //  ------------------------------------
       refer = (File)to;
     }