001    /*
002     * $Revision: 14844 $ 
003     * $Date: 2009-03-10 12:17:43 +0100 (Tue, 10 Mar 2009) $
004     *
005     * This file is part of ***  M y C o R e  ***
006     * See http://www.mycore.de/ for details.
007     *
008     * This program is free software; you can use it, redistribute it
009     * and / or modify it under the terms of the GNU General Public License
010     * (GPL) as published by the Free Software Foundation; either version 2
011     * of the License or (at your option) any later version.
012     *
013     * This program is distributed in the hope that it will be useful, but
014     * WITHOUT ANY WARRANTY; without even the implied warranty of
015     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
016     * GNU General Public License for more details.
017     *
018     * You should have received a copy of the GNU General Public License
019     * along with this program, in a file called gpl.txt or license.txt.
020     * If not, write to the Free Software Foundation Inc.,
021     * 59 Temple Place - Suite 330, Boston, MA  02111-1307 USA
022     */
023    
024    package org.mycore.datamodel.ifs2;
025    
026    import org.apache.commons.vfs.FileObject;
027    
028    /**
029     * A virtual node in a file collection, which may be a child node of a container
030     * file type like zip or tar. Such files can be browsed and read using this node
031     * type.
032     * 
033     * @author Frank Lützenkirchen
034     */
035    public class MCRVirtualNode extends MCRNode {
036        /**
037         * Creates a new virtual node
038         * 
039         * @param parent
040         *            the parent node containing this node
041         * @param fo
042         *            the file object in Apache VFS representing this node
043         */
044        protected MCRVirtualNode(MCRNode parent, FileObject fo) {
045            super(parent, fo);
046        }
047    
048        /**
049         * Returns a virtual node that is a child of this virtual node.
050         */
051        protected MCRVirtualNode buildChildNode(FileObject fo) throws Exception {
052            return new MCRVirtualNode(this, fo);
053        }
054    }