@Test public void testGetInputs() { MIntegerInput intInput = new MIntegerInput("Config.A", false, InputEditable.ANY, StringUtils.EMPTY ); MLongInput longInput = new MLongInput("Config.A1", false, InputEditable.ANY, StringUtils.EMPTY ); MMapInput mapInput = new MMapInput("Config.B", false, InputEditable.ANY, StringUtils.EMPTY ); MStringInput stringInput = new MStringInput("Config.C", false, InputEditable.ANY, StringUtils.EMPTY, (short) 3); MEnumInput enumInput = new MEnumInput("Config.D", false, InputEditable.ANY, StringUtils.EMPTY, new String[] { "I", "V" }); List<MInput<?>> inputs = new ArrayList<MInput<?>>(); inputs.add(intInput); inputs.add(longInput); inputs.add(mapInput); inputs.add(stringInput); inputs.add(enumInput); MConfig config = new MConfig("Config", inputs); assertEquals(intInput, config.getIntegerInput("Config.A")); assertEquals(longInput, config.getLongInput("Config.A1")); assertEquals(mapInput, config.getMapInput("Config.B")); assertEquals(stringInput, config.getStringInput("Config.C")); assertEquals(enumInput, config.getEnumInput("Config.D")); }
public List<MInput<?>> getInputs() { return inputs; }
MConfig extends MValidatedElement implements MClonable { public List<MInput<?>> getInputs() { return inputs; } }
MConfig extends MValidatedElement implements MClonable { public List<MInput<?>> getInputs() { return inputs; } MConfig(String name, List<MInput<?>> inputs); }
MConfig extends MValidatedElement implements MClonable { public List<MInput<?>> getInputs() { return inputs; } MConfig(String name, List<MInput<?>> inputs); List<MInput<?>> getInputs(); Set<String> getInputNames(); Set<String> getUserOnlyEditableInputNames(); MInput<?> getInput(String inputName); MStringInput getStringInput(String inputName); MEnumInput getEnumInput(String inputName); MIntegerInput getIntegerInput(String inputName); MLongInput getLongInput(String inputName); MBooleanInput getBooleanInput(String inputName); MMapInput getMapInput(String inputName); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); @Override MConfig clone(boolean cloneWithValue); }
MConfig extends MValidatedElement implements MClonable { public List<MInput<?>> getInputs() { return inputs; } MConfig(String name, List<MInput<?>> inputs); List<MInput<?>> getInputs(); Set<String> getInputNames(); Set<String> getUserOnlyEditableInputNames(); MInput<?> getInput(String inputName); MStringInput getStringInput(String inputName); MEnumInput getEnumInput(String inputName); MIntegerInput getIntegerInput(String inputName); MLongInput getLongInput(String inputName); MBooleanInput getBooleanInput(String inputName); MMapInput getMapInput(String inputName); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); @Override MConfig clone(boolean cloneWithValue);  }