AAI-1523 Batch reformat aai-core
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / serialization / queryformats / Format.java
index 7e7356f..8de3811 100644 (file)
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.aai.serialization.queryformats;
 
 import org.onap.aai.exceptions.AAIException;
 
 public enum Format {
-       graphson,
-       pathed, 
-    pathed_resourceversion,
-       id, 
-       resource,
-       simple,
-       resource_and_url,
-       console,
-       raw,
-       count,
-    resource_with_sot;
+    graphson, pathed, pathed_resourceversion, id, resource, simple, resource_and_url, console, raw, count, resource_with_sot;
 
-       public static Format getFormat(String format) throws AAIException {
-               try {
-                       return Format.valueOf(format);
-               } catch (IllegalArgumentException e) {
-                       throw new AAIException("AAI_6120", "Unsupported format query parameter " + format + " in request.");
-               }
-       }
+    public static Format getFormat(String format) throws AAIException {
+        try {
+            return Format.valueOf(format);
+        } catch (IllegalArgumentException e) {
+            throw new AAIException("AAI_6120", "Unsupported format query parameter " + format + " in request.");
+        }
+    }
 }