public void writeText(XMLSerializer w, T o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException { core.writeText(w, o, fieldName); }
public void writeText(XMLSerializer w, T t, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException { baseXducer.writeText(w,printMap.get(t),fieldName); }
public final void serializeBody(BeanT bean, XMLSerializer w) throws SAXException, IOException, XMLStreamException { // most of the times leaves are printed as leaf element/attribute property, // so this code is only used for example when you have multiple XmlElement on a property // and some of them are leaves. Hence this doesn't need to be super-fast. try { xducer.writeText(w,bean,null); } catch (AccessorException e) { w.reportError(null,e); } }
@Override public void writeText(XMLSerializer w, BeanT o, String fieldName) throws AccessorException, SAXException, IOException, XMLStreamException { xducer.writeText(w,acc.get(o),fieldName); } }
public void serializeBody(Object array, XMLSerializer target) throws SAXException, IOException, XMLStreamException { int len = Array.getLength(array); for( int i=0; i<len; i++ ) { Object item = Array.get(array,i); try { xducer.writeText(target,item,"arrayItem"); } catch (AccessorException e) { target.reportError("arrayItem",e); } } }
@Override public void writeText(XMLSerializer w, V o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException { QName old = w.setSchemaType(schemaType); try { core.writeText(w,o,fieldName); } finally { w.setSchemaType(old); } }
@Override public void writeText(XMLSerializer w, V o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException { MimeType old = w.setExpectedMimeType(expectedMimeType); try { core.writeText(w, o, fieldName); } finally { w.setExpectedMimeType(old); } }
@Override public void writeText(XMLSerializer w, V o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException { boolean old = w.setInlineBinaryFlag(true); try { core.writeText(w,o,fieldName); } finally { w.setInlineBinaryFlag(old); } }
public void serializeItem(JaxBeanInfo bi, ItemT item, XMLSerializer w) throws SAXException, AccessorException, IOException, XMLStreamException { xducer.declareNamespace(item,w); w.endNamespaceDecls(item); w.endAttributes(); // this is leaf, so by definition there's no type substitution // if there's, we'll be using ArrayElementNodeProperty xducer.writeText(w,item,fieldName); } }
@Override public void writeLeafElement(XMLSerializer w, Name tagName, BeanT o, String fieldName) throws SAXException, AccessorException, IOException, XMLStreamException { w.startElement(tagName,null); declareNamespace(o,w); w.endNamespaceDecls(null); w.endAttributes(); xducer.writeText(w,acc.get(o),fieldName); w.endElement(); } }
public void writeText(XMLSerializer w, T o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException { core.writeText(w, o, fieldName); }
public void writeText(XMLSerializer w, T t, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException { baseXducer.writeText(w,printMap.get(t),fieldName); }
public void serializeBody(Object array, XMLSerializer target) throws SAXException, IOException, XMLStreamException { int len = Array.getLength(array); for( int i=0; i<len; i++ ) { Object item = Array.get(array,i); try { xducer.writeText(target,item,"arrayItem"); } catch (AccessorException e) { target.reportError("arrayItem",e); } } }
@Override public void writeText(XMLSerializer w, BeanT o, String fieldName) throws AccessorException, SAXException, IOException, XMLStreamException { xducer.writeText(w,acc.get(o),fieldName); } }
public final void serializeBody(BeanT bean, XMLSerializer w) throws SAXException, IOException, XMLStreamException { // most of the times leaves are printed as leaf element/attribute property, // so this code is only used for example when you have multiple XmlElement on a property // and some of them are leaves. Hence this doesn't need to be super-fast. try { xducer.writeText(w,bean,null); } catch (AccessorException e) { w.reportError(null,e); } }
@Override public void writeText(XMLSerializer w, V o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException { MimeType old = w.setExpectedMimeType(expectedMimeType); try { core.writeText(w, o, fieldName); } finally { w.setExpectedMimeType(old); } }
@Override public void writeText(XMLSerializer w, V o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException { QName old = w.setSchemaType(schemaType); try { core.writeText(w,o,fieldName); } finally { w.setSchemaType(old); } }
@Override public void writeText(XMLSerializer w, V o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException { boolean old = w.setInlineBinaryFlag(true); try { core.writeText(w,o,fieldName); } finally { w.setInlineBinaryFlag(old); } }
public void serializeItem(JaxBeanInfo bi, ItemT item, XMLSerializer w) throws SAXException, AccessorException, IOException, XMLStreamException { xducer.declareNamespace(item,w); w.endNamespaceDecls(item); w.endAttributes(); // this is leaf, so by definition there's no type substitution // if there's, we'll be using ArrayElementNodeProperty xducer.writeText(w,item,fieldName); } }
@Override public void writeLeafElement(XMLSerializer w, Name tagName, BeanT o, String fieldName) throws SAXException, AccessorException, IOException, XMLStreamException { w.startElement(tagName,null); declareNamespace(o,w); w.endNamespaceDecls(null); w.endAttributes(); xducer.writeText(w,acc.get(o),fieldName); w.endElement(); } }