@Test public void readSimpleStringProperty() throws Exception { String simpleStringXml = prepareElement(STRING_TAG, stringValue); xsr = new XmlSettingsReader(simpleStringXml); String readStringProperty = xsr.getStringProperty(STRING_TAG); assertEquals(stringValue, readStringProperty); }
public String getStringProperty(String tagName) { return this.getStringProperty(tagName, null); }
XmlSettingsReader { public String getStringProperty(String tagName) { return this.getStringProperty(tagName, null); } }
XmlSettingsReader { public String getStringProperty(String tagName) { return this.getStringProperty(tagName, null); } XmlSettingsReader(String xmlString); }
XmlSettingsReader { public String getStringProperty(String tagName) { return this.getStringProperty(tagName, null); } XmlSettingsReader(String xmlString); int getIntProperty(String xPathExp, String tagName, int defaultVal); String getStringPropertyByXPath(String xPathExp, String tagName); String getStringPropertyByXPath(String xPathExp, String tagName, String defaultVal); boolean getBooleanProperty(String xPathExp, String tagName, boolean defaultVal); String getStringProperty(String tagName); File getFileProperty(String tagName); String getStringProperty(String tagName, String defaultValue); List<String> getStringListProperty(String tagName); Map<String, Boolean> getStringKeyedBooleanMapProperty(String tagName); Map<String, T> getStringKeyedMapProperty(String tagName, Function<String, T> mapFunction); T getComplexType(String tagName, Class<T> targetClass); }
XmlSettingsReader { public String getStringProperty(String tagName) { return this.getStringProperty(tagName, null); } XmlSettingsReader(String xmlString); int getIntProperty(String xPathExp, String tagName, int defaultVal); String getStringPropertyByXPath(String xPathExp, String tagName); String getStringPropertyByXPath(String xPathExp, String tagName, String defaultVal); boolean getBooleanProperty(String xPathExp, String tagName, boolean defaultVal); String getStringProperty(String tagName); File getFileProperty(String tagName); String getStringProperty(String tagName, String defaultValue); List<String> getStringListProperty(String tagName); Map<String, Boolean> getStringKeyedBooleanMapProperty(String tagName); Map<String, T> getStringKeyedMapProperty(String tagName, Function<String, T> mapFunction); T getComplexType(String tagName, Class<T> targetClass);  }