org.codehaus.activesoap.handler.stax
Class StaxHelper

java.lang.Object
  extended byorg.codehaus.activesoap.handler.stax.StaxHelper

public class StaxHelper
extends Object

Version:
$Revision: 1.4 $

Constructor Summary
StaxHelper()
           
 
Method Summary
static String readTextContent(XMLStreamReader in)
          Reads the content of the current element as a String, ignoring any embedded elements
static void writeAnyContent(List list, AnyElementMarshaler marshaller, XMLStreamWriter out)
          Writes the list of any objects to the stream.
static void writeAttributes(Map map, XMLStreamWriter out)
          Writes the given attributes to the stream
static void writeElement(QName qname, ElementContent element, AnyElementMarshaler marshaler, XMLStreamWriter out)
          Writes the given element to the StAX stream if it is not null
static void writeElement(QName qname, ElementContent element, AnyElementMarshaler marshaler, XMLStreamWriter out, boolean repairingMode)
           
static void writeElement(QName qname, Object object, AnyElementMarshaler marshaler, XMLStreamWriter out)
           
static void writeElement(QName qname, Object object, AnyElementMarshaler marshaler, XMLStreamWriter out, boolean repairingMode)
           
static void writeElementNoNamespace(QName qname, ElementContent element, AnyElementMarshaler marshaler, XMLStreamWriter out)
           
static void writeElementNoNamespace(QName qname, Object object, AnyElementMarshaler marshaler, XMLStreamWriter out)
           
static void writeStartElement(QName qname, XMLStreamWriter out, boolean repairingMode)
           
static void writeStartElementNoNamespace(QName qname, XMLStreamWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaxHelper

public StaxHelper()
Method Detail

writeAttributes

public static void writeAttributes(Map map,
                                   XMLStreamWriter out)
                            throws XMLStreamException
Writes the given attributes to the stream

Throws:
XMLStreamException

writeElement

public static void writeElement(QName qname,
                                ElementContent element,
                                AnyElementMarshaler marshaler,
                                XMLStreamWriter out)
                         throws XMLStreamException
Writes the given element to the StAX stream if it is not null

Throws:
XMLStreamException

writeElement

public static void writeElement(QName qname,
                                ElementContent element,
                                AnyElementMarshaler marshaler,
                                XMLStreamWriter out,
                                boolean repairingMode)
                         throws XMLStreamException
Throws:
XMLStreamException

writeElementNoNamespace

public static void writeElementNoNamespace(QName qname,
                                           ElementContent element,
                                           AnyElementMarshaler marshaler,
                                           XMLStreamWriter out)
                                    throws XMLStreamException
Throws:
XMLStreamException

writeElementNoNamespace

public static void writeElementNoNamespace(QName qname,
                                           Object object,
                                           AnyElementMarshaler marshaler,
                                           XMLStreamWriter out)
                                    throws XMLStreamException
Throws:
XMLStreamException

writeElement

public static void writeElement(QName qname,
                                Object object,
                                AnyElementMarshaler marshaler,
                                XMLStreamWriter out)
                         throws XMLStreamException
Throws:
XMLStreamException

writeElement

public static void writeElement(QName qname,
                                Object object,
                                AnyElementMarshaler marshaler,
                                XMLStreamWriter out,
                                boolean repairingMode)
                         throws XMLStreamException
Throws:
XMLStreamException

writeStartElementNoNamespace

public static void writeStartElementNoNamespace(QName qname,
                                                XMLStreamWriter out)
                                         throws XMLStreamException
Throws:
XMLStreamException

writeStartElement

public static void writeStartElement(QName qname,
                                     XMLStreamWriter out,
                                     boolean repairingMode)
                              throws XMLStreamException
Throws:
XMLStreamException

writeAnyContent

public static void writeAnyContent(List list,
                                   AnyElementMarshaler marshaller,
                                   XMLStreamWriter out)
                            throws XMLStreamException
Writes the list of any objects to the stream. The list can be null to avoid firing lazy-construction logic

Throws:
XMLStreamException

readTextContent

public static String readTextContent(XMLStreamReader in)
                              throws XMLStreamException
Reads the content of the current element as a String, ignoring any embedded elements

Throws:
XMLStreamException


Copyright © 2004-2007 LogicBlaze, Inc.. All Rights Reserved.