Package org.mycore.datamodel.ifs2
Class MCRVirtualNode
java.lang.Object
org.mycore.datamodel.ifs2.MCRNode
org.mycore.datamodel.ifs2.MCRVirtualNode
A virtual node in a file collection, which may be a child node of a container
file type like zip or tar. Such files can be browsed and read using this node
type.
- Author:
- Frank Lützenkirchen
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
MCRVirtualNode
(MCRNode parent, Path fo) Creates a new virtual node -
Method Summary
Modifier and TypeMethodDescriptionprotected MCRVirtualNode
buildChildNode
(Path fo) Returns a virtual node that is a child of this virtual node.Methods inherited from class org.mycore.datamodel.ifs2.MCRNode
getChild, getChildren, getContent, getLastModified, getName, getNodeByPath, getNumChildren, getParent, getPath, getRandomAccessContent, getRoot, getSize, hasChildren, isDirectory, isFile
-
Constructor Details
-
MCRVirtualNode
Creates a new virtual node- Parameters:
parent
- the parent node containing this nodefo
- the file object in Apache VFS representing this node
-
-
Method Details
-
buildChildNode
Returns a virtual node that is a child of this virtual node.- Specified by:
buildChildNode
in classMCRNode
- Parameters:
fo
- the FileObject representing the child in the underlying filesystem- Returns:
- the child node or null, if the fo does not exists
-