Gridarta Editor
net.sf.gridarta.plugin.parameter.AbstractPathParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Referenceabstract

Base class for PluginParameters that hold a File value. More...

+ Inheritance diagram for net.sf.gridarta.plugin.parameter.AbstractPathParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.plugin.parameter.AbstractPathParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

File getBaseDir ()
 Returns the base directory. More...
 
File getValue () throws InvalidValueException
 
File getValueOrNull ()
 
void setFile (@NotNull final File file)
 Sets the current File. More...
 
- Public Member Functions inherited from net.sf.gridarta.plugin.parameter.AbstractStringPluginParameter< G, A, R, File >
String getStringValue ()
 
boolean setStringValue ( @NotNull final String stringValue)
 Updates the parameter value. More...
 

Protected Member Functions

 AbstractPathParameter (@NotNull final File baseDir)
 Creates a new instance. More...
 
- Protected Member Functions inherited from net.sf.gridarta.plugin.parameter.AbstractStringPluginParameter< G, A, R, File >
 AbstractStringPluginParameter ( @NotNull final String stringValue)
 Creates a new instance. More...
 

Private Attributes

final File baseDir
 The base directory. More...
 

Detailed Description

Base class for PluginParameters that hold a File value.

Author
Andreas Kirschbaum

Definition at line 35 of file AbstractPathParameter.java.

Constructor & Destructor Documentation

◆ AbstractPathParameter()

net.sf.gridarta.plugin.parameter.AbstractPathParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.AbstractPathParameter ( @NotNull final File  baseDir)
protected

Member Function Documentation

◆ getBaseDir()

File net.sf.gridarta.plugin.parameter.AbstractPathParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getBaseDir ( )

◆ getValue()

◆ getValueOrNull()

◆ setFile()

void net.sf.gridarta.plugin.parameter.AbstractPathParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setFile ( @NotNull final File  file)

Sets the current File.

Parameters
filethe file

Definition at line 65 of file AbstractPathParameter.java.

References net.sf.gridarta.model.io.PathManagerUtils.getMapPath(), and net.sf.gridarta.plugin.parameter.AbstractStringPluginParameter< G, A, R, File >.setStringValue().

+ Here is the call graph for this function:

Member Data Documentation

◆ baseDir


The documentation for this class was generated from the following file: