1 22 package org.jboss.services.deployment.metadata; 23 24 import java.io.Serializable ; 25 26 33 public class PropertyInfo 34 implements Serializable 35 { 36 37 private static final long serialVersionUID = -1246926015774516936L; 38 39 private String name; 40 private String type; 41 private boolean optional; 42 private String description; 43 private Object defaultValue; 44 45 public PropertyInfo() 46 { 47 } 49 50 public PropertyInfo(PropertyInfo that) 51 { 52 this.name = that.name; 53 this.type = that.type; 54 this.optional = that.optional; 55 this.description = that.description; 56 this.defaultValue = that.defaultValue; } 58 59 public PropertyInfo(String name, String type, boolean optional, String description, Object defaultValue) 60 { 61 this.name = name; 62 this.type = type; 63 this.optional = optional; 64 this.description = description; 65 this.defaultValue = defaultValue; 66 } 67 68 public Object getDefaultValue() 69 { 70 return defaultValue; 71 } 72 73 public void setDefaultValue(Object defaultValue) 74 { 75 this.defaultValue = defaultValue; 76 } 77 78 public String getDescription() 79 { 80 return description; 81 } 82 83 public void setDescription(String description) 84 { 85 this.description = description; 86 } 87 88 public String getName() 89 { 90 return name; 91 } 92 93 public void setName(String name) 94 { 95 this.name = name; 96 } 97 98 public boolean isOptional() 99 { 100 return optional; 101 } 102 103 public void setOptional(boolean optional) 104 { 105 this.optional = optional; 106 } 107 108 public String getType() 109 { 110 return type; 111 } 112 113 public void setType(String type) 114 { 115 this.type = type; 116 } 117 118 public String toString() 119 { 120 StringBuffer sbuf = new StringBuffer (256); 121 122 sbuf.append('[') 123 .append("name=").append(name) 124 .append(", type=").append(type) 125 .append(", optional=").append(optional) 126 .append(", description=").append(description) 127 .append(", defaultValue=").append(defaultValue) 128 .append(']'); 129 130 return sbuf.toString(); 131 } 132 } 133 | Popular Tags |