Reformat catalog-model
[sdc.git] / catalog-model / src / main / java / org / openecomp / sdc / be / model / TargetCapabilityRelDef.java
index 1237ade..0ceba55 100644 (file)
@@ -7,9 +7,9 @@
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,7 +17,6 @@
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
-
 package org.openecomp.sdc.be.model;
 
 import java.util.List;
@@ -26,7 +25,6 @@ public class TargetCapabilityRelDef {
 
     private String uid;
     private String toNode;
-
     private List<CapabilityRequirementRelationship> relationships;
 
     public TargetCapabilityRelDef() {
@@ -50,6 +48,10 @@ public class TargetCapabilityRelDef {
         return relationships;
     }
 
+    public void setRelationships(List<CapabilityRequirementRelationship> relationships) {
+        this.relationships = relationships;
+    }
+
     public CapabilityRequirementRelationship resolveSingleRelationship() {//currently only single relationship is supported
         return relationships == null || relationships.isEmpty() ? null : relationships.get(0);
     }
@@ -62,14 +64,8 @@ public class TargetCapabilityRelDef {
         this.uid = uid;
     }
 
-    public void setRelationships(List<CapabilityRequirementRelationship> relationships) {
-        this.relationships = relationships;
-    }
-
     @Override
     public String toString() {
-        return "TargetCapabilityRelDef [ toNode=" + toNode
-                + ", relationships=" + relationships + "]";
+        return "TargetCapabilityRelDef [ toNode=" + toNode + ", relationships=" + relationships + "]";
     }
-
 }