Package org.jboss.vfs
Class VirtualFileAssembly.AssemblyNode
- java.lang.Object
-
- org.jboss.vfs.VirtualFileAssembly.AssemblyNode
-
- Enclosing class:
- VirtualFileAssembly
private static class VirtualFileAssembly.AssemblyNode extends java.lang.Object
Node located within the assembly.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,VirtualFileAssembly.AssemblyNode>
children
private java.lang.String
realName
private VirtualFile
target
-
Constructor Summary
Constructors Constructor Description AssemblyNode(java.lang.String realName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addChild(java.lang.String name, VirtualFileAssembly.AssemblyNode child)
VirtualFileAssembly.AssemblyNode
find(java.lang.String path)
Find an AssemblyNode staring with this node and return null if not found.VirtualFileAssembly.AssemblyNode
find(VirtualFileAssembly.Path path, boolean createIfMissing)
Find an AssemblyNode starting with this node.VirtualFileAssembly.AssemblyNode
findOrBuild(java.lang.String path)
Find an AssemblyNode starting with this node and build the required nodes if not found.private VirtualFileAssembly.AssemblyNode
getChild(java.lang.String name)
VirtualFile
getFile(VirtualFileAssembly.Path path, VirtualFile assemblyMountPoint)
Get the VirtualFile for a given path.private void
setTarget(VirtualFile target)
-
-
-
Field Detail
-
children
private final java.util.Map<java.lang.String,VirtualFileAssembly.AssemblyNode> children
-
realName
private final java.lang.String realName
-
target
private VirtualFile target
-
-
Method Detail
-
find
public VirtualFileAssembly.AssemblyNode find(java.lang.String path)
Find an AssemblyNode staring with this node and return null if not found.- Parameters:
path
-- Returns:
-
findOrBuild
public VirtualFileAssembly.AssemblyNode findOrBuild(java.lang.String path)
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
public VirtualFile getFile(VirtualFileAssembly.Path path, VirtualFile assemblyMountPoint)
Get the VirtualFile for a given path. Will traverse VirtualFile links if not found in the assembly.- Parameters:
path
-- Returns:
- Throws:
java.io.IOException
-
addChild
private void addChild(java.lang.String name, VirtualFileAssembly.AssemblyNode child)
-
getChild
private VirtualFileAssembly.AssemblyNode getChild(java.lang.String name)
-
setTarget
private void setTarget(VirtualFile target)
-
-