|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Resource
The Resource interface describes infomation about a published resource.
| Field Summary | |
|---|---|
static String |
DECIMAL_VERSIONING_KEY
System property name used to declare the decimal versioning enabled flag. |
| Method Summary | |
|---|---|
Resource[] |
getAggregatedProviders(Scope scope,
boolean expand,
boolean sort)
Return an array of resource that are providers to this resource. |
Artifact |
getArtifact(String type)
Construct an artifact for the supplied type. |
File |
getBaseDir()
Return the basedir for this resource. |
ResourceDirective.Classifier |
getClassifier()
Return the resource classifier. |
Resource[] |
getClasspathProviders(Category category)
Return an array of runtime providers filtered relative to a supplied classloading category. |
Resource[] |
getClasspathProviders(Scope scope)
Return a sorted and filtered array of providers. |
Resource[] |
getConsumers(boolean expand,
boolean sort)
Return an array of resources that are consumers of this resource. |
Data[] |
getData()
Return the array of production data. |
Version |
getDecimalVersion()
Return the decimal version. |
Filter[] |
getFilters()
Return an array of filters associated with the resource. |
Info |
getInfo()
Return the info block. |
String |
getLayoutPath(String id)
Return a filename using the layout strategy employed by the cache. |
Library |
getLibrary()
Return the singleton library. |
Artifact |
getLinkArtifact(String type)
Construct an unversion link artifact for the supplied type. |
String |
getName()
Return the name of the resource. |
Module |
getParent()
Return the enclosing parent module. |
Resource[] |
getProviders(Scope scope,
boolean expand,
boolean sort)
Return an array of resource that are providers to this resource. |
String |
getResourcePath()
Return the fully qualified path to the resource. |
String |
getStatutoryVersion()
Return the statutory resource version. |
Type |
getType(String id)
Return a resource type relative to a supplied type id. |
Type[] |
getTypes()
Return the expanded array of types associated with the resource. |
String |
getVersion()
Return the resource version. |
boolean |
isa(String type)
Test if this resource is associated with a type of the supplied name. |
| Methods inherited from interface net.dpml.library.Dictionary |
|---|
getBooleanProperty, getIntegerProperty, getLocalPropertyNames, getProperty, getProperty, getPropertyNames, resolve |
| Methods inherited from interface net.dpml.util.Resolver |
|---|
getProperty, getProperty, resolve, toURI |
| Field Detail |
|---|
static final String DECIMAL_VERSIONING_KEY
| Method Detail |
|---|
Library getLibrary()
String getName()
String getVersion()
String getStatutoryVersion()
Version getDecimalVersion()
String getResourcePath()
File getBaseDir()
Info getInfo()
ResourceDirective.Classifier getClassifier()
Type[] getTypes()
boolean isa(String type)
type - the type id
Type getType(String id)
id - the type name to retrieve
Artifact getArtifact(String type)
type - the resource type id
Artifact getLinkArtifact(String type)
type - the resource type id
Module getParent()
Resource[] getProviders(Scope scope,
boolean expand,
boolean sort)
scope - the operational scopeexpand - if true include transitive dependenciessort - if true the array will sorted relative to dependencies
Resource[] getAggregatedProviders(Scope scope,
boolean expand,
boolean sort)
scope - the scope of aggregation to be applied to the selectionexpand - if TRUE include transitive dependenciessort - if true the array will sorted relative to dependencies
Resource[] getClasspathProviders(Scope scope)
scope - the aggregation scope
Resource[] getClasspathProviders(Category category)
category - the classloader category
Resource[] getConsumers(boolean expand,
boolean sort)
expand - if true the returned array includes consumers associated
through transitive dependency relationships, otherwise the array is
limited to direct consumerssort - if true the array is sorted relative to depenency relationships
Filter[] getFilters()
String getLayoutPath(String id)
id - the artifact type
Data[] getData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||