Interface AFolder
-
- All Superinterfaces:
AAbstraction,AContainer,AResource,java.lang.Comparable<AResource>,java.lang.Iterable<AResource>
- All Known Implementing Classes:
EclipseFolder,PlainJavaFolder,PlainJavaProject,PlainJavaWorkspaceRoot
public interface AFolder extends AContainer
A folder is a file-system resource that contains files and/or other folders.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.faktorips.devtools.abstraction.AResource
AResource.AResourceTreeTraversalDepth, AResource.AResourceType
-
-
Field Summary
-
Fields inherited from interface org.faktorips.devtools.abstraction.AResource
COMPARING_BY_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreate(org.eclipse.core.runtime.IProgressMonitor monitor)Creates this folder in the file-system.AFilegetFile(java.lang.String name)Returns the file with the given name contained in this folder.AFoldergetFolder(java.lang.String name)Returns the folder with the given name contained in this folder.-
Methods inherited from interface org.faktorips.devtools.abstraction.AAbstraction
unwrap
-
Methods inherited from interface org.faktorips.devtools.abstraction.AContainer
findMember, getFile, getFolder, getMembers, iterator
-
Methods inherited from interface org.faktorips.devtools.abstraction.AResource
compareTo, copy, createMarker, delete, deleteMarkers, exists, findMarkers, getLocalTimeStamp, getLocation, getModificationStamp, getName, getParent, getProject, getProjectRelativePath, getType, getWorkspace, getWorkspaceRelativePath, isAccessible, isDerived, isSynchronized, move, refreshLocal, setDerived, touch
-
-
-
-
Method Detail
-
getFile
AFile getFile(java.lang.String name)
Returns the file with the given name contained in this folder.Note that that file does not necessarily
exist.- Parameters:
name- the file's name- Returns:
- the file with the given name
-
getFolder
AFolder getFolder(java.lang.String name)
Returns the folder with the given name contained in this folder.Note that that folder does not necessarily
exist.- Parameters:
name- the folder name- Returns:
- the folder with the given name
-
create
void create(org.eclipse.core.runtime.IProgressMonitor monitor)
Creates this folder in the file-system.- Parameters:
monitor- a progress monitor that is notified about this process. The monitor may benullwhen progress does not need to be reported.- Throws:
IpsException- if the folder already exists or creation fails
-
-