Interface AContainer
-
- All Superinterfaces:
AAbstraction,AResource,java.lang.Comparable<AResource>,java.lang.Iterable<AResource>
- All Known Subinterfaces:
AFolder,AProject,AWorkspaceRoot
- All Known Implementing Classes:
EclipseContainer,EclipseFolder,EclipseProject,EclipseWorkspaceRoot,PlainJavaContainer,PlainJavaFolder,PlainJavaProject,PlainJavaWorkspaceRoot
public interface AContainer extends AResource, java.lang.Iterable<AResource>
A container is a resource containing other resources, itsmembers.
-
-
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 Default Methods Modifier and Type Method Description AResourcefindMember(java.lang.String path)Returns the member of this container (or one of its members) denoted by the given path (interpreted as relative to this resource), if it exists.AFilegetFile(java.nio.file.Path path)Returns the file that is a member of this container (or one of its members) denoted by the given path (interpreted as relative to this resource).AFoldergetFolder(java.nio.file.Path path)Returns the folder that is a member of this container (or one of its members) denoted by the given path (interpreted as relative to this resource).java.util.SortedSet<? extends AResource>getMembers()Returns this container's members, sorted by their name.default java.util.Iterator<AResource>iterator()-
Methods inherited from interface org.faktorips.devtools.abstraction.AAbstraction
unwrap
-
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
-
getMembers
java.util.SortedSet<? extends AResource> getMembers()
Returns this container's members, sorted by their name.- Returns:
- this container's members
-
findMember
@CheckForNull AResource findMember(java.lang.String path)
Returns the member of this container (or one of its members) denoted by the given path (interpreted as relative to this resource), if it exists.- Parameters:
path- a path, relative to this container- Returns:
- the member identified by the path or
nullif no such member exists
-
getFile
AFile getFile(java.nio.file.Path path)
Returns the file that is a member of this container (or one of its members) denoted by the given path (interpreted as relative to this resource). It may notexist.- Parameters:
path- a path, relative to this container- Returns:
- the file identified by the path
-
getFolder
AFolder getFolder(java.nio.file.Path path)
Returns the folder that is a member of this container (or one of its members) denoted by the given path (interpreted as relative to this resource). It may notexist.- Parameters:
path- a path, relative to this container- Returns:
- the folder identified by the path
-
-