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
ModifierConstructorDescriptionprotected
AbstractEntry
(FileSystem fileSystem, DirectoryEntry parent, String name) Creates an entry in the specified file system with the specified parent and name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the repository that this entry belongs to.getName()
Returns the name of this entry.Returns the parent of this entry (ornull
if there is no parent, that is the root entry).final int
hashCode()
final String
toPath()
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, wait
Methods 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:Entry
Returns the repository that this entry belongs to.- Specified by:
getFileSystem
in interfaceEntry
- Returns:
- the repository that this entry belongs to.
-
getParent
Description copied from interface:Entry
Returns the parent of this entry (ornull
if there is no parent, that is the root entry). -
getName
Description copied from interface:Entry
Returns the name of this entry. -
equals
-
hashCode
public final int hashCode() -
toString
-
toPath
Description copied from interface:Entry
Returns the path of this entry relative to the root of the filesystem. Must not start with a '/
'.
-