Package org.qdl_lang.vfs
Class VFSMemoryDirectoryEntry
- java.lang.Object
- 
- java.util.AbstractMap<K,V>
- 
- java.util.HashMap<String,VFSMetaEntry>
- 
- org.qdl_lang.vfs.VFSMemoryDirectoryEntry
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable,- Map<String,VFSMetaEntry>,- VFSMetaEntry
 
 public class VFSMemoryDirectoryEntry extends HashMap<String,VFSMetaEntry> implements VFSMetaEntry - See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
 
- 
 - 
Constructor SummaryConstructors Constructor Description VFSMemoryDirectoryEntry()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description VFSMetaEntrygetEntry(String relativePath)Takes a relative path, e.g.StringgetName()booleanisDirectory()booleanisDirectory(String relativePath)voidmkdirs(String relativePath)VFSMetaEntryputEntry(String relativePath, VFSMetaEntry value)voidrm(String relativePath)Removes the file from the storevoidrmDirectory(String relativePath)Contract is if the relative path has multiple components, remove the last one.voidsetName(String name)- 
Methods inherited from class java.util.HashMapclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
 - 
Methods inherited from class java.util.AbstractMapequals, hashCode, toString
 
- 
 
- 
- 
- 
Method Detail- 
isDirectorypublic boolean isDirectory() - Specified by:
- isDirectoryin interface- VFSMetaEntry
 
 - 
getNamepublic String getName() 
 - 
setNamepublic void setName(String name) 
 - 
getEntrypublic VFSMetaEntry getEntry(String relativePath) Takes a relative path, e.g. a/b/c/foo.txt and returns the entry or if the entry is a directory, returns that.- Parameters:
- relativePath-
- Returns:
 
 - 
putEntrypublic VFSMetaEntry putEntry(String relativePath, VFSMetaEntry value) 
 - 
mkdirspublic void mkdirs(String relativePath) 
 - 
isDirectorypublic boolean isDirectory(String relativePath) 
 - 
rmpublic void rm(String relativePath) Removes the file from the store- Parameters:
- relativePath-
 
 - 
rmDirectorypublic void rmDirectory(String relativePath) Contract is if the relative path has multiple components, remove the last one.- Parameters:
- relativePath-
 
 
- 
 
-