1 package cz.frantovo.langtable;
4 import javax.xml.bind.annotation.XmlElement;
5 import javax.xml.bind.annotation.XmlElementWrapper;
6 import javax.xml.bind.annotation.XmlRootElement;
10 * @author Ing. František Kučera (frantovo.cz)
13 public class Keyboards {
15 private List<Keyboard> keyboards;
17 @XmlElement(name = "keyboard")
18 public List<Keyboard> getKeyboards() {
22 public void setKeyboards(List<Keyboard> keyboards) {
23 this.keyboards = keyboards;
26 public static class Keyboard {
29 private String description;
30 private String comment;
31 private boolean ascii;
32 private List<Language> languages;
33 private List<Territory> territories;
35 @XmlElement(name = "keyboardId")
36 public String getId() {
40 public void setId(String id) {
45 public String getDescription() {
49 public void setDescription(String description) {
50 this.description = description;
54 public String getComment() {
58 public void setComment(String comment) {
59 this.comment = comment;
63 public boolean isAscii() {
67 public void setAscii(boolean ascii) {
71 @XmlElement(name = "language")
72 @XmlElementWrapper(name = "languages")
73 public List<Language> getLanguages() {
77 public void setLanguages(List<Language> languages) {
78 this.languages = languages;
81 @XmlElement(name = "territory")
82 @XmlElementWrapper(name = "territories")
83 public List<Territory> getTerritories() {
87 public void setTerritories(List<Territory> territories) {
88 this.territories = territories;
92 public static class Language {
97 @XmlElement(name = "languageId")
98 public String getId() {
102 public void setId(String id) {
107 public int getRank() {
111 public void setRank(int rank) {
116 public String toString() {
117 return getId() + " (" + getRank() + ")";
121 public static class Territory {
126 @XmlElement(name = "territoryId")
127 public String getId() {
131 public void setId(String id) {
136 public int getRank() {
140 public void setRank(int rank) {
145 public String toString() {
146 return getId() + " (" + getRank() + ")";