jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/XMLSerializer.java
changeset 32795 5a5710ee05a0
parent 25871 b80b84e87032
equal deleted inserted replaced
32712:f61a63b7d1e5 32795:5a5710ee05a0
   376      *   c.endElement();
   376      *   c.endElement();
   377      * c.text("ghi");
   377      * c.text("ghi");
   378      * c.endElement();
   378      * c.endElement();
   379      * </pre>
   379      * </pre>
   380      *
   380      *
   381      * will generate <code>&lt;foo>abc def&lt;bar/>ghi&lt;/foo></code>.
   381      * will generate {@code <foo>abc def<bar/>ghi</foo>}.
   382      */
   382      */
   383     public void text( String text, String fieldName ) throws SAXException, IOException, XMLStreamException {
   383     public void text( String text, String fieldName ) throws SAXException, IOException, XMLStreamException {
   384         // If the assertion fails, it must be a bug of xjc.
   384         // If the assertion fails, it must be a bug of xjc.
   385         // right now, we are not expecting the text method to be called.
   385         // right now, we are not expecting the text method to be called.
   386         if(text==null) {
   386         if(text==null) {
   490      * detect any cycles.
   490      * detect any cycles.
   491      *
   491      *
   492      * When a cycle is found, this method tries to recover from it.
   492      * When a cycle is found, this method tries to recover from it.
   493      *
   493      *
   494      * @return
   494      * @return
   495      *      the object that should be marshalled instead of the given <tt>obj</tt>,
   495      *      the object that should be marshalled instead of the given {@code obj},
   496      *      or null if the error is found and we need to avoid marshalling this object
   496      *      or null if the error is found and we need to avoid marshalling this object
   497      *      to prevent infinite recursion. When this method returns null, the error
   497      *      to prevent infinite recursion. When this method returns null, the error
   498      *      has already been reported.
   498      *      has already been reported.
   499      */
   499      */
   500     private Object pushObject(Object obj, String fieldName) throws SAXException {
   500     private Object pushObject(Object obj, String fieldName) throws SAXException {