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.ObjectNode located within the assembly.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,VirtualFileAssembly.AssemblyNode>childrenprivate java.lang.StringrealNameprivate VirtualFiletarget
-
Constructor Summary
Constructors Constructor Description AssemblyNode(java.lang.String realName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddChild(java.lang.String name, VirtualFileAssembly.AssemblyNode child)VirtualFileAssembly.AssemblyNodefind(java.lang.String path)Find an AssemblyNode staring with this node and return null if not found.VirtualFileAssembly.AssemblyNodefind(VirtualFileAssembly.Path path, boolean createIfMissing)Find an AssemblyNode starting with this node.VirtualFileAssembly.AssemblyNodefindOrBuild(java.lang.String path)Find an AssemblyNode starting with this node and build the required nodes if not found.private VirtualFileAssembly.AssemblyNodegetChild(java.lang.String name)VirtualFilegetFile(VirtualFileAssembly.Path path, VirtualFile assemblyMountPoint)Get the VirtualFile for a given path.private voidsetTarget(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)
-
-