java/nekurak.net-lib/src/cz/frantovo/nekurak/xml/ClanekXML.java
changeset 83 6767606d6342
parent 75 18ed62105526
child 92 12268fc31114
     1.1 --- a/java/nekurak.net-lib/src/cz/frantovo/nekurak/xml/ClanekXML.java	Tue Mar 23 00:50:39 2010 +0100
     1.2 +++ b/java/nekurak.net-lib/src/cz/frantovo/nekurak/xml/ClanekXML.java	Tue Mar 23 15:09:19 2010 +0100
     1.3 @@ -9,7 +9,7 @@
     1.4   * Převaděč do XML
     1.5   * @author fiki
     1.6   */
     1.7 -@XmlRootElement
     1.8 +@XmlRootElement(name="clanek")
     1.9  public class ClanekXML {
    1.10  
    1.11      private Clanek clanek;
    1.12 @@ -26,7 +26,6 @@
    1.13  	return clanek.getId();
    1.14      }
    1.15  
    1.16 -    @XmlAttribute(name = "id", required = true)
    1.17      public void setId(int id) {
    1.18  	clanek.setId(id);
    1.19      }
    1.20 @@ -36,7 +35,6 @@
    1.21  	return clanek.getNadpis();
    1.22      }
    1.23  
    1.24 -    @XmlElement
    1.25      public void setNadpis(String nadpis) {
    1.26  	clanek.setNadpis(nadpis);
    1.27      }
    1.28 @@ -46,7 +44,6 @@
    1.29  	return clanek.getText();
    1.30      }
    1.31  
    1.32 -    @XmlElement
    1.33      public void setText(String text) {
    1.34  	clanek.setText(text);
    1.35      }