org.openstreetmap.fma.jtiledownloader.datatypes
Class TileDownloadResult

java.lang.Object
  extended by org.openstreetmap.fma.jtiledownloader.datatypes.TileDownloadResult

public class TileDownloadResult
extends java.lang.Object


Field Summary
private  int _code
           
private  java.lang.String _message
           
private  boolean _updatedTile
           
static int CODE_FILENOTFOUND
           
static int CODE_HTTP_500
           
static int CODE_MALFORMED_URL_EXECPTION
           
static int CODE_OK
           
static int CODE_UNKNOWN_ERROR
           
static int CODE_UNKNOWN_HOST_EXECPTION
           
static java.lang.String MSG_FILENOTFOUND
           
static java.lang.String MSG_HTTP_500
           
static java.lang.String MSG_MALFORMED_URL_EXECPTION
           
static java.lang.String MSG_OK
           
static java.lang.String MSG_UNKNOWN_ERROR
           
static java.lang.String MSG_UNKNOWN_HOST_EXECPTION
           
 
Constructor Summary
TileDownloadResult()
           
 
Method Summary
 int getCode()
          Getter for code
 java.lang.String getMessage()
          Getter for message
 boolean isUpdatedTile()
          Getter for updatedTile
 void setCode(int code)
          Setter for code
 void setMessage(java.lang.String message)
          Setter for message
 void setUpdatedTile(boolean updatedTile)
          Setter for updatedTile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODE_OK

public static final int CODE_OK
See Also:
Constant Field Values

MSG_OK

public static final java.lang.String MSG_OK
See Also:
Constant Field Values

CODE_FILENOTFOUND

public static final int CODE_FILENOTFOUND
See Also:
Constant Field Values

MSG_FILENOTFOUND

public static final java.lang.String MSG_FILENOTFOUND
See Also:
Constant Field Values

CODE_MALFORMED_URL_EXECPTION

public static final int CODE_MALFORMED_URL_EXECPTION
See Also:
Constant Field Values

MSG_MALFORMED_URL_EXECPTION

public static final java.lang.String MSG_MALFORMED_URL_EXECPTION
See Also:
Constant Field Values

CODE_UNKNOWN_HOST_EXECPTION

public static final int CODE_UNKNOWN_HOST_EXECPTION
See Also:
Constant Field Values

MSG_UNKNOWN_HOST_EXECPTION

public static final java.lang.String MSG_UNKNOWN_HOST_EXECPTION
See Also:
Constant Field Values

CODE_HTTP_500

public static final int CODE_HTTP_500
See Also:
Constant Field Values

MSG_HTTP_500

public static final java.lang.String MSG_HTTP_500
See Also:
Constant Field Values

CODE_UNKNOWN_ERROR

public static final int CODE_UNKNOWN_ERROR
See Also:
Constant Field Values

MSG_UNKNOWN_ERROR

public static final java.lang.String MSG_UNKNOWN_ERROR
See Also:
Constant Field Values

_code

private int _code

_message

private java.lang.String _message

_updatedTile

private boolean _updatedTile
Constructor Detail

TileDownloadResult

public TileDownloadResult()
Method Detail

setCode

public void setCode(int code)
Setter for code

Parameters:
code - the code to set

getCode

public int getCode()
Getter for code

Returns:
the code

setMessage

public void setMessage(java.lang.String message)
Setter for message

Parameters:
message - the message to set

getMessage

public java.lang.String getMessage()
Getter for message

Returns:
the message

setUpdatedTile

public void setUpdatedTile(boolean updatedTile)
Setter for updatedTile

Parameters:
updatedTile - the updatedTile to set

isUpdatedTile

public boolean isUpdatedTile()
Getter for updatedTile

Returns:
the updatedTile