Package org.codehaus.mojo.mrm.api
Class AbstractEntry
java.lang.Object
org.codehaus.mojo.mrm.api.AbstractEntry
- All Implemented Interfaces:
Entry
- Direct Known Subclasses:
BaseFileEntry,DefaultDirectoryEntry
Abstract implementation of
Entry.- Since:
- 1.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEntry(FileSystem fileSystem, DirectoryEntry parent, String name) Creates an entry in the specified file system with the specified parent and name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the repository that this entry belongs to.getName()Returns the name of this entry.Returns the parent of this entry (ornullif there is no parent, that is the root entry).final inthashCode()final StringtoPath()Returns the path of this entry relative to the root of the filesystem.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.codehaus.mojo.mrm.api.Entry
getLastModified
-
Constructor Details
-
AbstractEntry
Creates an entry in the specified file system with the specified parent and name.- Parameters:
fileSystem- The filesystem.parent- The parent.name- The name of the entry.- Since:
- 1.0
-
-
Method Details
-
getFileSystem
Description copied from interface:EntryReturns the repository that this entry belongs to.- Specified by:
getFileSystemin interfaceEntry- Returns:
- the repository that this entry belongs to.
-
getParent
Description copied from interface:EntryReturns the parent of this entry (ornullif there is no parent, that is the root entry). -
getName
Description copied from interface:EntryReturns the name of this entry. -
equals
-
hashCode
public final int hashCode() -
toString
-
toPath
Description copied from interface:EntryReturns the path of this entry relative to the root of the filesystem. Must not start with a '/'.
-