org.apache.env

Class WhichXmlCommons

Implemented Interfaces:
WhichProject

public class WhichXmlCommons
extends java.lang.Object
implements WhichProject

Get Version information about xml-commons code.
Version:
$Id: WhichXmlCommons.java,v 1.1 2001/12/11 17:42:50 curcuru Exp $
Author:
shane_curcuru@us.ibm.com

Field Summary

static String
SERVICE_NAME
Our project name.

Method Summary

int
getDOMInfo(Hashtable hash, String options)
Gets DOM version info and looks for dom.jar.
int
getInfo(Hashtable hash, 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(Hashtable hash, String options)
Gets JAXP version info and looks for jaxp.jar.
int
getSAXInfo(Hashtable hash, String options)
Gets SAX version info and looks for sax.jar.
int
getXmlCommonsInfo(Hashtable hash, String options)
Calls xmlcommons.Version.getVersion and looks for xml-apis.jar.

Field Details

SERVICE_NAME

public static final String SERVICE_NAME
Our project name.

Method Details

getDOMInfo

public int getDOMInfo(Hashtable hash,
                      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

getInfo

public int getInfo(Hashtable hash,
                   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

getJAXPInfo

public int getJAXPInfo(Hashtable hash,
                       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(Hashtable hash,
                      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

getXmlCommonsInfo

public int getXmlCommonsInfo(Hashtable hash,
                             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

Copyright B) 2001 Apache. All Rights Reserved.