1 17 18 19 package org.apache.catalina.deploy; 20 21 import java.io.Serializable ; 22 23 24 31 32 public class ContextEnvironment implements Serializable { 33 34 35 37 38 41 private String description = null; 42 43 public String getDescription() { 44 return (this.description); 45 } 46 47 public void setDescription(String description) { 48 this.description = description; 49 } 50 51 52 55 private String name = null; 56 57 public String getName() { 58 return (this.name); 59 } 60 61 public void setName(String name) { 62 this.name = name; 63 } 64 65 66 70 private boolean override = true; 71 72 public boolean getOverride() { 73 return (this.override); 74 } 75 76 public void setOverride(boolean override) { 77 this.override = override; 78 } 79 80 81 84 private String type = null; 85 86 public String getType() { 87 return (this.type); 88 } 89 90 public void setType(String type) { 91 this.type = type; 92 } 93 94 95 98 private String value = null; 99 100 public String getValue() { 101 return (this.value); 102 } 103 104 public void setValue(String value) { 105 this.value = value; 106 } 107 108 110 111 114 public String toString() { 115 116 StringBuffer sb = new StringBuffer ("ContextEnvironment["); 117 sb.append("name="); 118 sb.append(name); 119 if (description != null) { 120 sb.append(", description="); 121 sb.append(description); 122 } 123 if (type != null) { 124 sb.append(", type="); 125 sb.append(type); 126 } 127 if (value != null) { 128 sb.append(", value="); 129 sb.append(value); 130 } 131 sb.append(", override="); 132 sb.append(override); 133 sb.append("]"); 134 return (sb.toString()); 135 136 } 137 138 139 141 142 145 protected NamingResources resources = null; 146 147 public NamingResources getNamingResources() { 148 return (this.resources); 149 } 150 151 void setNamingResources(NamingResources resources) { 152 this.resources = resources; 153 } 154 155 156 } 157 | Popular Tags |