formatting
[jalview.git] / src / jalview / ws / params / simple / Option.java
index 2608eed..8f6ebb4 100644 (file)
@@ -24,13 +24,17 @@ import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
 
-public class Option implements OptionI {
+public class Option implements OptionI
+{
+
+  String name, value, defvalue, description;
+
+  ArrayList<String> possibleVals = new ArrayList<String>();
 
-  
-  String name, value, defvalue,description;
-  ArrayList<String> possibleVals=new ArrayList<String>();
   boolean required;
+
   URL fdetails;
+
   @Override
   public String getName()
   {
@@ -40,7 +44,7 @@ public class Option implements OptionI {
   @Override
   public String getValue()
   {
-    return value==null ? defvalue : value;
+    return value == null ? defvalue : value;
   }
 
   @Override
@@ -72,35 +76,39 @@ public class Option implements OptionI {
   {
     return possibleVals;
   }
+
   public Option(Option opt)
   {
     name = new String(opt.name);
-    if (opt.value!=null) 
+    if (opt.value != null)
       value = new String(opt.value);
-    if (opt.defvalue!=null)
-      defvalue=new String(opt.defvalue);
-    if (opt.description!=null)
-      description=new String(opt.description);
-    if (opt.possibleVals!=null) {
-      possibleVals = (ArrayList<String>)opt.possibleVals.clone();
+    if (opt.defvalue != null)
+      defvalue = new String(opt.defvalue);
+    if (opt.description != null)
+      description = new String(opt.description);
+    if (opt.possibleVals != null)
+    {
+      possibleVals = (ArrayList<String>) opt.possibleVals.clone();
     }
     required = opt.required;
     // URLs are singletons - so we copy by reference. nasty but true.
     fdetails = opt.fdetails;
   }
+
   public Option()
   {
   }
 
   public Option(String name2, String description2, boolean isrequired,
-          String defValue, String value, Collection<String> possibleVals, URL fdetails)
+          String defValue, String value, Collection<String> possibleVals,
+          URL fdetails)
   {
     name = name2;
     description = description2;
     this.value = value;
     this.required = isrequired;
     this.defvalue = defValue;
-    if (possibleVals!=null)
+    if (possibleVals != null)
     {
       this.possibleVals = new ArrayList<String>();
       this.possibleVals.addAll(possibleVals);
@@ -108,7 +116,6 @@ public class Option implements OptionI {
     this.fdetails = fdetails;
   }
 
-
   @Override
   public OptionI copy()
   {