/** * Generates XML code for the adjustments of the {@code attribute} * ({@code adjusted_value}, {@code adjusted_name}). * * @param attribute * @param xmlWriter * @throws IOException */ private void generateAdjustments(GoogleBaseAttribute attribute, XmlWriter xmlWriter) throws IOException { if (attribute.hasAdjustments()) { Adjustments adjustments = attribute.getAdjustments(); if (adjustments.getName() != null) { writeXmlNameValue(xmlWriter, GoogleBaseNamespaces.GM, GM_ADJUSTED_NAME_ATTRIBUTE, adjustments.getName()); } if (adjustments.getValue() != null) { writeXmlNameValue(xmlWriter, GoogleBaseNamespaces.GM, GM_ADJUSTED_VALUE_ATTRIBUTE, adjustments.getValue()); } } }
/** * Generates XML code for the adjustments of the {@code attribute} * ({@code adjusted_value}, {@code adjusted_name}). * * @param attribute * @param xmlWriter * @throws IOException */ private void generateAdjustments(GoogleBaseAttribute attribute, XmlWriter xmlWriter) throws IOException { if (attribute.hasAdjustments()) { Adjustments adjustments = attribute.getAdjustments(); if (adjustments.getName() != null) { writeXmlNameValue(xmlWriter, GoogleBaseNamespaces.GM, GM_ADJUSTED_NAME_ATTRIBUTE, adjustments.getName()); } if (adjustments.getValue() != null) { writeXmlNameValue(xmlWriter, GoogleBaseNamespaces.GM, GM_ADJUSTED_VALUE_ATTRIBUTE, adjustments.getValue()); } } }