|
Forge - Resource Addon API 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DirectoryResource
A standard, build-in, resource for representing directories on the file-system.
| Method Summary | ||
|---|---|---|
DirectoryResource |
getChildDirectory(String name)
Obtain a reference to the child DirectoryResource. |
|
|
getChildOfType(Class<T> type,
String name)
Using the given type, obtain a reference to the child resource of the given type. |
|
DirectoryResource |
getOrCreateChildDirectory(String name)
Obtain a reference to the child DirectoryResource. |
|
| Methods inherited from interface org.jboss.forge.resource.FileResource |
|---|
createNewFile, createTempResource, deleteOnExit, getSize, isDirectory, isExecutable, isReadable, isStale, isWritable, markUpToDate, mkdir, mkdirs, renameTo, renameTo, setContents, setContents, setContents |
| Methods inherited from interface org.jboss.forge.resource.Resource |
|---|
createFrom, delete, delete, exists, getChild, getFullyQualifiedName, getName, getParent, getResourceFactory, getResourceInputStream, getUnderlyingResourceObject, listResources, listResources, reify |
| Methods inherited from interface org.jboss.forge.facets.Faceted |
|---|
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, install, supports, uninstall |
| Method Detail |
|---|
DirectoryResource getChildDirectory(String name)
throws ResourceException
DirectoryResource. If that resource does not exist, return a new instance.
If the resource exists and is not a DirectoryResource, throw ResourceException
ResourceExceptionDirectoryResource getOrCreateChildDirectory(String name)
DirectoryResource. If that resource does not exist, return a new instance
and attempt to create the a directory of the given name. If the resource exists and is not a
DirectoryResource, throw ResourceException
<E,T extends Resource<E>> T getChildOfType(Class<T> type,
String name)
throws ResourceException
ResourceException
ResourceException
|
Forge - Resource Addon API 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||