XMT-O Reference Software

xmtutil
Class DOMUtil

java.lang.Object
  |
  +--xmtutil.DOMUtil

public class DOMUtil
extends java.lang.Object

DOMParameter converts the parameter strings to java objects and back.

History:


Field Summary
private static boolean debug_
          Whether debug information is to be printed to the console.
 
Constructor Summary
DOMUtil()
           
 
Method Summary
static org.w3c.dom.Element getChildElementByTagName(org.w3c.dom.Element element, java.lang.String name)
           
static java.lang.String getDirectory(java.lang.String fileName)
          Return the path part of a filname path.
static void setDebug(boolean debug)
          Enable debugging information to be printed to the console.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

debug_

private static boolean debug_
Whether debug information is to be printed to the console. default is not have debug information printed (false).
Constructor Detail

DOMUtil

public DOMUtil()
Method Detail

getChildElementByTagName

public static org.w3c.dom.Element getChildElementByTagName(org.w3c.dom.Element element,
                                                           java.lang.String name)

getDirectory

public static java.lang.String getDirectory(java.lang.String fileName)
Return the path part of a filname path. If the filename ends with the separator character the same string is returned. Otherwise, the portion up to and including the last separator character is returned.

setDebug

public static void setDebug(boolean debug)
Enable debugging information to be printed to the console.
Parameters:
debug - sets debug information is printed

XMT-O Reference Software