Class ImportSpecification


  • public class ImportSpecification
    extends java.lang.Object
    This class represents the Import specification for a single file. It is generic, and could/should be used as a common user interface bean.
    Created on Jan 25, 2003.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImportSpecification​(ImportSpecification orig)  
      ImportSpecification​(java.lang.String sourceFilename, java.lang.String targetFilename)
      Create the ImportSpecification with default values.
      ImportSpecification​(java.lang.String sourceFilename, java.lang.String targetFilename, java.lang.String filetype)
      Create the ImportSpecification with default values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAddress()
      Returns the address.
      byte[] getFileData()
      Get the binary file data (only done with validated file types).
      java.lang.String getFiletype()
      Returns the filetype.
      java.lang.String getSourceFilename()
      Returns the sourceFilename.
      java.lang.String getTargetFilename()
      Returns the targetFilename.
      boolean hasFileData()
      Answers true if this specification has file data attached.
      boolean hasFiletype()
      Indicates if a filetype has been set.
      boolean isRawFileImport()
      Answers true if the file should be imported as a raw file - that is, no doctoring of the file bytes at all.
      void setAddress​(int address)
      Sets the address.
      void setFileData​(byte[] fileData)
      Set the binary file data (only done with validated file types).
      void setFiletype​(java.lang.String filetype)
      Sets the filetype.
      void setRawFileImport​(boolean rawFileImport)
      Sets raw file import flag.
      void setTargetFilename​(java.lang.String targetFilename)
      Sets the targetFilename.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImportSpecification

        public ImportSpecification​(java.lang.String sourceFilename,
                                   java.lang.String targetFilename)
        Create the ImportSpecification with default values.
      • ImportSpecification

        public ImportSpecification​(java.lang.String sourceFilename,
                                   java.lang.String targetFilename,
                                   java.lang.String filetype)
        Create the ImportSpecification with default values.
    • Method Detail

      • getAddress

        public int getAddress()
        Returns the address.
        Returns:
        int
      • hasFiletype

        public boolean hasFiletype()
        Indicates if a filetype has been set.
      • getFiletype

        public java.lang.String getFiletype()
        Returns the filetype.
        Returns:
        String
      • getSourceFilename

        public java.lang.String getSourceFilename()
        Returns the sourceFilename.
        Returns:
        String
      • getTargetFilename

        public java.lang.String getTargetFilename()
        Returns the targetFilename.
        Returns:
        String
      • setAddress

        public void setAddress​(int address)
        Sets the address.
        Parameters:
        address - The address to set
      • setFiletype

        public void setFiletype​(java.lang.String filetype)
        Sets the filetype.
        Parameters:
        filetype - The filetype to set
      • setTargetFilename

        public void setTargetFilename​(java.lang.String targetFilename)
        Sets the targetFilename.
        Parameters:
        targetFilename - The targetFilename to set
      • isRawFileImport

        public boolean isRawFileImport()
        Answers true if the file should be imported as a raw file - that is, no doctoring of the file bytes at all. Particularly important in operating systems like DOS 3.3.
      • setRawFileImport

        public void setRawFileImport​(boolean rawFileImport)
        Sets raw file import flag.
      • setFileData

        public void setFileData​(byte[] fileData)
        Set the binary file data (only done with validated file types).
      • getFileData

        public byte[] getFileData()
        Get the binary file data (only done with validated file types).
      • hasFileData

        public boolean hasFileData()
        Answers true if this specification has file data attached.