/*
 * Copyright 2014 the original author or authors.
 *
 * 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.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.kuujo.vertigo;

import io.vertx.codegen.annotations.Options;
import io.vertx.core.VertxOptions;
import io.vertx.core.json.JsonObject;

/**
 * Vertigo options.
 *
 * @author <a href="http://github.com/kuujo">Jordan Halterman</a>
 */
@Options
public class VertigoOptions extends VertxOptions {
  public static final String DATA_DIRECTORY = "data";

  private String dataDirectory;

  public VertigoOptions() {
  }

  public VertigoOptions(VertigoOptions options) {
    super(options);
  }

  public VertigoOptions(JsonObject options) {
    super(options);
  }

  /**
   * Sets the Vertigo data directory.
   *
   * @param directory The Vertigo data directory.
   * @return The Vertigo options.
   */
  public VertigoOptions setDataDirectory(String directory) {
    this.dataDirectory = directory;
    return this;
  }

  /**
   * Returns the Vertigo data directory.
   *
   * @return The Vertigo data directory.
   */
  public String getDataDirectory() {
    return dataDirectory;
  }

  @Override
  public int hashCode() {
    int hashCode = 23;
    hashCode = 37 * hashCode + super.hashCode();
    hashCode = 37 * hashCode + dataDirectory.hashCode();
    return hashCode;
  }

}

@@ -911,95 +911,8 @@
 ns %7B
-%0A  public static final String DATA_DIRECTORY = %22data%22;%0A%0A  private String dataDirectory;
 %0A%0A  
@@ -1092,433 +1092,8 @@
  %7D%0A%0A
-  /**%0A   * Sets the Vertigo data directory.%0A   *%0A   * @param directory The Vertigo data directory.%0A   * @return The Vertigo options.%0A   */%0A  public VertigoOptions setDataDirectory(String directory) %7B%0A    this.dataDirectory = directory;%0A    return this;%0A  %7D%0A%0A  /**%0A   * Returns the Vertigo data directory.%0A   *%0A   * @return The Vertigo data directory.%0A   */%0A  public String getDataDirectory() %7B%0A    return dataDirectory;%0A  %7D%0A%0A
   @O
@@ -1202,65 +1202,8 @@
 ();%0A
-    hashCode = 37 * hashCode + dataDirectory.hashCode();%0A
     

Remove data directory from Vertigo options class.