public void writeProperties(String propertiesElement, Map<String, String> properties) { if (properties != null && properties.size() > 0) { start(propertiesElement); attribute(COLLECTION_SIZE_ATTRIBUTE, properties.size()); for (Entry<String, String> entry : properties.entrySet()) { writeProperty(entry.getKey(), entry.getValue()); } end(propertiesElement); } }
public void writeProperties(String propertiesElement, Map<String, String> properties) { if (properties != null && properties.size() > 0) { start(propertiesElement); attribute(COLLECTION_SIZE_ATTRIBUTE, properties.size()); for (Entry<String, String> entry : properties.entrySet()) { writeProperty(entry.getKey(), entry.getValue()); } end(propertiesElement); } }
public void writeProperty(String name, String value) { start(PROPERTY_ELEMENT); attribute(PROPERTY_NAME_ATTRIBUTE, name); attribute(PROPERTY_VALUE_ATTRIBUTE, value); end(); }
public void writeProperty(String name, String value) { start(PROPERTY_ELEMENT); attribute(PROPERTY_NAME_ATTRIBUTE, name); attribute(PROPERTY_VALUE_ATTRIBUTE, value); end(); }