Package net.sf.gridarta.plugin.parameter
Class AbstractPathParameter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.plugin.parameter.AbstractPluginParameter<G,A,R,V>
-
- net.sf.gridarta.plugin.parameter.AbstractStringPluginParameter<G,A,R,java.io.File>
-
- net.sf.gridarta.plugin.parameter.AbstractPathParameter<G,A,R>
-
- All Implemented Interfaces:
PluginParameter<G,A,R,java.io.File>
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>
Base class forPluginParametersthat hold aFilevalue.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPathParameter(@NotNull java.io.File baseDir)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.io.FilegetBaseDir()Returns the base directory.@NotNull java.io.FilegetValue()Returns the current value of this parameter.@Nullable java.io.FilegetValueOrNull()Returns the current value of this parameter.voidsetFile(@NotNull java.io.File file)Sets the currentFile.-
Methods inherited from class net.sf.gridarta.plugin.parameter.AbstractStringPluginParameter
getStringValue, setStringValue
-
Methods inherited from class net.sf.gridarta.plugin.parameter.AbstractPluginParameter
addPluginParameterListener, changed, getDescription, getName, removePluginParameterListener, setDescription, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.gridarta.plugin.parameter.PluginParameter
getParameterType, visit
-
-
-
-
Method Detail
-
getBaseDir
@NotNull public @NotNull java.io.File getBaseDir()
Returns the base directory.- Returns:
- the base directory
-
setFile
public void setFile(@NotNull @NotNull java.io.File file)Sets the currentFile.- Parameters:
file- the file
-
getValue
@NotNull public @NotNull java.io.File getValue() throws InvalidValueExceptionDescription copied from interface:PluginParameterReturns the current value of this parameter.- Returns:
- the value
- Throws:
InvalidValueException- if the the value is invalid
-
getValueOrNull
@Nullable public @Nullable java.io.File getValueOrNull()
Description copied from interface:PluginParameterReturns the current value of this parameter.- Returns:
- the value or
nullif the the value is invalid
-
-