Replaced all tabs with spaces in java and pom.xml
[so.git] / cloudify-client / src / main / java / org / onap / so / cloudify / v3 / model / Blueprint.java
index ef2a258..873816d 100644 (file)
@@ -24,23 +24,22 @@ import java.io.IOException;
 import java.io.Serializable;
 import java.util.Date;
 import java.util.Map;
-
 import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.ObjectMapper;
 
 @JsonIgnoreProperties(ignoreUnknown = true)
-//@JsonRootName("blueprint")
+// @JsonRootName("blueprint")
 public class Blueprint implements Serializable {
 
-       
-       /**
-        * 
-        */
-       private static final long serialVersionUID = 938604986548763151L;
 
-       @JsonProperty("created_at")
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 938604986548763151L;
+
+    @JsonProperty("created_at")
     private Date createdAt;
 
     @JsonProperty("description")
@@ -48,19 +47,19 @@ public class Blueprint implements Serializable {
 
     @JsonProperty("id")
     private String id;
-    
+
     @JsonProperty("main_file_name")
     private String mainFileName;
-    
+
     @JsonProperty("plan")
     private Map<String, Object> plan = null;
-    
+
     @JsonProperty("tenant_name")
     private String tenantName;
-    
+
     @JsonProperty("updated_at")
     private Date updatedAt;
-   
+
     public Date getCreatedAt() {
         return createdAt;
     }
@@ -76,7 +75,7 @@ public class Blueprint implements Serializable {
     public void setDescription(String description) {
         this.description = description;
     }
-    
+
     public String getId() {
         return id;
     }
@@ -92,24 +91,24 @@ public class Blueprint implements Serializable {
     public void setMainFileName(String mainFileName) {
         this.mainFileName = mainFileName;
     }
-    
+
     public Map<String, Object> getPlan() {
-       return this.plan;
+        return this.plan;
     }
-    
+
     public void setPlan(Map<String, Object> plan) {
-       this.plan = plan;
+        this.plan = plan;
     }
 
     public String getTenantName() {
-               return tenantName;
-       }
+        return tenantName;
+    }
 
-       public void setTenantName(String tenantName) {
-               this.tenantName = tenantName;
-       }
+    public void setTenantName(String tenantName) {
+        this.tenantName = tenantName;
+    }
 
-       public Date getUpdatedAt() {
+    public Date getUpdatedAt() {
         return updatedAt;
     }
 
@@ -118,46 +117,37 @@ public class Blueprint implements Serializable {
     }
 
 
-       /*
-        * Return an  output as a Json-mapped Object of the provided type.
-        * This is useful for json-object outputs.
-        */
-       public <T> T getMapValue (Map<String,Object> map, String key, Class<T> type)
-       {
+    /*
+     * Return an output as a Json-mapped Object of the provided type. This is useful for json-object outputs.
+     */
+    public <T> T getMapValue(Map<String, Object> map, String key, Class<T> type) {
 
-               ObjectMapper mapper = new ObjectMapper();
+        ObjectMapper mapper = new ObjectMapper();
 
-               if (map.containsKey(key)) {
-                       try {
-                               String s = mapper.writeValueAsString(map.get(key));
-                               return (mapper.readValue(s, type));
-                       }
-                       catch (IOException e) {
-                               return null;
-                       }
-               }
-               return null;
-       }
+        if (map.containsKey(key)) {
+            try {
+                String s = mapper.writeValueAsString(map.get(key));
+                return (mapper.readValue(s, type));
+            } catch (IOException e) {
+                return null;
+            }
+        }
+        return null;
+    }
 
-       @Override
+    @Override
     public String toString() {
-        return "Deployment{" +
-                "id='" + id + '\'' +
-                ", description='" + description + '\'' +
-                ", createdAt=" + createdAt +
-                ", updatedAt=" + updatedAt +
-                ", mainFileName='" + mainFileName + '\'' +
-                ", tenantName='" + tenantName + '\'' +
-                '}';
-    }
-
-    /*  Add a definition of the Cloudify "plan" attribute once we know what it is.
-
-       @JsonIgnoreProperties(ignoreUnknown=true)
-       public static final class Plan {
-       }
-       
-*/
-    
+        return "Deployment{" + "id='" + id + '\'' + ", description='" + description + '\'' + ", createdAt=" + createdAt
+                + ", updatedAt=" + updatedAt + ", mainFileName='" + mainFileName + '\'' + ", tenantName='" + tenantName
+                + '\'' + '}';
+    }
+
+    /*
+     * Add a definition of the Cloudify "plan" attribute once we know what it is.
+     * 
+     * @JsonIgnoreProperties(ignoreUnknown=true) public static final class Plan { }
+     * 
+     */
+
 
 }