Class: Configurator

Inherits:
Object
  • Object
show all
Defined in:
lib/j2j/configurator.rb

Overview

Set default values here, some can be overridden on command line

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfigurator

Returns a new instance of Configurator.



10
11
12
13
14
15
16
17
18
19
# File 'lib/j2j/configurator.rb', line 10

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

Instance Attribute Details

#json_fileObject

Returns the value of attribute json_file.



5
6
7
# File 'lib/j2j/configurator.rb', line 5

def json_file
  @json_file
end

#json_property_importObject

Returns the value of attribute json_property_import.



5
6
7
# File 'lib/j2j/configurator.rb', line 5

def json_property_import
  @json_property_import
end

#json_serialize_importObject

Returns the value of attribute json_serialize_import.



5
6
7
# File 'lib/j2j/configurator.rb', line 5

def json_serialize_import
  @json_serialize_import
end

#output_directoryObject

Returns the value of attribute output_directory.



5
6
7
# File 'lib/j2j/configurator.rb', line 5

def output_directory
  @output_directory
end

#packageObject

Returns the value of attribute package.



5
6
7
# File 'lib/j2j/configurator.rb', line 5

def package
  @package
end

#top_level_classObject

Returns the value of attribute top_level_class.



5
6
7
# File 'lib/j2j/configurator.rb', line 5

def top_level_class
  @top_level_class
end

#unknown_classObject

Returns the value of attribute unknown_class.



5
6
7
# File 'lib/j2j/configurator.rb', line 5

def unknown_class
  @unknown_class
end