|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.tools.model.Resource org.apache.avalon.tools.model.Definition
A definition is an immutable description of a project including its name, group, version, structrual dependencies, plugin dependecies, and gump idiosyncrasies.
Constructor Summary | |
Definition(Home home,
String key,
File basedir,
String path,
Info info,
Gump gump,
ResourceRef[] resources,
ResourceRef[] plugins)
Creation of a new definition relative to a supplied home, a unique project key, project base directory and path, statatory info, gump extras, depednecies and plugin assumptions. |
Method Summary | |
boolean |
equals(Object other)
Return TRUE is this defintionj is equal to a supplied defintion |
File |
getBaseDir()
Return the base directory as an absolute file |
String |
getBasePath()
Return the base directory relative to main index file that this defintion is established within. |
File |
getDocDirectory()
Return the filename of the documentation directory relative to the common magic dumumentation cache for this project. |
ResourceRef[] |
getPluginRefs()
Return the set of plugin references that this defintion declares |
String |
toString()
Return the string representation of this defintion. |
Methods inherited from class org.apache.avalon.tools.model.Resource |
getArtifact, getArtifact, getFilename, getFilename, getGump, getHome, getInfo, getKey, getKeyForResource, getPath, getQualifiedRefs, getResourceRefs, getResourceRefs, getResourceRefs |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Definition(Home home, String key, File basedir, String path, Info info, Gump gump, ResourceRef[] resources, ResourceRef[] plugins)
home
- the home into whjich this project is boundkey
- a key unique with the home that identifies this projectbasedir
- the base directory relative to the index file that this project is definedpath
- the basedir as a relative pathinfo
- a descriptor of the name, grolup, version and delivery statusgump
- addition gump idiosyncraciesresources
- the set of resource dependenciesplugins
- the set of plugin dependenciesMethod Detail |
public String getBasePath()
public File getBaseDir()
public ResourceRef[] getPluginRefs()
public File getDocDirectory()
public String toString()
toString
in class Resource
public boolean equals(Object other)
equals
in class Resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |