net.sf.nxqd.common
Class NxqdUtils

java.lang.Object
  extended by net.sf.nxqd.common.NxqdUtils

public abstract class NxqdUtils
extends Object

The class Utils is n abstract class to centralise common uility methods for use by all the classes.

Version:
1.0
Author:
webhiker

Constructor Summary
NxqdUtils()
           
 
Method Summary
static Document docFromString(String documentAsString)
          The docFromString method converts a java.lang.String object into a org.w3c.dom.Document.
static String docToString(Document document)
          The docToString method converts a Document object into a java.lang.String.
static String docToString(Node node)
          The docToString method converts a Document object into a java.lang.String.
static String generateUniqueId()
           
static List getKeysAsList(Map map)
           
static List getValuesAsList(Map map)
           
static List gsoapResultObjectToList(Object result)
          The gsoapResultObjectToList method converts the strange gsoap behaviour into something more consistent, as gsoap returns sometimes null, a string or a List, dpending on the number of results.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NxqdUtils

public NxqdUtils()
Method Detail

docToString

public static final String docToString(Node node)
                                throws NxqdException
The docToString method converts a Document object into a java.lang.String.

Parameters:
document - a org.w3c.dom.Document value
Returns:
a String value
Throws:
NxqdException - if an error occurs

docToString

public static final String docToString(Document document)
                                throws NxqdException
The docToString method converts a Document object into a java.lang.String.

Parameters:
document - a org.w3c.dom.Document value
Returns:
a String value
Throws:
NxqdException - if an error occurs

docFromString

public static final Document docFromString(String documentAsString)
                                    throws NxqdException
The docFromString method converts a java.lang.String object into a org.w3c.dom.Document.

Parameters:
documentAsString - a String value
Returns:
a Document value
Throws:
NxqdException - if an error occurs

gsoapResultObjectToList

public static List gsoapResultObjectToList(Object result)
The gsoapResultObjectToList method converts the strange gsoap behaviour into something more consistent, as gsoap returns sometimes null, a string or a List, dpending on the number of results.

Parameters:
result - an Object value
Returns:
a List value

generateUniqueId

public static String generateUniqueId()

getKeysAsList

public static List getKeysAsList(Map map)

getValuesAsList

public static List getValuesAsList(Map map)


Copyright © 2005-2006 nxqd. All Rights Reserved.