test_class.file: RMBTUtil/src/test/java/at/rtr/rmbt/util/model/option/ServerOptionTest.java
test_class.identifier: ServerOptionTest
test_class.superclass: extends TestCase
test_case.body: @Test
  	public void testOptionParameterOverrides() throws Exception {
  		URL url = Thread.currentThread().getContextClassLoader().getResource("at/rtr/rmbt/util/model/option/test3.json");
  		File file = new File(url.getPath());
  		ServerOptionContainer options = new ServerOptionContainer(
  				new ArrayList<>(Arrays.asList(ServerOption.getGson().fromJson(new FileReader(file), ServerOption.class))));
  
  		final List<ServerOption> list = options.getRootOptions();
  		List<ServerOption> sublist = options.select(list.get(0));
  		assertEquals("option 0 select param size", 0, options.getSelectedParams().size());
  		
  		sublist = options.select(sublist.get(0));
  		assertEquals("option 0->0 select param size", 2, options.getSelectedParams().size());
  		assertEquals("option 0->0 param 'option'", "a1", options.getSelectedParams().get("option"));
  		
  		sublist = options.select(sublist.get(0));
  		assertEquals("option 0->0->0 select param size", 2, options.getSelectedParams().size());
  		assertEquals("option 0->0->0 override param 'option'", "a2", options.getSelectedParams().get("option"));
  		
  		sublist = options.select(sublist.get(0));
  		assertEquals("option 0->0->0->0 select param size", 2, options.getSelectedParams().size());
  		assertEquals("option 0->0->0->0 override param 'option'", "a3", options.getSelectedParams().get("option"));
  
  		sublist = options.select(sublist.get(0));
  		assertEquals("option 0->0->0->0->0 select param size", 2, options.getSelectedParams().size());
  		assertEquals("option 0->0->0->0->0 override param 'option'", "a3", options.getSelectedParams().get("option"));
  	}
test_case.class_method_signature: ServerOptionTest.testOptionParameterOverrides()
test_case.full_signature: @Test public void testOptionParameterOverrides()
test_case.identifier: testOptionParameterOverrides
test_case.invocations: getResource getContextClassLoader currentThread getPath asList fromJson getGson getRootOptions select get assertEquals size getSelectedParams select get assertEquals size getSelectedParams assertEquals get getSelectedParams select get assertEquals size getSelectedParams assertEquals get getSelectedParams select get assertEquals size getSelectedParams assertEquals get getSelectedParams select get assertEquals size getSelectedParams assertEquals get getSelectedParams
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOptionParameterOverrides()
focal_class.declarator: serialVersionUID = 1L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 1L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: title
focal_class.modifier: @Expose
  	@SerializedName("title")
  	protected
focal_class.original_string: @Expose
  	@SerializedName("title")
  	protected String title;
focal_class.type: String
focal_class.var_name: title
focal_class.declarator: summary
focal_class.modifier: @Expose
  	@SerializedName("summary")
  	protected
focal_class.original_string: @Expose
  	@SerializedName("summary")
  	protected String summary;
focal_class.type: String
focal_class.var_name: summary
focal_class.declarator: optionList
focal_class.modifier: @Expose
  	@SerializedName("options")
  	protected
focal_class.original_string: @Expose
  	@SerializedName("options")
  	protected List<ServerOption> optionList;
focal_class.type: List<ServerOption>
focal_class.var_name: optionList
focal_class.declarator: parameterMap
focal_class.modifier: @Expose
  	@SerializedName("params")
  	protected
focal_class.original_string: @Expose
  	@SerializedName("params")
  	protected Map<String, Object> parameterMap;
focal_class.type: Map<String, Object>
focal_class.var_name: parameterMap
focal_class.declarator: functionList
focal_class.modifier: @Expose
  	@SerializedName("functions")
  	protected
focal_class.original_string: @Expose
  	@SerializedName("functions")
  	protected List<OptionFunction> functionList;
focal_class.type: List<OptionFunction>
focal_class.var_name: functionList
focal_class.declarator: dependsOnMap
focal_class.modifier: @Expose
  	@SerializedName("depends_on")
  	protected
focal_class.original_string: @Expose
  	@SerializedName("depends_on")
  	protected Map<String, Object> dependsOnMap;
focal_class.type: Map<String, Object>
focal_class.var_name: dependsOnMap
focal_class.declarator: isDefault = false
focal_class.modifier: @Expose
  	@SerializedName("default")
  	protected
focal_class.original_string: @Expose
  	@SerializedName("default")
  	protected boolean isDefault = false;
