Class AbstractConfigSource
- java.lang.Object
-
- net.sf.gridarta.model.configsource.AbstractConfigSource
-
- All Implemented Interfaces:
ConfigSource
- Direct Known Subclasses:
CollectedConfigSource,CollectedConfigSource,CollectedConfigSource,FilesConfigSource,FilesConfigSource,FilesConfigSource
public abstract class AbstractConfigSource extends java.lang.Object implements ConfigSource
Abstract base class forConfigSourceimplementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractConfigSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.io.FilegetFile(@NotNull ProjectSettings projectSettings, @NotNull java.lang.String type, int index)Returns a config file.@NotNull java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.gridarta.model.configsource.ConfigSource
getName, isArchDirectoryInputFieldEnabled, read
-
-
-
-
Method Detail
-
toString
@NotNull public @NotNull java.lang.String toString()
- Specified by:
toStringin interfaceConfigSource- Overrides:
toStringin classjava.lang.Object
-
getFile
@Nullable public @Nullable java.io.File getFile(@NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull java.lang.String type, int index) throws java.io.IOExceptionDescription copied from interface:ConfigSourceReturns a config file.- Specified by:
getFilein interfaceConfigSource- Parameters:
projectSettings- the project settings to usetype- the file typeindex- the file index, starting with0- Returns:
- the file or
nullif no more files are available - Throws:
java.io.IOException- if an error occurs
-
-