 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.mapmodel;
23 import java.io.Serializable;
24 import org.jetbrains.annotations.NotNull;
25 import org.jetbrains.annotations.Nullable;
31 public class MapFile implements Serializable {
115 if (!
mapsDir.equals(mapFile.mapsDir)) {
118 return mapFile.mapPath.getRelativeMapPathFrom(
mapPath);
122 public boolean equals(@Nullable
final Object obj) {
123 if (obj ==
null || getClass() != obj.getClass()) {
String getPath()
Returns the map path information.
A MapPath that is absolute, that is, it starts with a "/".
MapPath getRelativeMapFileTo(@NotNull final MapFile mapFile)
Returns a map path of an another map file relative to this map file.
Thrown if two map files are within different map directories.
boolean equals(@Nullable final Object obj)
Utility class for MapPath related functions.
MapFile(@NotNull final File mapsDir)
Creates a new instance for the maps directory.
AbsoluteMapPath getMapPath()
Returns the map path within getMapsDir().
static AbsoluteMapPath append(@NotNull final AbsoluteMapPath baseMapPath, @NotNull final MapPath mapPath)
Appends a map path to another map path.
File getMapsDir()
Returns the base directory this map file is part of.
File getFile()
Returns a File for this map file.
final File mapsDir
The maps directory this map file is part of.
Represents a maps directory local map path.
The location of a map file with a map directory.
MapFile(@NotNull final MapFile parent, @NotNull final MapPath mapPath)
Creates a new instance.
static final long serialVersionUID
The serial version UID.
boolean equals(@Nullable final Object obj)
MapFile(@NotNull final MapFile parent, @NotNull final String name)
Creates a new instance for a child of a parent map file.
final AbsoluteMapPath mapPath
The absolute map path within mapsDir.