1 package cz.frantovo.nekurak.xml;
3 import cz.frantovo.nekurak.dto.Clanek;
4 import javax.xml.bind.annotation.XmlAttribute;
5 import javax.xml.bind.annotation.XmlElement;
6 import javax.xml.bind.annotation.XmlRootElement;
13 public class ClanekXML {
15 private Clanek clanek;
20 public ClanekXML(Clanek clanek) {
24 @XmlAttribute(name = "id", required = true)
26 return clanek.getId();
29 @XmlAttribute(name = "id", required = true)
30 public void setId(int id) {
35 public String getNadpis() {
36 return clanek.getNadpis();
40 public void setNadpis(String nadpis) {
41 clanek.setNadpis(nadpis);
45 public String getText() {
46 return clanek.getText();
50 public void setText(String text) {