001package horstmann.ch10_visitor;
002import java.io.File;
003
004public class FileNode implements FileSystemNode
005{
006        public FileNode(File file)
007        {
008                this.file = file;
009        }
010
011        public File getFile() { return file; }
012
013        public void accept(FileSystemVisitor v)
014        {
015                v.visitFileNode(this);
016        }
017
018        private File file;
019}