java/nekurak.net-lib/src/cz/frantovo/nekurak/xml/ClanekXML.java
changeset 182 bb8af29610c4
parent 96 9f6225d83611
     1.1 --- a/java/nekurak.net-lib/src/cz/frantovo/nekurak/xml/ClanekXML.java	Tue Apr 06 02:38:47 2010 +0200
     1.2 +++ b/java/nekurak.net-lib/src/cz/frantovo/nekurak/xml/ClanekXML.java	Wed Jan 26 18:58:02 2011 +0100
     1.3 @@ -8,48 +8,47 @@
     1.4   * Převaděč do XML
     1.5   * @author fiki
     1.6   */
     1.7 -@XmlRootElement(name="clanek")
     1.8 +@XmlRootElement(name = "clanek")
     1.9  public class ClanekXML {
    1.10  
    1.11 -    private Clanek clanek;
    1.12 +	private Clanek clanek;
    1.13  
    1.14 -    public ClanekXML() {
    1.15 -	clanek = new Clanek();
    1.16 -    }
    1.17 +	public ClanekXML() {
    1.18 +		clanek = new Clanek();
    1.19 +	}
    1.20  
    1.21 -    public ClanekXML(Clanek clanek) {
    1.22 -	this.clanek = clanek;
    1.23 -    }
    1.24 +	public ClanekXML(Clanek clanek) {
    1.25 +		this.clanek = clanek;
    1.26 +	}
    1.27  
    1.28 -    @XmlElement
    1.29 -    public int getId() {
    1.30 -	return clanek.getId();
    1.31 -    }
    1.32 +	@XmlElement
    1.33 +	public int getId() {
    1.34 +		return clanek.getId();
    1.35 +	}
    1.36  
    1.37 -    public void setId(int id) {
    1.38 -	clanek.setId(id);
    1.39 -    }
    1.40 +	public void setId(int id) {
    1.41 +		clanek.setId(id);
    1.42 +	}
    1.43  
    1.44 -    @XmlElement
    1.45 -    public String getNadpis() {
    1.46 -	return clanek.getNadpis();
    1.47 -    }
    1.48 +	@XmlElement
    1.49 +	public String getNadpis() {
    1.50 +		return clanek.getNadpis();
    1.51 +	}
    1.52  
    1.53 -    public void setNadpis(String nadpis) {
    1.54 -	clanek.setNadpis(nadpis);
    1.55 -    }
    1.56 +	public void setNadpis(String nadpis) {
    1.57 +		clanek.setNadpis(nadpis);
    1.58 +	}
    1.59  
    1.60 -    @XmlElement
    1.61 -    public String getText() {
    1.62 -	return clanek.getText();
    1.63 -    }
    1.64 +	@XmlElement
    1.65 +	public String getText() {
    1.66 +		return clanek.getText();
    1.67 +	}
    1.68  
    1.69 -    public void setText(String text) {
    1.70 -	clanek.setText(text);
    1.71 -    }
    1.72 +	public void setText(String text) {
    1.73 +		clanek.setText(text);
    1.74 +	}
    1.75  
    1.76 -    public Clanek getClanek() {
    1.77 -	return clanek;
    1.78 -    }
    1.79 -
    1.80 +	public Clanek getClanek() {
    1.81 +		return clanek;
    1.82 +	}
    1.83  }