extensions.gem
Class parseXMLBean

java.lang.Object
  |
  +--extensions.gem.parseXMLBean

public class parseXMLBean
extends java.lang.Object

Program Name: parseXMLBean.java Comments: Several convenience methods for manipulating the ApplDesc.xml file This Bean may be converted into a webflow module later. Note the package name. XSIL looks for extensions in a directory called "extensions" in the classpath. In the ApplDesc.xml file, we have the line so we must put parseXMLDesc.class in the extensions/gem/ directory somewhere in the classpath (such as WEB-INF/classes).


Constructor Summary
parseXMLBean()
           
 
Method Summary
 java.util.Vector getApplications()
          This method should return the names of all of the applications.
 java.util.Hashtable getCodeTagList(java.lang.String appIdVal)
          This method returns a hash table of all the top level tags for a particular application and their values.
 java.lang.String getCodeTagValue(java.lang.String appIdVal, java.lang.String paramName)
          This method returns the string value assocatied with a particular tag name for a code.
 java.util.Hashtable getEnvironHash(java.lang.String appId, java.lang.String machineId)
           
 java.util.Vector getHostListNames(java.lang.String appIdVal)
          This method returns the availabe hosts for a particular application.
 java.util.Hashtable getMachineTagList(java.lang.String appIdVal, java.lang.String machineIdVal)
          This method returns a vector of all the top level tags for a particular machine and application.
 java.lang.String getMachineTagValue(java.lang.String appIdVal, java.lang.String machineIdVal, java.lang.String paramName)
          This method returns the string value for the particular named parameter for a code on a particular host machine.
static void init(java.lang.String xmlFileName)
           
 void test()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

parseXMLBean

public parseXMLBean()
Method Detail

init

public static void init(java.lang.String xmlFileName)

getApplications

public java.util.Vector getApplications()
This method should return the names of all of the applications.

getHostListNames

public java.util.Vector getHostListNames(java.lang.String appIdVal)
This method returns the availabe hosts for a particular application. application. Must provide application id.

getCodeTagList

public java.util.Hashtable getCodeTagList(java.lang.String appIdVal)
This method returns a hash table of all the top level tags for a particular application and their values.
Parameters:
appIdVal - the name of the application
Returns:
Hashtable a hashtable of params and values.

getCodeTagValue

public java.lang.String getCodeTagValue(java.lang.String appIdVal,
                                        java.lang.String paramName)
This method returns the string value assocatied with a particular tag name for a code.
Parameters:
appIdVal - the name of the application
paramName - the name of the parameter
Returns:
String the value of the specified parameter

getMachineTagList

public java.util.Hashtable getMachineTagList(java.lang.String appIdVal,
                                             java.lang.String machineIdVal)
This method returns a vector of all the top level tags for a particular machine and application.
Parameters:
appIdVal - the name of the application
machineIdVal - the name of the host machine
Returns:
Hashtable a hash of the params and their values.

getMachineTagValue

public java.lang.String getMachineTagValue(java.lang.String appIdVal,
                                           java.lang.String machineIdVal,
                                           java.lang.String paramName)
This method returns the string value for the particular named parameter for a code on a particular host machine. a particular machine and application.
Parameters:
appIdVal - the name of the application
machineIdVal - the name of the host machine
paramName - the name of the parameter we want evaluated
Returns:
Vector a vector of string names.

getEnvironHash

public java.util.Hashtable getEnvironHash(java.lang.String appId,
                                          java.lang.String machineId)

test

public void test()