org.apache.env
Class WhichXmlCommons

java.lang.Object
  |
  +--org.apache.env.WhichXmlCommons
All Implemented Interfaces:
WhichProject

public class WhichXmlCommons
extends java.lang.Object
implements WhichProject

Get Version information about xml-commons code.

Version:
$Id: WhichXmlCommons.html,v 1.4 2003/12/30 03:55:19 crossley Exp $
Author:
shane_curcuru@us.ibm.com

Field Summary
static java.lang.String SERVICE_NAME
          Our project name.
 
Constructor Summary
WhichXmlCommons()
           
 
Method Summary
 int getDOMInfo(java.util.Hashtable hash, java.lang.String options)
          Gets DOM version info and looks for dom.jar.
 int getInfo(java.util.Hashtable hash, java.lang.String options)
          Gets information on external standards code in xml-commons project; finds the xml-commons version as well as the approximate versions of JAXP, DOM and SAX.
 int getJAXPInfo(java.util.Hashtable hash, java.lang.String options)
          Gets JAXP version info and looks for jaxp.jar.
 int getSAXInfo(java.util.Hashtable hash, java.lang.String options)
          Gets SAX version info and looks for sax.jar.
 int getXmlCommonsInfo(java.util.Hashtable hash, java.lang.String options)
          Calls xmlcommons.Version.getVersion and looks for xml-apis.jar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
Our project name.

See Also:
Constant Field Values
Constructor Detail

WhichXmlCommons

public WhichXmlCommons()
Method Detail

getInfo

public int getInfo(java.util.Hashtable hash,
                   java.lang.String options)
Gets information on external standards code in xml-commons project; finds the xml-commons version as well as the approximate versions of JAXP, DOM and SAX. Looks for the default xml-apis.jar with external standards code.

Specified by:
getInfo in interface WhichProject
Parameters:
hash - to put information in
options - to apply like strict or verbose
Returns:
status information from WhichConstant

getXmlCommonsInfo

public int getXmlCommonsInfo(java.util.Hashtable hash,
                             java.lang.String options)
Calls xmlcommons.Version.getVersion and looks for xml-apis.jar.

Parameters:
hash - to put information in
options - to apply like strict or verbose
Returns:
status information from WhichConstant

getJAXPInfo

public int getJAXPInfo(java.util.Hashtable hash,
                       java.lang.String options)
Gets JAXP version info and looks for jaxp.jar.

Parameters:
hash - to put information in
options - to apply like strict or verbose
Returns:
status information from WhichConstant

getSAXInfo

public int getSAXInfo(java.util.Hashtable hash,
                      java.lang.String options)
Gets SAX version info and looks for sax.jar.

Parameters:
hash - to put information in
options - to apply like strict or verbose
Returns:
status information from WhichConstant

getDOMInfo

public int getDOMInfo(java.util.Hashtable hash,
                      java.lang.String options)
Gets DOM version info and looks for dom.jar.

Parameters:
hash - to put information in
options - to apply like strict or verbose
Returns:
status information from WhichConstant


Copyright © 2001 Apache Software Foundation. All Rights Reserved.