|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public static final String DECIMAL_VERSIONING_KEY
Method Detail |
public Library getLibrary()
public String getName()
public String getVersion()
public String getStatutoryVersion()
public Version getDecimalVersion()
public String getResourcePath()
public File getBaseDir()
public Info getInfo()
public ResourceDirective.Classifier getClassifier()
public Type[] getTypes()
public boolean isa(String type)
type
- the type id
public Type getType(String id)
id
- the type name to retrieve
public Artifact getArtifact(String type)
type
- the resource type id
public Artifact getLinkArtifact(String type)
type
- the resource type id
public Module getParent()
public 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
public 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
public Resource[] getClasspathProviders(Scope scope)
scope
- the aggregation scope
public Resource[] getClasspathProviders(Category category)
category
- the classloader category
public 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
public Filter[] getFilters()
public String getLayoutPath(String id)
id
- the artifact type
public Data[] getData()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |