sonification.dataimport.visbards_resourcetoolkit.repository.resource
Class DefaultResource

java.lang.Object
  extended by sonification.dataimport.visbards_resourcetoolkit.repository.resource.DefaultResource
All Implemented Interfaces:
Resource

public class DefaultResource
extends java.lang.Object
implements Resource

A simple class which holds information about the resource.


Constructor Summary
DefaultResource(ResourceInfo info, ResourceReader rdr, ReadConfiguration config, java.io.File[] sources)
           
 
Method Summary
 void backupCurrentConfig()
          config -> loaded config.
 ReadConfiguration getCurrentConfig()
          Returns resource configuration to be used next time the resource is loaded.
 java.io.File[] getFiles()
          Returns the files of this resource
 ResourceInfo getInfo()
          Returns the resource info (filenames/type)
 ReadConfiguration getLastLoadedConfig()
          Returns configuration parameters which the resource was last loaded with
 java.lang.String getName()
          Returns the name of this resource
 ResourceReader getReader()
          Returns the reader for this resource
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultResource

public DefaultResource(ResourceInfo info,
                       ResourceReader rdr,
                       ReadConfiguration config,
                       java.io.File[] sources)
Method Detail

getReader

public ResourceReader getReader()
Description copied from interface: Resource
Returns the reader for this resource

Specified by:
getReader in interface Resource

getInfo

public ResourceInfo getInfo()
Description copied from interface: Resource
Returns the resource info (filenames/type)

Specified by:
getInfo in interface Resource

getFiles

public java.io.File[] getFiles()
Returns the files of this resource

Specified by:
getFiles in interface Resource

getCurrentConfig

public ReadConfiguration getCurrentConfig()
Returns resource configuration to be used next time the resource is loaded.

Specified by:
getCurrentConfig in interface Resource

getLastLoadedConfig

public ReadConfiguration getLastLoadedConfig()
Returns configuration parameters which the resource was last loaded with

Specified by:
getLastLoadedConfig in interface Resource

backupCurrentConfig

public void backupCurrentConfig()
config -> loaded config.

Specified by:
backupCurrentConfig in interface Resource

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Description copied from interface: Resource
Returns the name of this resource

Specified by:
getName in interface Resource