public void writeEndElement() throws XMLStreamException { if (stack.isEmpty()) throw new XMLStreamException("Too many closing tags."); current = stack.pop().withProperty(current); }
public JSONPropertyObject withProperty(JSONProperty property) { return withProperty(property, true); } }
public void writeAttribute(String prefix, String ns, String local, String value) throws XMLStreamException { String key = convention.isElement(prefix, ns, local) ? convention.createKey(prefix, ns, local) : convention.createAttributeKey(prefix, ns, local); JSONPropertyString prop = new JSONPropertyString(key, null); prop.addText(value); current = current.withProperty(prop, false); }