1 4 package org.oddjob.doclet; 5 6 12 public class Property { 13 14 15 private final String name; 16 17 18 private String description; 19 20 21 private String required; 22 23 28 public Property(String name) { 29 if (name == null) { 30 throw new IllegalArgumentException ("name can never be null"); 31 } 32 this.name = name; 33 } 34 35 40 public String getName() { 41 return name; 42 } 43 44 49 public void setDescription(String description) { 50 this.description = description; 51 } 52 53 58 public String getDescription() { 59 return description; 60 } 61 62 67 public void setRequired(String required) { 68 this.required = required; 69 } 70 71 76 public String getRequired() { 77 return required; 78 } 79 } 80 81 | Popular Tags |