public abstract class AbstractSingleFileModel extends Object implements IModel
ResourceFileTypeManifold. Models the common use-case where
a type is backed by a single resource file e.g.,
a CSV file.| Constructor and Description |
|---|
AbstractSingleFileModel(IManifoldHost host,
String fqn,
Set<IFile> files) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(IFile file)
Add
file to the set of files this model uses. |
IFile |
getFile() |
Set<IFile> |
getFiles() |
String |
getFqn() |
IManifoldHost |
getHost() |
void |
removeFile(IFile file)
Remove
file from the set of files this model uses |
void |
updateFile(IFile file)
Updates
file in the set of files this model uses |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisProcessingpublic AbstractSingleFileModel(IManifoldHost host, String fqn, Set<IFile> files)
public IManifoldHost getHost()
public String getFqn()
public IFile getFile()
public void addFile(IFile file)
IModelfile to the set of files this model uses. The addition of a new fliepublic void removeFile(IFile file)
IModelfile from the set of files this model usesremoveFile in interface IModelpublic void updateFile(IFile file)
IModelfile in the set of files this model usesupdateFile in interface IModelCopyright © 2024. All rights reserved.