public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { Properties properties = new Properties(); Properties defaults = null; while (reader.hasMoreChildren()) { reader.moveDown(); if (reader.getNodeName().equals("defaults")) { defaults = (Properties) unmarshal(reader, context); } else { String name = reader.getAttribute("name"); String value = reader.getAttribute("value"); properties.setProperty(name, value); } reader.moveUp(); } if (defaults == null) { return properties; } else { Properties propertiesWithDefaults = new Properties(defaults); propertiesWithDefaults.putAll(properties); return propertiesWithDefaults; } }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { Properties properties = new Properties(); Properties defaults = null; while (reader.hasMoreChildren()) { reader.moveDown(); if (reader.getNodeName().equals("defaults")) { defaults = (Properties) unmarshal(reader, context); } else { String name = reader.getAttribute("name"); String value = reader.getAttribute("value"); properties.setProperty(name, value); } reader.moveUp(); } if (defaults == null) { return properties; } else { Properties propertiesWithDefaults = new Properties(defaults); propertiesWithDefaults.putAll(properties); return propertiesWithDefaults; } }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { Properties properties = new Properties(); Properties defaults = null; while (reader.hasMoreChildren()) { reader.moveDown(); if (reader.getNodeName().equals("defaults")) { defaults = (Properties) unmarshal(reader, context); } else { String name = reader.getAttribute("name"); String value = reader.getAttribute("value"); properties.setProperty(name, value); } reader.moveUp(); } if (defaults == null) { return properties; } else { Properties propertiesWithDefaults = new Properties(defaults); propertiesWithDefaults.putAll(properties); return propertiesWithDefaults; } }
@Override public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) { final Properties properties = new Properties(); Properties defaults = null; while (reader.hasMoreChildren()) { reader.moveDown(); if (reader.getNodeName().equals("defaults")) { defaults = (Properties)unmarshal(reader, context); } else { final String name = reader.getAttribute("name"); final String value = reader.getAttribute("value"); properties.setProperty(name, value); } reader.moveUp(); } if (defaults == null) { return properties; } else { final Properties propertiesWithDefaults = new Properties(defaults); propertiesWithDefaults.putAll(properties); return propertiesWithDefaults; } }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { Properties properties = new Properties(); Properties defaults = null; while (reader.hasMoreChildren()) { reader.moveDown(); if (reader.getNodeName().equals("defaults")) { defaults = (Properties) unmarshal(reader, context); } else { String name = reader.getAttribute("name"); String value = reader.getAttribute("value"); properties.setProperty(name, value); } reader.moveUp(); } if (defaults == null) { return properties; } else { Properties propertiesWithDefaults = new Properties(defaults); propertiesWithDefaults.putAll(properties); return propertiesWithDefaults; } }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { Properties properties = new Properties(); Properties defaults = null; while (reader.hasMoreChildren()) { reader.moveDown(); if (reader.getNodeName().equals("defaults")) { defaults = (Properties) unmarshal(reader, context); } else { String name = reader.getAttribute("name"); String value = reader.getAttribute("value"); properties.setProperty(name, value); } reader.moveUp(); } if (defaults == null) { return properties; } else { Properties propertiesWithDefaults = new Properties(defaults); propertiesWithDefaults.putAll(properties); return propertiesWithDefaults; } }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { Properties properties = new Properties(); Properties defaults = null; while (reader.hasMoreChildren()) { reader.moveDown(); if (reader.getNodeName().equals("defaults")) { defaults = (Properties) unmarshal(reader, context); } else { String name = reader.getAttribute("name"); String value = reader.getAttribute("value"); properties.setProperty(name, value); } reader.moveUp(); } if (defaults == null) { return properties; } else { Properties propertiesWithDefaults = new Properties(defaults); propertiesWithDefaults.putAll(properties); return propertiesWithDefaults; } }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { Properties properties = new Properties(); while (reader.hasMoreChildren()) { reader.moveDown(); if (reader.getNodeName().equals("defaults")) { Properties defaults = (Properties) unmarshal(reader, context); Fields.write(defaultsField, properties, defaults); } else { String name = reader.getAttribute("name"); String value = reader.getAttribute("value"); properties.setProperty(name, value); } reader.moveUp(); } return properties; }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { Properties properties = new Properties(); while (reader.hasMoreChildren()) { reader.moveDown(); if (reader.getNodeName().equals("defaults")) { Properties defaults = (Properties) unmarshal(reader, context); Fields.write(defaultsField, properties, defaults); } else { String name = reader.getAttribute("name"); String value = reader.getAttribute("value"); properties.setProperty(name, value); } reader.moveUp(); } return properties; }