1 package cz.frantovo.nekurak.xml;
3 import cz.frantovo.nekurak.dto.Clanek;
4 import javax.xml.bind.annotation.XmlElement;
5 import javax.xml.bind.annotation.XmlRootElement;
11 @XmlRootElement(name = "clanek")
12 public class ClanekXML {
14 private Clanek clanek;
17 clanek = new Clanek();
20 public ClanekXML(Clanek clanek) {
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) {
51 public Clanek getClanek() {