org.apache.catalina.util

Class ManifestResource


public class ManifestResource
extends java.lang.Object

Representation of a Manifest file and its available extensions and required extensions

Version:
$Revision: 1.5 $ $Date: 2004/02/27 14:58:50 $

Authors:
Greg Murray
Justyna Horwat

Field Summary

static int
APPLICATION
static int
SYSTEM
static int
WAR

Constructor Summary

ManifestResource(String resourceName, Manifest manifest, int resourceType)

Method Summary

boolean
containsExtension(String key)
Convienience method to check if this ManifestResource has an extension available.
int
getAvailableExtensionCount()
Gets the number of available extensions
HashMap
getAvailableExtensions()
Gets the map of available extensions
int
getRequiredExtensionCount()
Gets the number of required extensions
ArrayList
getRequiredExtensions()
Gets the list of required extensions
String
getResourceName()
Gets the name of the resource
boolean
isFulfilled()
Returns true if all required extension dependencies have been meet for this ManifestResource object.
boolean
requiresExtensions()
Convienience method to check if this ManifestResource has an requires extensions.
String
toString()

Field Details

APPLICATION

public static final int APPLICATION

Field Value:
3


SYSTEM

public static final int SYSTEM

Field Value:
1


WAR

public static final int WAR

Field Value:
2

Constructor Details

ManifestResource

public ManifestResource(String resourceName,
                        Manifest manifest,
                        int resourceType)

Method Details

containsExtension

public boolean containsExtension(String key)
Convienience method to check if this ManifestResource has an extension available.

Parameters:
key - extension identifier

Returns:
true if extension available


getAvailableExtensionCount

public int getAvailableExtensionCount()
Gets the number of available extensions

Returns:
The number of available extensions


getAvailableExtensions

public HashMap getAvailableExtensions()
Gets the map of available extensions

Returns:
Map of available extensions


getRequiredExtensionCount

public int getRequiredExtensionCount()
Gets the number of required extensions

Returns:
The number of required extensions


getRequiredExtensions

public ArrayList getRequiredExtensions()
Gets the list of required extensions

Returns:
List of required extensions


getResourceName

public String getResourceName()
Gets the name of the resource

Returns:
The name of the resource


isFulfilled

public boolean isFulfilled()
Returns true if all required extension dependencies have been meet for this ManifestResource object.

Returns:
boolean true if all extension dependencies have been satisfied


requiresExtensions

public boolean requiresExtensions()
Convienience method to check if this ManifestResource has an requires extensions.

Returns:
true if required extensions are present


toString

public String toString()


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.