Sha256: bec00b09db542b0a779f42a44bf4b99c95b1564e8661fafc7a3d23e72aca9889

Contents?: true

Size: 679 Bytes

Versions: 4

Compression:

Stored size: 679 Bytes

Contents

#
# Set default values here, some can be overridden on command line
#
class Configurator
  attr_accessor :package, :json_file, :top_level_class,
                :output_directory,
                :unknown_class,
                :json_property_import, :json_serialize_import

  def initialize

    # If types cannot be inferred from example json, they will be represented with Object unless overridden.
    # In which case, UNKNOWN will be used. This will prohibit the class from compiling.
    self.unknown_class = "Object"

    self.json_property_import = "import java.util.date;"
    self.json_serialize_import = "import com.google.gson.annotations.SerializedName;"

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
j2j-0.2.4 lib/j2j/configurator.rb
j2j-0.2.3 lib/j2j/configurator.rb
j2j-0.2.1 lib/j2j/configurator.rb
j2j-0.1.1 lib/j2j/configurator.rb