20 package net.sf.gridarta.plugin.parameter;
27 import org.jetbrains.annotations.NotNull;
28 import org.jetbrains.annotations.Nullable;
65 public void setFile(@NotNull
final File file) {
73 if (stringValue.isEmpty()) {
74 throw new InvalidValueException(
"not value specified");
76 final File file =
new File(stringValue);
78 throw new InvalidValueException(
"file does not exist: " + stringValue);
String stringValue
The current value.
Reading and writing of maps, handling of paths.
Abstract base class for PluginParameter implementations for which the value is calculated from the st...
void setFile(@NotNull final File file)
Sets the current File.
Utility class for converting relative map paths to absolute map paths and vice versa.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
Base class for PluginParameters that hold a File value.
static String getMapPath(@NotNull final File file, @NotNull final File baseDir)
Returns a relative path path for a File.
final File baseDir
The base directory.
An exception that is thrown if the string representation of value in a PluginParameter cannot be conv...
File getBaseDir()
Returns the base directory.
boolean setStringValue( @NotNull final String stringValue)
Updates the parameter value.
Interface for MapArchObjects.
AbstractPathParameter(@NotNull final File baseDir)
Creates a new instance.