spase.parser120
Class Util

java.lang.Object
  extended by spase.parser120.Util

public class Util
extends java.lang.Object

A container of utility methods for SPASE description.

Since:
1.0

Constructor Summary
Util()
           
 
Method Summary
static void dumpList(java.lang.String label, java.util.ArrayList<java.lang.String> list)
          Print a list of values.
static java.lang.String getNodeText(org.w3c.dom.Node node)
          Concatenate all the text under a node.
static boolean isMatch(java.lang.String src, java.lang.String comp)
          Determines if two strings match, ignoring case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

isMatch

public static boolean isMatch(java.lang.String src,
                              java.lang.String comp)
Determines if two strings match, ignoring case.

Parameters:
src - the source string.
comp - the string to compare to the source string
Since:
1.0

getNodeText

public static java.lang.String getNodeText(org.w3c.dom.Node node)
Concatenate all the text under a node.

Parameters:
node - the Node.
Since:
1.0

dumpList

public static void dumpList(java.lang.String label,
                            java.util.ArrayList<java.lang.String> list)
Print a list of values.

Parameters:
node - the Node.
Since:
1.0