Package com.webcodepro.applecommander.ui
Class ImportSpecification
- java.lang.Object
-
- com.webcodepro.applecommander.ui.ImportSpecification
-
public class ImportSpecification extends java.lang.ObjectThis 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(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 intgetAddress()Returns the address.java.lang.StringgetFiletype()Returns the filetype.java.lang.StringgetSourceFilename()Returns the sourceFilename.java.lang.StringgetTargetFilename()Returns the targetFilename.booleanhasFiletype()Indicates if a filetype has been set.booleanisRawFileImport()Answers true if the file should be imported as a raw file - that is, no doctoring of the file bytes at all.voidsetAddress(int address)Sets the address.voidsetFiletype(java.lang.String filetype)Sets the filetype.voidsetRawFileImport(boolean rawFileImport)Sets raw file import flag.voidsetTargetFilename(java.lang.String targetFilename)Sets the targetFilename.
-
-
-
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.
-
-