1/*
2 * Copyright 2008 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.mockftpserver.fake.filesystem
17
18/**
19 * The abstract superclass for concrete file system entry classes representing files and directories.
20 *
21 * @version $Revision: $ - $Date: $
22 *
23 * @author Chris Mair
24 */
25abstract class AbstractFileSystemEntry {
26
27    String path
28    Date lastModified
29
30    /**
31     * Construct a new instance without setting its path
32     */
33    AbstractFileSystemEntry() {
34    }
35
36    /**
37     * Construct a new instance with the specified value for its path
38     * @param path - the value for path
39     */
40    AbstractFileSystemEntry(String path) {
41        setPath(path)
42    }
43
44    /**
45     * Abstract method -- must be implemented within concrete subclasses
46     * @return true if this file system entry represents a directory
47     */
48    abstract boolean isDirectory()
49
50}
51