public class FakeVirtualFile extends StubVirtualFile
VirtualFile.PropName
EMPTY_ARRAY, PROP_ENCODING, PROP_HIDDEN, PROP_NAME, PROP_SYMLINK_TARGET, PROP_WRITABLE
EVER_CHANGED, NEVER_CHANGED
Constructor and Description |
---|
FakeVirtualFile(VirtualFile parent,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the name of this file.
|
VirtualFile |
getParent()
Gets the parent
VirtualFile . |
java.lang.String |
getPath()
Gets the path of this file.
|
boolean |
isDirectory()
Checks whether this file is a directory.
|
java.lang.String |
toString() |
clearUserData, contentsToByteArray, copy, createChildData, createChildDirectory, delete, getChildren, getFileSystem, getInputStream, getLength, getOutputStream, getTimeStamp, getUrl, isValid, isWritable, move, putCopyableUserData, putUserData, putUserDataIfAbsent, refresh, refresh, replace, setBinaryContent, setBinaryContent, setBOM, setCharset, setCharset, setCharset, setDetectedLineSeparator, setPreloadedContentHint, setUserMap, setWritable, storeCharset
contentsToByteArray, exists, findChild, findFileByRelativePath, findOrCreateChildData, getBOM, getCanonicalFile, getCanonicalPath, getCharset, getDetectedLineSeparator, getExtension, getFileType, getModificationCount, getModificationStamp, getNameSequence, getNameWithoutExtension, getOutputStream, getPresentableName, getPresentableUrl, is, isCharsetSet, isInLocalFileSystem, isRecursiveOrCircularSymLink, isValidName, nameEquals, rename, setBinaryContent
changeUserMap, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty
public FakeVirtualFile(VirtualFile parent, java.lang.String name)
public VirtualFile getParent()
VirtualFile
VirtualFile
.getParent
in class StubVirtualFile
null
if this file is a root directorypublic boolean isDirectory()
VirtualFile
isDirectory
in class StubVirtualFile
true
if this file is a directory, false
otherwisepublic java.lang.String getPath()
VirtualFile
VirtualFileSystem
. Format of the path depends on the concrete file system.
For LocalFileSystem
it is an absolute file path with file separator characters
(File.separatorChar
) replaced to the forward slash ('/'
).getPath
in class StubVirtualFile
public java.lang.String getName()
VirtualFile
getName
in class StubVirtualFile
VirtualFile.getNameSequence()
public java.lang.String toString()
toString
in class VirtualFile