Gridarta Editor
net.sf.gridarta.model.configsource.ConfigSource Interface Reference

Possible source locations for configuration files. More...

+ Inheritance diagram for net.sf.gridarta.model.configsource.ConfigSource:
+ Collaboration diagram for net.sf.gridarta.model.configsource.ConfigSource:

Public Member Functions

File getFile (@NotNull ProjectSettings projectSettings, @NotNull String type, int index) throws IOException
 Returns a config file. More...
 
String getName ()
 Returns the internal name. More...
 
boolean isArchDirectoryInputFieldEnabled ()
 Whether the "archetype directory" input field in the settings dialog should be enabled. More...
 
< G extends GameObject< G, A, R > A extends R extends Archetype< G, A, R > void read (@NotNull ProjectSettings projectSettings, @NotNull AbstractResources< G, A, R > resources, @NotNull ErrorView errorView)
 
String toString ()
 

Public Attributes

< G extends GameObject< G, A, R > A extends MapArchObject< A >
 

Detailed Description

Possible source locations for configuration files.

Author
Andreas Kirschbaum

Definition at line 37 of file ConfigSource.java.

Member Function Documentation

◆ getFile()

File net.sf.gridarta.model.configsource.ConfigSource.getFile ( @NotNull ProjectSettings  projectSettings,
@NotNull String  type,
int  index 
) throws IOException

Returns a config file.

Parameters
projectSettingsthe project settings to use
typethe file type
indexthe file index, starting with
0
Returns
the file or
null
if no more files are available
Exceptions
IOExceptionif an error occurs

Implemented in net.sf.gridarta.model.configsource.AbstractConfigSource.

◆ getName()

◆ isArchDirectoryInputFieldEnabled()

boolean net.sf.gridarta.model.configsource.ConfigSource.isArchDirectoryInputFieldEnabled ( )

◆ read()

<G extends GameObject<G, A, R> A extends R extends Archetype<G, A, R> void net.sf.gridarta.model.configsource.ConfigSource.read ( @NotNull ProjectSettings  projectSettings,
@NotNull AbstractResources< G, A, R >  resources,
@NotNull ErrorView  errorView 
)

◆ toString()

String net.sf.gridarta.model.configsource.ConfigSource.toString ( )

Member Data Documentation

◆ MapArchObject< A >

<G extends GameObject<G, A, R> A extends net.sf.gridarta.model.configsource.ConfigSource.MapArchObject< A >

Definition at line 56 of file ConfigSource.java.


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