org.apache.env

Class WhichConstant


public abstract class WhichConstant
extends java.lang.Object

Simple static constants used throughout org.apache.env package.
Version:
$Id: WhichConstant.java 225939 2001-12-11 17:42:50Z curcuru $
Author:
shane_curcuru@us.ibm.com

Field Summary

static String[]
ITEM_DESC
Descriptive strings for ITEM_ constants; keep in sync.
static int
ITEM_ERROR
Item is Definite problem.
static int
ITEM_NOTFOUND
Item is Item was not found, but might be ok.
static int
ITEM_OK
Item is Version appears to be OK.
static int
ITEM_SHIPPED
Item is Provably a shipped version.
static int
ITEM_UNKNOWN
Item is Unknown, or don't care.
static int
ITEM_WARNING
Item is Possible problem.
static String
OPTION_STRICT
Strict option asks Whichers to return an error if required classes, etc.
static String
OPTION_VERBOSE
Verbose option asks Whichers to return extra info.
static String
TAG_ERROR
Tag denoting a generic error occoured.
static String
TAG_HASHINFO
Tag denoting a subhash of information is here.
static String
TAG_PATH
Tag denoting the path to a file (.jar, etc.).
static String
TAG_STATUS
Tag denoting the status of a WhichProject hash.
static String
TAG_VERSION
Tag denoting version info follows.

Method Summary

static boolean
isStrict(String options)
Check if options include strict.
static boolean
isVerbose(String options)
Check if options include verbose.

Field Details

ITEM_DESC

public static final String[] ITEM_DESC
Descriptive strings for ITEM_ constants; keep in sync.

ITEM_ERROR

public static final int ITEM_ERROR
Item is Definite problem.
Field Value:
5

ITEM_NOTFOUND

public static final int ITEM_NOTFOUND
Item is Item was not found, but might be ok.
Field Value:
3

ITEM_OK

public static final int ITEM_OK
Item is Version appears to be OK.
Field Value:
2

ITEM_SHIPPED

public static final int ITEM_SHIPPED
Item is Provably a shipped version.
Field Value:
1

ITEM_UNKNOWN

public static final int ITEM_UNKNOWN
Item is Unknown, or don't care.
Field Value:
0

ITEM_WARNING

public static final int ITEM_WARNING
Item is Possible problem.
Field Value:
4

OPTION_STRICT

public static final String OPTION_STRICT
Strict option asks Whichers to return an error if required classes, etc. are not found.

OPTION_VERBOSE

public static final String OPTION_VERBOSE
Verbose option asks Whichers to return extra info.

TAG_ERROR

public static final String TAG_ERROR
Tag denoting a generic error occoured.

TAG_HASHINFO

public static final String TAG_HASHINFO
Tag denoting a subhash of information is here.

TAG_PATH

public static final String TAG_PATH
Tag denoting the path to a file (.jar, etc.).

TAG_STATUS

public static final String TAG_STATUS
Tag denoting the status of a WhichProject hash.

TAG_VERSION

public static final String TAG_VERSION
Tag denoting version info follows.

Method Details

isStrict

public static boolean isStrict(String options)
Check if options include strict.
Parameters:
options - from your method
Returns:
true if OPTION_STRICT is present

isVerbose

public static boolean isVerbose(String options)
Check if options include verbose.
Parameters:
options - from your method
Returns:
true if OPTION_VERBOSE is present

Copyright B) 2001 Apache Software Foundation. All Rights Reserved.