< prev index next >
src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/XMLSerializer.java
Print this page
*** 376,386 ****
* c.endElement();
* c.text("ghi");
* c.endElement();
* </pre>
*
! * will generate <code><foo>abc def<bar/>ghi</foo></code>.
*/
public void text( String text, String fieldName ) throws SAXException, IOException, XMLStreamException {
// If the assertion fails, it must be a bug of xjc.
// right now, we are not expecting the text method to be called.
if(text==null) {
--- 376,386 ----
* c.endElement();
* c.text("ghi");
* c.endElement();
* </pre>
*
! * will generate {@code <foo>abc def<bar/>ghi</foo>}.
*/
public void text( String text, String fieldName ) throws SAXException, IOException, XMLStreamException {
// If the assertion fails, it must be a bug of xjc.
// right now, we are not expecting the text method to be called.
if(text==null) {
*** 490,500 ****
* detect any cycles.
*
* When a cycle is found, this method tries to recover from it.
*
* @return
! * the object that should be marshalled instead of the given <tt>obj</tt>,
* or null if the error is found and we need to avoid marshalling this object
* to prevent infinite recursion. When this method returns null, the error
* has already been reported.
*/
private Object pushObject(Object obj, String fieldName) throws SAXException {
--- 490,500 ----
* detect any cycles.
*
* When a cycle is found, this method tries to recover from it.
*
* @return
! * the object that should be marshalled instead of the given {@code obj},
* or null if the error is found and we need to avoid marshalling this object
* to prevent infinite recursion. When this method returns null, the error
* has already been reported.
*/
private Object pushObject(Object obj, String fieldName) throws SAXException {
< prev index next >