Class EclipseFolder
- java.lang.Object
-
- org.faktorips.devtools.abstraction.AWrapper<org.eclipse.core.resources.IResource>
-
- org.faktorips.devtools.abstraction.eclipse.internal.EclipseResource
-
- org.faktorips.devtools.abstraction.eclipse.internal.EclipseContainer
-
- org.faktorips.devtools.abstraction.eclipse.internal.EclipseFolder
-
- All Implemented Interfaces:
java.lang.Comparable<AResource>,java.lang.Iterable<AResource>,org.eclipse.core.runtime.IAdaptable,AAbstraction,AContainer,AFolder,AResource
public class EclipseFolder extends EclipseContainer implements AFolder
-
-
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 Concrete 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.org.eclipse.core.resources.IFolderunwrap()Returns the platform-specific object corresponding to this abstraction.-
Methods inherited from class org.faktorips.devtools.abstraction.eclipse.internal.EclipseContainer
findMember, getFile, getFolder, getMembers
-
Methods inherited from class org.faktorips.devtools.abstraction.eclipse.internal.EclipseResource
copy, createMarker, delete, deleteMarkers, exists, findMarkers, getAdapter, getLocalTimeStamp, getLocation, getModificationStamp, getName, getParent, getProject, getProjectRelativePath, getType, getWorkspace, getWorkspaceRelativePath, isAccessible, isDerived, isSynchronized, move, refreshLocal, setDerived, touch
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
-
unwrap
public org.eclipse.core.resources.IFolder unwrap()
Description copied from interface:AAbstractionReturns the platform-specific object corresponding to this abstraction. The generic type parameter is used to avoid casts when assigning to platform-specific objects. It is the obligation of the caller to make sure the right type is used, otherwise aClassCastExceptionwill be thrown.Sample usage:
interface ACalendar extends AAbstraction[...] class LocalDateAsCalendarWrapper extends AWrapper<LocalDate>[...] [...] ACalendar calendar = Wrappers.of(LocalDate.now()).as(ACalendar.class); [...] LocalDate date = calendar.unwrap();- Specified by:
unwrapin interfaceAAbstraction- Overrides:
unwrapin classEclipseContainer- See Also:
Wrappers#unwrap(AAbstraction) for a way to unwrap potentially null abstractions.
-
getFile
public AFile getFile(java.lang.String name)
Description copied from interface:AFolderReturns the file with the given name contained in this folder.Note that that file does not necessarily
exist.
-
getFolder
public AFolder getFolder(java.lang.String name)
Description copied from interface:AFolderReturns the folder with the given name contained in this folder.Note that that folder does not necessarily
exist.
-
create
public void create(org.eclipse.core.runtime.IProgressMonitor monitor)
Description copied from interface:AFolderCreates this folder in the file-system.
-
-