net.sf.gridarta.model.mappathnormalizer
public class MapPathNormalizer extends Object
Files
.Modifier and Type | Field and Description |
---|---|
private ProjectSettings |
projectSettings
The project settings instance.
|
Constructor and Description |
---|
MapPathNormalizer(ProjectSettings projectSettings)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
private File |
normalizeMapPath(File mapFile,
String path)
Normalizes a map path relative to a
File . |
File |
normalizeMapPath(MapModel<?,?,?> mapModel,
String path)
Normalizes a map path relative to a
MapModel . |
@NotNull private final ProjectSettings projectSettings
public MapPathNormalizer(@NotNull ProjectSettings projectSettings)
projectSettings
- the project settings instance@NotNull public File normalizeMapPath(@NotNull MapModel<?,?,?> mapModel, @NotNull String path) throws InvalidPathException, IOErrorException, RelativePathOnUnsavedMapException, SameMapException
MapModel
.mapModel
- the map model to start frompath
- the destination pathInvalidPathException
- if the destination file is invalidIOErrorException
- if an I/O error occursRelativePathOnUnsavedMapException
- if the path is relative and the
map has not yet been savedSameMapException
- if the destination path points to the source
map@NotNull private File normalizeMapPath(@Nullable File mapFile, @NotNull String path) throws InvalidPathException, IOErrorException, RelativePathOnUnsavedMapException, SameMapException
File
.mapFile
- the file to start frompath
- the destination pathInvalidPathException
- if the destination file is invalidIOErrorException
- if an I/O error occursRelativePathOnUnsavedMapException
- if the path is relative and the
map has not yet been savedSameMapException
- if the destination path points to the source
mapFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.