public abstract class JavaResourceImpl extends Object implements IResource, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
JavaResourceImpl(IFileSystem fileSystem,
File file) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
create() |
boolean |
delete() |
boolean |
equals(Object obj) |
IFileSystem |
getFileSystem()
The file system supporting this resource
|
String |
getName()
Gets this file's or directory's name.
|
IDirectory |
getParent()
Gets this file's our directory's parent directory.
|
ResourcePath |
getPath() |
int |
hashCode() |
boolean |
isChildOf(IDirectory dir)
Indicates whether this resource is a direct child of the given directory.
|
boolean |
isDescendantOf(IDirectory dir)
Indicates whether this resource is a descendant of the given directory.
|
boolean |
isInJar() |
boolean |
isJavaFile() |
File |
toJavaFile() |
String |
toString() |
URI |
toURI() |
protected File _file
protected JavaResourceImpl(IFileSystem fileSystem, File file)
public IFileSystem getFileSystem()
IResourcegetFileSystem in interface IResourcepublic IDirectory getParent()
IResourcepublic String getName()
IResourcepublic boolean delete()
throws IOException
delete in interface IResourceIOExceptionpublic ResourcePath getPath()
public boolean isChildOf(IDirectory dir)
IResourcepublic boolean isDescendantOf(IDirectory dir)
IResourceisDescendantOf in interface IResourcedir - the directory which would be the ancestorpublic File toJavaFile()
toJavaFile in interface IResourcepublic boolean isJavaFile()
isJavaFile in interface IResourceCopyright © 2024. All rights reserved.