org.apache.ws.util.helper
Class Saaj2StringConverter

java.lang.Object
  extended byorg.apache.ws.util.helper.Saaj2StringConverter

public class Saaj2StringConverter
extends java.lang.Object

LOG-DONE

Author:
Ian P. Springer (Hewlett-Packard Company)

Field Summary
static org.apache.ws.util.i18n.Messages MSG
          DOCUMENT_ME
 
Constructor Summary
Saaj2StringConverter()
           
 
Method Summary
static java.util.List getChildNodes(javax.xml.soap.SOAPElement soap_elem)
          Given a SOAPElement, returns a list containing the children of that element.
static java.lang.String getDeclaredPrefix(javax.xml.soap.SOAPElement soap_elem, java.lang.String ns_uri)
           
 java.lang.String getIndentString()
          Gets the indent string.
static java.lang.String getValue(javax.xml.soap.Text soap_text)
          DOCUMENT_ME
static boolean hasNonEmptyValue(java.lang.String str)
          Returns true if the specified string is non-null and does not equal ""; otherwise returns false.
static boolean isSOAPElement(javax.xml.soap.Node soap_node)
          Returns true if the specified SAAJ node is an element, or false otherwise.
 void setIndentString(java.lang.String indent_str)
          Sets the indent string.
 java.lang.String toString(javax.xml.soap.Node soap_node)
          Returns a string representation of the specified Node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG

public static final org.apache.ws.util.i18n.Messages MSG
DOCUMENT_ME

Constructor Detail

Saaj2StringConverter

public Saaj2StringConverter()
Method Detail

getChildNodes

public static java.util.List getChildNodes(javax.xml.soap.SOAPElement soap_elem)
Given a SOAPElement, returns a list containing the children of that element. If at least one of the children is a SOAPElement, any Text nodes are excluded from the list. This is because it is assumed that if the specified element has mixed content, it is only because of insignificant whitespace text nodes.

Parameters:
soap_elem - a SAAJ SOAPElement
Returns:
a list containing the children of the specified SOAPElement

getDeclaredPrefix

public static java.lang.String getDeclaredPrefix(javax.xml.soap.SOAPElement soap_elem,
                                                 java.lang.String ns_uri)
Parameters:
soap_elem -
ns_uri -
Returns:

setIndentString

public void setIndentString(java.lang.String indent_str)
Sets the indent string.

Parameters:
indent_str - the indent string to use; if null, indenting will be disabled

getIndentString

public java.lang.String getIndentString()
Gets the indent string.

Returns:
the indent string being used; if null, indenting is disabled

isSOAPElement

public static boolean isSOAPElement(javax.xml.soap.Node soap_node)
Returns true if the specified SAAJ node is an element, or false otherwise.

Parameters:
soap_node - a SAAJ node
Returns:
true if the specified SAAJ node is an element, or false otherwise

getValue

public static java.lang.String getValue(javax.xml.soap.Text soap_text)
                                 throws javax.xml.soap.SOAPException
DOCUMENT_ME

Parameters:
soap_text - DOCUMENT_ME
Returns:
DOCUMENT_ME
Throws:
javax.xml.soap.SOAPException - DOCUMENT_ME

hasNonEmptyValue

public static boolean hasNonEmptyValue(java.lang.String str)
Returns true if the specified string is non-null and does not equal ""; otherwise returns false.

Parameters:
str - a string
Returns:
true if the specified string is non-null and does not equal ""; otherwise false

toString

public java.lang.String toString(javax.xml.soap.Node soap_node)
                          throws javax.xml.soap.SOAPException
Returns a string representation of the specified Node.

Parameters:
soap_node - a SAAJ SOAP node
Returns:
a string represntation of the SOAP node
Throws:
javax.xml.soap.SOAPException


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.