Class AbstractSingleFileModel

  • All Implemented Interfaces:
    IModel

    public abstract class AbstractSingleFileModel
    extends Object
    implements IModel
    For use with ResourceFileTypeManifold. Models the common use-case where a type is backed by a single resource file e.g., a CSV file.
    • Method Detail

      • getHost

        public IManifoldHost getHost()
        Specified by:
        getHost in interface IModel
        Returns:
        The Manifold host within which this model operates
      • getFqn

        public String getFqn()
        Specified by:
        getFqn in interface IModel
        Returns:
        The fully qualified type name to which code will be contributed
      • getFiles

        public Set<IFile> getFiles()
        Specified by:
        getFiles in interface IModel
        Returns:
        The resource file[s] from which information is gathered to contribute source
      • getFile

        public IFile getFile()
      • addFile

        public void addFile​(IFile file)
        Description copied from interface: IModel
        Add file to the set of files this model uses. The addition of a new flie
        Specified by:
        addFile in interface IModel
      • removeFile

        public void removeFile​(IFile file)
        Description copied from interface: IModel
        Remove file from the set of files this model uses
        Specified by:
        removeFile in interface IModel
      • updateFile

        public void updateFile​(IFile file)
        Description copied from interface: IModel
        Updates file in the set of files this model uses
        Specified by:
        updateFile in interface IModel