Package manifold.api.type
Class AbstractSingleFileModel
- java.lang.Object
-
- manifold.api.type.AbstractSingleFileModel
-
- All Implemented Interfaces:
IModel
public abstract class AbstractSingleFileModel extends Object implements IModel
For use withResourceFileTypeManifold. Models the common use-case where a type is backed by a single resource file e.g., a CSV file.
-
-
Constructor Summary
Constructors Constructor Description AbstractSingleFileModel(IManifoldHost host, String fqn, Set<IFile> files)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFile(IFile file)Addfileto the set of files this model uses.IFilegetFile()Set<IFile>getFiles()StringgetFqn()IManifoldHostgetHost()voidremoveFile(IFile file)Removefilefrom the set of files this model usesvoidupdateFile(IFile file)Updatesfilein the set of files this model uses-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface manifold.api.type.IModel
isProcessing
-
-
-
-
Constructor Detail
-
AbstractSingleFileModel
public AbstractSingleFileModel(IManifoldHost host, String fqn, Set<IFile> files)
-
-
Method Detail
-
getHost
public IManifoldHost getHost()
-
getFqn
public String getFqn()
-
getFile
public IFile getFile()
-
addFile
public void addFile(IFile file)
Description copied from interface:IModelAddfileto the set of files this model uses. The addition of a new flie
-
removeFile
public void removeFile(IFile file)
Description copied from interface:IModelRemovefilefrom the set of files this model uses- Specified by:
removeFilein interfaceIModel
-
updateFile
public void updateFile(IFile file)
Description copied from interface:IModelUpdatesfilein the set of files this model uses- Specified by:
updateFilein interfaceIModel
-
-