AAI-1523 Batch reformat aai-schema-ingest
[aai/aai-common.git] / aai-schema-ingest / src / main / java / org / onap / aai / validation / VersionValidator.java
index 612da35..375bec0 100644 (file)
@@ -29,25 +29,25 @@ import org.springframework.stereotype.Component;
  */
 @Component
 public class VersionValidator {
-       private SchemaErrorStrategy strat;
-       private VersionValidationModule verMod;
-       
-       @Autowired
-       public VersionValidator(SchemaErrorStrategy strategy, VersionValidationModule verMod) {
-               this.strat = strategy;
-               this.verMod = verMod;
-       }
-       
-       public boolean validate() {
-               String result = verMod.validate();
-               if (!"".equals(result)) {
-                       strat.notifyOnError(result);
-               }
-               
-               return strat.isOK();
-       }
-       
-       public String getErrorMsg() {
-               return strat.getErrorMsg();
-       }
+    private SchemaErrorStrategy strat;
+    private VersionValidationModule verMod;
+
+    @Autowired
+    public VersionValidator(SchemaErrorStrategy strategy, VersionValidationModule verMod) {
+        this.strat = strategy;
+        this.verMod = verMod;
+    }
+
+    public boolean validate() {
+        String result = verMod.validate();
+        if (!"".equals(result)) {
+            strat.notifyOnError(result);
+        }
+
+        return strat.isOK();
+    }
+
+    public String getErrorMsg() {
+        return strat.getErrorMsg();
+    }
 }