fork download
  1. import javax.xml.bind.annotation.XmlAccessType;
  2. import javax.xml.bind.annotation.XmlAccessorType;
  3. import javax.xml.bind.annotation.XmlAttribute;
  4. import javax.xml.bind.annotation.XmlType;
  5.  
  6. /**
  7.  * @author Arktos
  8.  *
  9.  */
  10.  
  11. @XmlAccessorType(XmlAccessType.FIELD)
  12. @XmlType(name = "constant", propOrder = { "key", "value", "description", "type" })
  13. public class Constant {
  14.  
  15. @XmlAttribute(name = "key")
  16. private String key;
  17. @XmlAttribute(name = "value")
  18. private String value;
  19. @XmlAttribute(name = "description")
  20. private String description;
  21. @XmlAttribute(name = "type")
  22. private String type;
  23. public String getKey() {
  24. return key;
  25. }
  26. public void setKey(String key) {
  27. this.key = key;
  28. }
  29. public String getValue() {
  30. return value;
  31. }
  32. public void setValue(String value) {
  33. this.value = value;
  34. }
  35. public String getDescription() {
  36. return description;
  37. }
  38. public void setDescription(String description) {
  39. this.description = description;
  40. }
  41. public String getType() {
  42. return type;
  43. }
  44. public void setType(String type) {
  45. this.type = type;
  46. }
  47.  
  48. }
  49.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:13: class Constant is public, should be declared in a file named Constant.java
public class Constant {
       ^
1 error
stdout
Standard output is empty