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;
12 @XmlRootElement(name="clanek")
13 public class ClanekXML {
15 private Clanek clanek;
20 public ClanekXML(Clanek clanek) {
24 @XmlAttribute(name = "id", required = true)
26 return clanek.getId();
29 public void setId(int id) {
34 public String getNadpis() {
35 return clanek.getNadpis();
38 public void setNadpis(String nadpis) {
39 clanek.setNadpis(nadpis);
43 public String getText() {
44 return clanek.getText();
47 public void setText(String text) {