/** * Encode a simple attribute, this means that this property will be encoded as a simple JSON * attribute. */ private void encodeSimpleAttribute(Attribute attribute, Map<NameImpl, String> attributes) { String name = attribute.getName().getLocalPart(); Object value = attribute.getValue(); encodeSimpleAttribute(name, value, attributes); }
Object simpleValue = getSimpleContent(complexAttribute); if (simpleValue != null) { encodeSimpleAttribute( complexAttribute.getName().getLocalPart(), simpleValue, attributes); } else { } else { encodeSimpleAttribute((Attribute) property, attributes);