public abstract class AbstractPathParameter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractStringPluginParameter<G,A,R,java.io.File>
PluginParameters that hold a File value.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPathParameter(@NotNull java.io.File baseDir)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.io.File |
getBaseDir()
Returns the base directory.
|
@NotNull java.io.File |
getValue()
Returns the current value of this parameter.
|
@Nullable java.io.File |
getValueOrNull()
Returns the current value of this parameter.
|
void |
setFile(@NotNull java.io.File file)
Sets the current
File. |
getStringValue, setStringValueaddPluginParameterListener, changed, getDescription, getName, removePluginParameterListener, setDescription, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterType, visitprotected AbstractPathParameter(@NotNull
@NotNull java.io.File baseDir)
baseDir - the base directory@NotNull public @NotNull java.io.File getBaseDir()
public void setFile(@NotNull
@NotNull java.io.File file)
File.file - the file@NotNull
public @NotNull java.io.File getValue()
throws InvalidValueException
PluginParameterInvalidValueException - if the the value is invalid@Nullable public @Nullable java.io.File getValueOrNull()
PluginParameternull if the the value is invalid