Class DummyFile

  • All Implemented Interfaces:
    DummyHandledFile

    public class DummyFile
    extends AbstractDummyHandledFile
    Simple dummy representation of a File that has to be handle.

    User: Yohann Chastagnier Date: 17/10/13

    • Constructor Detail

      • DummyFile

        public DummyFile​(File file,
                         String componentInstanceId)
        Case of the file is considered as a creation.
        Parameters:
        file - the file
        componentInstanceId - the component instance in which the file is used
      • DummyFile

        public DummyFile​(File file,
                         String componentInstanceId,
                         boolean deleted)
        Case of a creation of a deletion of a file.
        Parameters:
        file - the file
        componentInstanceId - the component instance in which the file is used
        deleted - is a case of a deletion?
    • Method Detail

      • getComponentInstanceId

        public String getComponentInstanceId()
        Description copied from interface: DummyHandledFile
        Gets the component instance id at which the virtual file is associated.
        Returns:
        the identifier of the component instance.
      • getPath

        public String getPath()
        Description copied from interface: DummyHandledFile
        Gets the path of the virtual file. In most of cases, this information is the same as the name one.
        Returns:
        the virtual path of the file.
      • getName

        public String getName()
        Description copied from interface: DummyHandledFile
        Gets the name of the virtual file.
        Returns:
        the virtual name of the file.
      • getSize

        public long getSize()
        Description copied from interface: DummyHandledFile
        Gets the size of the virtual file (bytes).
        Returns:
        the virtual size of the file.
      • getMimeType

        public String getMimeType()
        Description copied from interface: DummyHandledFile
        Gets the mime type of the virtual file.
        Returns:
        the virtual mime type of the file.