Interface AWorkspaceRoot
-
- All Superinterfaces:
AAbstraction,AContainer,AResource,java.lang.Comparable<AResource>,java.lang.Iterable<AResource>
- All Known Implementing Classes:
EclipseWorkspaceRoot,PlainJavaWorkspaceRoot
public interface AWorkspaceRoot extends AContainer
The container representinga workspace'scontents.
-
-
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 AFilegetFileForLocation(java.nio.file.Path location)Returns the file with the given name in a project inside this workspace.AProjectgetProject(java.lang.String name)Returns the project with the given name in this workspace.java.util.Set<AProject>getProjects()Returns all projects in this workspace.-
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
-
getProjects
java.util.Set<AProject> getProjects()
Returns all projects in this workspace.
-
getProject
AProject getProject(java.lang.String name)
Returns the project with the given name in this workspace. It may notexist.- Parameters:
name- a project's name
-
getFileForLocation
@CheckForNull AFile getFileForLocation(java.nio.file.Path location)
Returns the file with the given name in a project inside this workspace.- Parameters:
location- a file location; should reference a resource in one of the projects of this workspace- Returns:
- the resource corresponding to the file, or
nullif no such file exists in this workspace
-
-