@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-04-24T11:17:38-05:00", comments = "JAXB RI v2.2.11") public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theValue; theValue = this.getValue(); strategy.appendField(locator, this, "value", buffer, theValue); } { CurrencyCode theCurrencyCode; theCurrencyCode = this.getCurrencyCode(); strategy.appendField(locator, this, "currencyCode", buffer, theCurrencyCode); } return buffer; }
if (PojoUtil.isEmpty(amount.getCurrencyCode()) && !PojoUtil.isEmpty(amount.getContent())) { throw new OrcidValidationException("Please specify a currency code"); } else if (!PojoUtil.isEmpty(amount.getCurrencyCode()) && PojoUtil.isEmpty(amount.getContent())) { throw new OrcidValidationException("Please specify an amount or remove the amount tag");