focal_class.type: boolean
focal_class.var_name: isDefault
focal_class.declarator: parent
focal_class.modifier: protected
focal_class.original_string: protected ServerOption parent;
focal_class.type: ServerOption
focal_class.var_name: parent
focal_class.declarator: isEnabled = true
focal_class.modifier: protected
focal_class.original_string: protected boolean isEnabled = true;
focal_class.type: boolean
focal_class.var_name: isEnabled
focal_class.declarator: isChecked = false
focal_class.modifier: protected
focal_class.original_string: protected boolean isChecked = false;
focal_class.type: boolean
focal_class.var_name: isChecked
focal_class.file: RMBTUtil/src/main/java/at/rtr/rmbt/util/model/option/ServerOption.java
focal_class.identifier: ServerOption
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: ServerOption.getGson()
focal_class.full_signature: public static Gson getGson()
focal_class.identifier: getGson
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Gson
focal_class.signature: Gson getGson()
focal_class.class_method_signature: ServerOption.ServerOption()
focal_class.full_signature: public  ServerOption()
focal_class.identifier: ServerOption
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ServerOption()
focal_class.class_method_signature: ServerOption.ServerOption(final String title)
focal_class.full_signature: public  ServerOption(final String title)
focal_class.identifier: ServerOption
focal_class.modifiers: public
focal_class.parameters: (final String title)
focal_class.signature:  ServerOption(final String title)
focal_class.class_method_signature: ServerOption.ServerOption(final String title, final String summary)
focal_class.full_signature: public  ServerOption(final String title, final String summary)
focal_class.identifier: ServerOption
focal_class.modifiers: public
focal_class.parameters: (final String title, final String summary)
focal_class.signature:  ServerOption(final String title, final String summary)
focal_class.class_method_signature: ServerOption.getParent()
focal_class.full_signature: public ServerOption getParent()
focal_class.identifier: getParent
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ServerOption
focal_class.signature: ServerOption getParent()
focal_class.class_method_signature: ServerOption.setParent(ServerOption parent)
focal_class.full_signature: public void setParent(ServerOption parent)
focal_class.identifier: setParent
focal_class.modifiers: public
focal_class.parameters: (ServerOption parent)
focal_class.return: void
focal_class.signature: void setParent(ServerOption parent)
focal_class.class_method_signature: ServerOption.getTitle()
focal_class.full_signature: public String getTitle()
focal_class.identifier: getTitle
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTitle()
focal_class.class_method_signature: ServerOption.setTitle(String title)
focal_class.full_signature: public void setTitle(String title)
focal_class.identifier: setTitle
focal_class.modifiers: public
focal_class.parameters: (String title)
focal_class.return: void
focal_class.signature: void setTitle(String title)
focal_class.class_method_signature: ServerOption.getSummary()
focal_class.full_signature: public String getSummary()
focal_class.identifier: getSummary
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSummary()
focal_class.class_method_signature: ServerOption.setSummary(String summary)
focal_class.full_signature: public void setSummary(String summary)
focal_class.identifier: setSummary
focal_class.modifiers: public
focal_class.parameters: (String summary)
focal_class.return: void
focal_class.signature: void setSummary(String summary)
focal_class.class_method_signature: ServerOption.getEnabledOptionList()
focal_class.full_signature: public List<ServerOption> getEnabledOptionList()
focal_class.identifier: getEnabledOptionList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<ServerOption>
focal_class.signature: List<ServerOption> getEnabledOptionList()
focal_class.class_method_signature: ServerOption.getOptionList()
focal_class.full_signature: public List<ServerOption> getOptionList()
focal_class.identifier: getOptionList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<ServerOption>
focal_class.signature: List<ServerOption> getOptionList()
focal_class.class_method_signature: ServerOption.setOptionList(List<ServerOption> optionList)
focal_class.full_signature: public void setOptionList(List<ServerOption> optionList)
focal_class.identifier: setOptionList
focal_class.modifiers: public
focal_class.parameters: (List<ServerOption> optionList)
focal_class.return: void
focal_class.signature: void setOptionList(List<ServerOption> optionList)
focal_class.class_method_signature: ServerOption.addOption(final ServerOption option)
focal_class.full_signature: public void addOption(final ServerOption option)
focal_class.identifier: addOption
focal_class.modifiers: public
focal_class.parameters: (final ServerOption option)
focal_class.return: void
focal_class.signature: void addOption(final ServerOption option)
focal_class.class_method_signature: ServerOption.getParameterMap()
focal_class.full_signature: public Map<String, Object> getParameterMap()
focal_class.identifier: getParameterMap
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> getParameterMap()
focal_class.class_method_signature: ServerOption.setParameterMap(Map<String, Object> parameterMap)
focal_class.full_signature: public void setParameterMap(Map<String, Object> parameterMap)
focal_class.identifier: setParameterMap
focal_class.modifiers: public
focal_class.parameters: (Map<String, Object> parameterMap)
focal_class.return: void
focal_class.signature: void setParameterMap(Map<String, Object> parameterMap)
focal_class.class_method_signature: ServerOption.addParameter(final String key, final Object value)
focal_class.full_signature: public void addParameter(final String key, final Object value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (final String key, final Object value)
focal_class.return: void
focal_class.signature: void addParameter(final String key, final Object value)
focal_class.class_method_signature: ServerOption.getFunctionList()
focal_class.full_signature: public List<OptionFunction> getFunctionList()
focal_class.identifier: getFunctionList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<OptionFunction>
focal_class.signature: List<OptionFunction> getFunctionList()
focal_class.class_method_signature: ServerOption.setFunctionMap(List<OptionFunction> functionList)
focal_class.full_signature: public void setFunctionMap(List<OptionFunction> functionList)
focal_class.identifier: setFunctionMap
focal_class.modifiers: public
focal_class.parameters: (List<OptionFunction> functionList)
focal_class.return: void
focal_class.signature: void setFunctionMap(List<OptionFunction> functionList)
focal_class.class_method_signature: ServerOption.addFunction(final OptionFunction value)
focal_class.full_signature: public void addFunction(final OptionFunction value)
focal_class.identifier: addFunction
focal_class.modifiers: public
focal_class.parameters: (final OptionFunction value)
focal_class.return: void
focal_class.signature: void addFunction(final OptionFunction value)
focal_class.class_method_signature: ServerOption.getDependsOnMap()
focal_class.full_signature: public Map<String, Object> getDependsOnMap()
focal_class.identifier: getDependsOnMap
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> getDependsOnMap()
focal_class.class_method_signature: ServerOption.setDependsOnMap(Map<String, Object> dependsOnMap)
focal_class.full_signature: public void setDependsOnMap(Map<String, Object> dependsOnMap)
focal_class.identifier: setDependsOnMap
focal_class.modifiers: public
focal_class.parameters: (Map<String, Object> dependsOnMap)
focal_class.return: void
focal_class.signature: void setDependsOnMap(Map<String, Object> dependsOnMap)
focal_class.class_method_signature: ServerOption.addDependsOn(final String key, final Object value)
focal_class.full_signature: public void addDependsOn(final String key, final Object value)
focal_class.identifier: addDependsOn
focal_class.modifiers: public
focal_class.parameters: (final String key, final Object value)
focal_class.return: void
focal_class.signature: void addDependsOn(final String key, final Object value)
focal_class.class_method_signature: ServerOption.isEnabled()
focal_class.full_signature: public boolean isEnabled()
focal_class.identifier: isEnabled
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEnabled()
focal_class.class_method_signature: ServerOption.setEnabled(boolean isEnabled)
focal_class.full_signature: public void setEnabled(boolean isEnabled)
focal_class.identifier: setEnabled
focal_class.modifiers: public
focal_class.parameters: (boolean isEnabled)
focal_class.return: void
focal_class.signature: void setEnabled(boolean isEnabled)
focal_class.class_method_signature: ServerOption.isChecked()
focal_class.full_signature: public boolean isChecked()
focal_class.identifier: isChecked
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isChecked()
focal_class.class_method_signature: ServerOption.setChecked(boolean isChecked)
focal_class.full_signature: public void setChecked(boolean isChecked)
focal_class.identifier: setChecked
focal_class.modifiers: public
focal_class.parameters: (boolean isChecked)
focal_class.return: void
focal_class.signature: void setChecked(boolean isChecked)
focal_class.class_method_signature: ServerOption.isDefault()
focal_class.full_signature: public boolean isDefault()
focal_class.identifier: isDefault
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDefault()
focal_class.class_method_signature: ServerOption.setDefault(boolean isDefault)
focal_class.full_signature: public void setDefault(boolean isDefault)
focal_class.identifier: setDefault
focal_class.modifiers: public
focal_class.parameters: (boolean isDefault)
focal_class.return: void
focal_class.signature: void setDefault(boolean isDefault)
focal_class.class_method_signature: ServerOption.isInHierarchyBelow(ServerOption option)
focal_class.full_signature: public boolean isInHierarchyBelow(ServerOption option)
focal_class.identifier: isInHierarchyBelow
focal_class.modifiers: public
focal_class.parameters: (ServerOption option)
focal_class.return: boolean
focal_class.signature: boolean isInHierarchyBelow(ServerOption option)
focal_class.class_method_signature: ServerOption.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public static Gson getGson() {
  		Gson gson = new GsonBuilder().
  				registerTypeAdapter(ServerOption.class, new ServerOptionParentDeserializer()).
  				excludeFieldsWithoutExposeAnnotation().
  				create();
  		return gson;
  	}
focal_method.class_method_signature: ServerOption.getGson()
focal_method.full_signature: public static Gson getGson()
focal_method.identifier: getGson
focal_method.invocations: create excludeFieldsWithoutExposeAnnotation registerTypeAdapter
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: Gson
focal_method.signature: Gson getGson()