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(java.io.File baseDir)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getBaseDir()
Returns the base directory.
|
java.io.File |
getValue()
Returns the current value of this parameter.
|
java.io.File |
getValueOrNull()
Returns the current value of this parameter.
|
void |
setFile(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
java.io.File baseDir)
baseDir - the base directory@NotNull public java.io.File getBaseDir()
public void setFile(@NotNull
java.io.File file)
File.file - the file@NotNull
public java.io.File getValue()
throws InvalidValueException
InvalidValueException - if the the value is invalid@Nullable public java.io.File getValueOrNull()
null if the the value is invalid