Package org.jboss.vfs
Class VirtualFileAssembly.AssemblyNode
java.lang.Object
org.jboss.vfs.VirtualFileAssembly.AssemblyNode
- Enclosing class:
VirtualFileAssembly
Node located within the assembly.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<String, VirtualFileAssembly.AssemblyNode> private final String
private VirtualFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addChild
(String name, VirtualFileAssembly.AssemblyNode child) Find an AssemblyNode staring with this node and return null if not found.find
(VirtualFileAssembly.Path path, boolean createIfMissing) Find an AssemblyNode starting with this node.findOrBuild
(String path) Find an AssemblyNode starting with this node and build the required nodes if not found.private VirtualFileAssembly.AssemblyNode
getFile
(VirtualFileAssembly.Path path, VirtualFile assemblyMountPoint) Get the VirtualFile for a given path.private void
setTarget
(VirtualFile target)
-
Field Details
-
children
-
realName
-
target
-
-
Constructor Details
-
AssemblyNode
AssemblyNode(String realName)
-
-
Method Details
-
find
Find an AssemblyNode staring with this node and return null if not found.- Parameters:
path
-- Returns:
-
findOrBuild
Find an AssemblyNode starting with this node and build the required nodes if not found.- Parameters:
path
-- Returns:
-
find
public VirtualFileAssembly.AssemblyNode find(VirtualFileAssembly.Path path, boolean createIfMissing) Find an AssemblyNode starting with this node.- Parameters:
path
-createIfMissing
-- Returns:
-
getFile
Get the VirtualFile for a given path. Will traverse VirtualFile links if not found in the assembly.- Parameters:
path
-- Returns:
- Throws:
IOException
-
addChild
-
getChild
-
setTarget
-