Class PlainJavaWorkspaceRoot
- java.lang.Object
-
- org.faktorips.devtools.abstraction.AWrapper<java.io.File>
-
- org.faktorips.devtools.abstraction.plainjava.internal.PlainJavaResource
-
- org.faktorips.devtools.abstraction.plainjava.internal.PlainJavaContainer
-
- org.faktorips.devtools.abstraction.plainjava.internal.PlainJavaFolder
-
- org.faktorips.devtools.abstraction.plainjava.internal.PlainJavaWorkspaceRoot
-
- All Implemented Interfaces:
java.lang.Comparable<AResource>,java.lang.Iterable<AResource>,AAbstraction,AContainer,AFolder,AResource,AWorkspaceRoot
public class PlainJavaWorkspaceRoot extends PlainJavaFolder implements AWorkspaceRoot
-
-
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
-
-
Constructor Summary
Constructors Constructor Description PlainJavaWorkspaceRoot(PlainJavaWorkspace workspace)
-
Method Summary
All Methods Instance Methods Concrete 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.AResource.AResourceTypegetType()A resource type can be used instead of checking forinstanceofwith concrete implementations.PlainJavaWorkspacegetWorkspace()Returns the workspace containing this resource.voidremove(java.nio.file.Path path)-
Methods inherited from class org.faktorips.devtools.abstraction.plainjava.internal.PlainJavaFolder
create, getFile, getFolder
-
Methods inherited from class org.faktorips.devtools.abstraction.plainjava.internal.PlainJavaContainer
findMember, getFile, getFolder, getMembers, isSynchronizedInternal, recursive, refreshInternal
-
Methods inherited from class org.faktorips.devtools.abstraction.plainjava.internal.PlainJavaResource
copy, createMarker, delete, deleteMarker, deleteMarkers, exists, findMarkers, getLocalTimeStamp, getLocation, getModificationStamp, getName, getParent, getProject, getProjectRelativePath, getWorkspaceRelativePath, isAccessible, isDerived, isSynchronized, move, recursive, refreshLocal, setDerived, touch
-
Methods inherited from class org.faktorips.devtools.abstraction.AWrapper
equals, hashCode, toString, unwrap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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, getWorkspaceRelativePath, isAccessible, isDerived, isSynchronized, move, refreshLocal, setDerived, touch
-
-
-
-
Constructor Detail
-
PlainJavaWorkspaceRoot
public PlainJavaWorkspaceRoot(PlainJavaWorkspace workspace)
-
-
Method Detail
-
getWorkspace
public PlainJavaWorkspace getWorkspace()
Description copied from interface:AResourceReturns the workspace containing this resource.- Specified by:
getWorkspacein interfaceAResource- Overrides:
getWorkspacein classPlainJavaResource- Returns:
- the workspace containing this resource; the workspace itself if this resource is a
workspace.
-
getType
public AResource.AResourceType getType()
Description copied from interface:AResourceA resource type can be used instead of checking forinstanceofwith concrete implementations.- Specified by:
getTypein interfaceAResource- Overrides:
getTypein classPlainJavaFolder- Returns:
- the resource's
type
-
getProject
public AProject getProject(java.lang.String name)
Description copied from interface:AWorkspaceRootReturns the project with the given name in this workspace. It may notexist.- Specified by:
getProjectin interfaceAWorkspaceRoot- Parameters:
name- a project's name
-
getFileForLocation
public AFile getFileForLocation(java.nio.file.Path location)
Description copied from interface:AWorkspaceRootReturns the file with the given name in a project inside this workspace.- Specified by:
getFileForLocationin interfaceAWorkspaceRoot- 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
-
getProjects
public java.util.Set<AProject> getProjects()
Description copied from interface:AWorkspaceRootReturns all projects in this workspace.- Specified by:
getProjectsin interfaceAWorkspaceRoot
-
remove
public void remove(java.nio.file.Path path)
-
-