com.webcodepro.applecommander.ui
Class ImportSpecification

java.lang.Object
  extended by com.webcodepro.applecommander.ui.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.

Author:
Rob Greene

Constructor Summary
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
 int getAddress()
          Returns the address.
 java.lang.String getFiletype()
          Returns the filetype.
 java.lang.String getSourceFilename()
          Returns the sourceFilename.
 java.lang.String getTargetFilename()
          Returns the targetFilename.
 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 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.