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, wait
isProcessing
public AbstractSingleFileModel(IManifoldHost host, String fqn, Set<IFile> files)
public IManifoldHost getHost()
public String getFqn()
public IFile getFile()
public void addFile(IFile file)
IModel
file
to the set of files this model uses. The addition of a new fliepublic void removeFile(IFile file)
IModel
file
from the set of files this model usesremoveFile
in interface IModel
public void updateFile(IFile file)
IModel
file
in the set of files this model usesupdateFile
in interface IModel
Copyright © 2024. All rights reserved.