| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.dpml.library.impl.DefaultDictionary
net.dpml.library.impl.DefaultResource
net.dpml.library.impl.DefaultModule
A Module is a collection of resources. It serves to establish a namespace and a framework for sharing properties and characteristics defined within within the module with resources contained within the module.
| Field Summary | 
| Fields inherited from class net.dpml.library.impl.DefaultResource | 
ANONYMOUS, BOOTSTRAP, RELEASE, SNAPSHOT, TIMESTAMP | 
| Fields inherited from interface net.dpml.library.Resource | 
DECIMAL_VERSIONING_KEY | 
| Method Summary | |
 ModuleDirective | 
export()
Return a directive suitable for publication as an external description.  | 
 Module[] | 
getAllModules()
Return the array of modules that are descendants of this module.  | 
 Module | 
getModule(String ref)
Return a module using a supplied reference.  | 
 Module[] | 
getModules()
Return the array of modules that are direct children of this module.  | 
 Resource | 
getResource(String ref)
Return a resource using a supplied name.  | 
 Resource[] | 
getResources()
Return an array of immediate resources contained within the module.  | 
 Resource | 
locate(File base)
Locate a resource relative to a base directory.  | 
 Resource[] | 
select(String criteria,
             boolean local,
             boolean sort)
Select a set of resource matching a supplied a resource selection constraint.  | 
 String | 
toString()
Return the string representation of the module.  | 
| Methods inherited from class net.dpml.library.impl.DefaultResource | 
compareTo, getAggregatedProviders, getArtifact, getBaseDir, getClassifier, getClasspathProviders, getClasspathProviders, getConsumers, getData, getDecimalVersion, getFilters, getInfo, getLayoutPath, getLibrary, getLinkArtifact, getName, getParent, getProviders, getResourceDirective, getResourcePath, getStatutoryVersion, getTimestamp, getTimestamp, getType, getTypes, getVersion, isa, toURI | 
| Methods inherited from class net.dpml.library.impl.DefaultDictionary | 
getBooleanProperty, getIntegerProperty, getLocalPropertyNames, getProperty, getProperty, getPropertyNames, resolve | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface net.dpml.library.Resource | 
getAggregatedProviders, getArtifact, getBaseDir, getClassifier, getClasspathProviders, getClasspathProviders, getConsumers, getData, getDecimalVersion, getFilters, getInfo, getLayoutPath, getLibrary, getLinkArtifact, getName, getParent, getProviders, getResourcePath, getStatutoryVersion, getType, getTypes, getVersion, isa | 
| 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 | 
| Method Detail | 
public Resource[] getResources()
getResources in interface Module
public Resource getResource(String ref)
                     throws ResourceNotFoundException
getResource in interface Moduleref - a path relative to the module
ResourceNotFoundException - if the resource does not existpublic Module[] getModules()
getModules in interface Module
public Module getModule(String ref)
                 throws ModuleNotFoundException
getModule in interface Moduleref - a path relative to the module
ModuleNotFoundException - if the module does not existpublic Module[] getAllModules()
getAllModules in interface Module
public Resource[] select(String criteria,
                         boolean local,
                         boolean sort)
Select a set of resource matching a supplied a resource selection constraint. The constraint may contain the wildcards '**' and '*'.
select in interface Modulecriteria - the selection criterialocal - if true limit the selection to local projectssort - if true the returned array will be sorted relative to dependencies
   otherwise the array will be sorted alphanumerically
public Resource locate(File base)
                throws ResourceNotFoundException
base - the base directory
ResourceNotFoundException - if resource match  relative to the supplied basepublic ModuleDirective export()
export in interface Modulepublic String toString()
toString in class DefaultResource
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||