55 lines
1.0 KiB
Java
55 lines
1.0 KiB
Java
package org.palomafp.aadd.smmb.model;
|
|
|
|
import java.io.Serializable;
|
|
|
|
public class Pais implements Serializable{
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
private int identificador;
|
|
private String nombre;
|
|
private String nombreCapital;
|
|
private Continente continente;
|
|
|
|
public Pais() {
|
|
}
|
|
|
|
|
|
|
|
public int getIdentificador() {
|
|
return identificador;
|
|
}
|
|
public void setIdentificador(int identificador) {
|
|
this.identificador = identificador;
|
|
}
|
|
public String getNombre() {
|
|
return nombre;
|
|
}
|
|
public void setNombre(String nombre) {
|
|
this.nombre = nombre;
|
|
}
|
|
public String getNombreCapital() {
|
|
return nombreCapital;
|
|
}
|
|
public void setNombreCapital(String capital) {
|
|
this.nombreCapital = capital;
|
|
}
|
|
|
|
public void setContinente(Continente continente) {
|
|
this.continente = continente;
|
|
}
|
|
public Continente getContinente() {
|
|
return continente;
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
return this.nombre + " (" + this.identificador + ") con capital en " + this.nombreCapital +
|
|
" pertenece al continente " + this.continente;
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|