public class ManifestResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
APPLICATION |
static int |
SYSTEM |
static int |
WAR |
Constructor and Description |
---|
ManifestResource(java.lang.String resourceName,
java.util.jar.Manifest manifest,
int resourceType) |
Modifier and Type | Method and Description |
---|---|
int |
getAvailableExtensionCount()
Gets the number of available extensions
|
java.util.ArrayList<Extension> |
getAvailableExtensions()
Gets the list of available extensions
|
int |
getRequiredExtensionCount()
Gets the number of required extensions
|
java.util.ArrayList<Extension> |
getRequiredExtensions()
Gets the list of required extensions
|
java.lang.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()
Convenience method to check if this
ManifestResource
has an requires extensions. |
java.lang.String |
toString() |
public static final int SYSTEM
public static final int WAR
public static final int APPLICATION
public ManifestResource(java.lang.String resourceName, java.util.jar.Manifest manifest, int resourceType)
public java.lang.String getResourceName()
public java.util.ArrayList<Extension> getAvailableExtensions()
public java.util.ArrayList<Extension> getRequiredExtensions()
public int getAvailableExtensionCount()
public int getRequiredExtensionCount()
public boolean requiresExtensions()
ManifestResource
has an requires extensions.public boolean isFulfilled()
true
if all required extension dependencies
have been meet for this ManifestResource
object.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.