org.hdtourist.model
Class FicheroHdt

java.lang.Object
  extended by org.hdtourist.model.FicheroHdt
All Implemented Interfaces:
java.io.Serializable

public class FicheroHdt
extends java.lang.Object
implements java.io.Serializable

La clase que representa el fichero HDT y sus datos

See Also:
Serialized Form

Field Summary
private  boolean inicio
          The inicio.
private static java.lang.String LOG_TAG
           
private  java.lang.String nombre
          The nombre.
private static long serialVersionUID
          La constante serialVersionUID.
private  java.math.BigDecimal tamano
          El tamaño del fichero HDT.
private  java.math.BigDecimal tamanoMaps
          El tamaño del fichero de mapas comprimido.
private  java.lang.String uri
          The uri.
private  java.lang.String uriOriginal
          The uri original.
 
Constructor Summary
FicheroHdt()
           
 
Method Summary
 void compruebaYFijaUri(Categoria categoria)
          Comprueba y fija uri.
 java.io.File getFichero()
          Gets the fichero.
 java.io.File getMapaDir()
          Gets the mapa dir.
 java.lang.String getNombre()
          Gets the nombre.
 java.lang.String getNombreSinEspacios()
           
 java.lang.String getRutaFichero()
          Gets the ruta fichero.
 java.lang.String getRutaMapa()
          Gets the ruta mapa.
 java.math.BigDecimal getTamano()
          Gets the tamano.
 java.math.BigDecimal getTamanoMaps()
           
 java.lang.String getUri()
          Gets the uri.
 boolean hayMapasOffline()
          Hay mapas offline.
 void setFichero(java.io.File fichero)
          Sets the fichero.
 void setNombre(java.lang.String nombre)
          Sets the nombre.
 void setRutaFichero(java.lang.String rutaFichero)
          Sets the ruta fichero.
 void setTamano(java.math.BigDecimal tamano)
          Sets the tamano.
 void setTamano(int tamano)
          Sets the tamano.
 void setTamanoMaps(java.math.BigDecimal tamanoMaps)
           
 void setTamanoMaps(int tamanoMaps)
           
 void setUri(java.lang.String uri)
          Sets the uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_TAG

private static final java.lang.String LOG_TAG
See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
La constante serialVersionUID.

See Also:
Constant Field Values

inicio

private boolean inicio
The inicio.


nombre

private java.lang.String nombre
The nombre.


tamano

private java.math.BigDecimal tamano
El tamaño del fichero HDT.


tamanoMaps

private java.math.BigDecimal tamanoMaps
El tamaño del fichero de mapas comprimido.


uri

private java.lang.String uri
The uri.


uriOriginal

private java.lang.String uriOriginal
The uri original.

Constructor Detail

FicheroHdt

public FicheroHdt()
Method Detail

compruebaYFijaUri

public void compruebaYFijaUri(Categoria categoria)
Comprueba y fija uri.

Parameters:
categoria - the categoria

getFichero

public java.io.File getFichero()
Gets the fichero.

Returns:
the fichero

getMapaDir

public java.io.File getMapaDir()
                        throws HdtException
Gets the mapa dir.

Returns:
the mapa dir
Throws:
HdtException - Excepción de la aplicación

getNombre

public java.lang.String getNombre()
Gets the nombre.

Returns:
the nombre

getNombreSinEspacios

public java.lang.String getNombreSinEspacios()

getRutaFichero

public java.lang.String getRutaFichero()
Gets the ruta fichero.

Returns:
the ruta fichero

getRutaMapa

public java.lang.String getRutaMapa()
                             throws HdtException
Gets the ruta mapa.

Returns:
the ruta mapa
Throws:
HdtException - Excepción de la aplicación

getTamano

public java.math.BigDecimal getTamano()
Gets the tamano.

Returns:
the tamano

getUri

public java.lang.String getUri()
Gets the uri.

Returns:
the uri

hayMapasOffline

public boolean hayMapasOffline()
Hay mapas offline.

Returns:
true, if successful

setFichero

public void setFichero(java.io.File fichero)
Sets the fichero.

Parameters:
fichero - the new fichero

setNombre

public void setNombre(java.lang.String nombre)
Sets the nombre.

Parameters:
nombre - the new nombre

setRutaFichero

public void setRutaFichero(java.lang.String rutaFichero)
Sets the ruta fichero.

Parameters:
rutaFichero - the new ruta fichero

setTamano

public void setTamano(java.math.BigDecimal tamano)
Sets the tamano.

Parameters:
tamano - the new tamano

setTamano

public void setTamano(int tamano)
Sets the tamano.

Parameters:
tamano - the new tamano

setUri

public void setUri(java.lang.String uri)
Sets the uri.

Parameters:
uri - the new uri

getTamanoMaps

public java.math.BigDecimal getTamanoMaps()
Returns:
the tamanoMaps

setTamanoMaps

public void setTamanoMaps(java.math.BigDecimal tamanoMaps)
Parameters:
tamanoMaps - el nuevo tamaño del fichero HDT

setTamanoMaps

public void setTamanoMaps(int tamanoMaps)
Parameters:
tamanoMaps - el nuevo tamaño del fichero de mapas comprimido