Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / vdu / VduArtifact.java
index 8701aa4..2f99fed 100644 (file)
@@ -26,60 +26,65 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
 import org.apache.commons.lang3.builder.EqualsBuilder;
 
 public class VduArtifact {
-       
-       // Enumerate the types of artifacts permitted.  This may need to be a variable string
-       // value if arbitrary (cloud-specific) artifacts may be attached to VDUs in ASDC.
-       public enum ArtifactType {
-               MAIN_TEMPLATE, NESTED_TEMPLATE, CONFIG_FILE, SCRIPT_FILE, TEXT_FILE, ENVIRONMENT
-       }
-       
-       private String name;
-       private byte[] content;
-       private ArtifactType type;
-       
-       @Override
-       public boolean equals(final Object other) {
-               if (!(other instanceof VduArtifact)) {
-                       return false;
-               }
-               VduArtifact castOther = (VduArtifact) other;
-               return new EqualsBuilder().append(name, castOther.name).append(content, castOther.content)
-                               .append(type, castOther.type).isEquals();
-       }
-
-       @Override
-       public int hashCode() {
-               return new HashCodeBuilder().append(name).append(content).append(type).toHashCode();
-       }
-
-       // Default constructor
-       public VduArtifact() {}
-       
-       // Fully specified constructor
-       public VduArtifact (String name, byte[] content, ArtifactType type) {
-               this.name = name;
-               this.content = content;
-               this.type = type;
-       }
-       
-       public String getName() {
-               return name;
-       }
-       public void setName (String name) {
-               this.name = name;
-       }
-       public byte[] getContent() {
-               return content;
-       }
-       public void setContent(byte[] content) {
-               this.content = content;
-       }
-       public ArtifactType getType() {
-               return type;
-       }
-       public void setType(ArtifactType type) {
-               this.type = type;
-       }
-
-       
+
+    // Enumerate the types of artifacts permitted. This may need to be a variable string
+    // value if arbitrary (cloud-specific) artifacts may be attached to VDUs in ASDC.
+    public enum ArtifactType {
+        MAIN_TEMPLATE, NESTED_TEMPLATE, CONFIG_FILE, SCRIPT_FILE, TEXT_FILE, ENVIRONMENT
+    }
+
+    private String name;
+    private byte[] content;
+    private ArtifactType type;
+
+    @Override
+    public boolean equals(final Object other) {
+        if (!(other instanceof VduArtifact)) {
+            return false;
+        }
+        VduArtifact castOther = (VduArtifact) other;
+        return new EqualsBuilder().append(name, castOther.name).append(content, castOther.content)
+                .append(type, castOther.type).isEquals();
+    }
+
+    @Override
+    public int hashCode() {
+        return new HashCodeBuilder().append(name).append(content).append(type).toHashCode();
+    }
+
+    // Default constructor
+    public VduArtifact() {}
+
+    // Fully specified constructor
+    public VduArtifact(String name, byte[] content, ArtifactType type) {
+        this.name = name;
+        this.content = content;
+        this.type = type;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public byte[] getContent() {
+        return content;
+    }
+
+    public void setContent(byte[] content) {
+        this.content = content;
+    }
+
+    public ArtifactType getType() {
+        return type;
+    }
+
+    public void setType(ArtifactType type) {
+        this.type = type;
+    }
+
+
 }