1 16 package org.apache.cocoon.components; 17 18 import org.apache.avalon.framework.configuration.Configuration; 19 import org.apache.avalon.framework.configuration.ConfigurationException; 20 21 29 public final class ChainedConfiguration implements Configuration { 30 31 private Configuration wrappedConfiguration; 32 33 private ChainedConfiguration parentConfiguration; 34 35 38 public ChainedConfiguration(Configuration wrapped, 39 ChainedConfiguration parent) { 40 this.wrappedConfiguration = wrapped; 41 this.parentConfiguration = parent; 42 } 43 44 48 public ChainedConfiguration getParent() { 49 return this.parentConfiguration; 50 } 51 52 55 public String getAttribute(String arg0, String arg1) { 56 return this.wrappedConfiguration.getAttribute(arg0, arg1); 57 } 58 59 62 public String getAttribute(String arg0) throws ConfigurationException { 63 return this.wrappedConfiguration.getAttribute(arg0); 64 } 65 66 69 public boolean getAttributeAsBoolean(String arg0, boolean arg1) { 70 return this.wrappedConfiguration.getAttributeAsBoolean(arg0, arg1); 71 } 72 73 76 public boolean getAttributeAsBoolean(String arg0) 77 throws ConfigurationException { 78 return this.wrappedConfiguration.getAttributeAsBoolean(arg0); 79 } 80 81 84 public float getAttributeAsFloat(String arg0, float arg1) { 85 return this.wrappedConfiguration.getAttributeAsFloat(arg0, arg1); 86 } 87 88 91 public float getAttributeAsFloat(String arg0) 92 throws ConfigurationException { 93 return this.wrappedConfiguration.getAttributeAsFloat(arg0); 94 } 95 96 99 public int getAttributeAsInteger(String arg0, int arg1) { 100 return this.wrappedConfiguration.getAttributeAsInteger(arg0, arg1); 101 } 102 103 106 public int getAttributeAsInteger(String arg0) 107 throws ConfigurationException { 108 return this.wrappedConfiguration.getAttributeAsInteger(arg0); 109 } 110 111 114 public long getAttributeAsLong(String arg0, long arg1) { 115 return this.wrappedConfiguration.getAttributeAsLong(arg0, arg1); 116 } 117 118 121 public long getAttributeAsLong(String arg0) throws ConfigurationException { 122 return this.wrappedConfiguration.getAttributeAsLong(arg0); 123 } 124 125 128 public String [] getAttributeNames() { 129 return this.wrappedConfiguration.getAttributeNames(); 130 } 131 132 135 public Configuration getChild(String arg0, boolean arg1) { 136 return this.wrappedConfiguration.getChild(arg0, arg1); 137 } 138 139 142 public Configuration getChild(String arg0) { 143 return this.wrappedConfiguration.getChild(arg0); 144 } 145 146 149 public Configuration[] getChildren() { 150 return this.wrappedConfiguration.getChildren(); 151 } 152 153 156 public Configuration[] getChildren(String arg0) { 157 return this.wrappedConfiguration.getChildren(arg0); 158 } 159 160 163 public String getLocation() { 164 return this.wrappedConfiguration.getLocation(); 165 } 166 167 170 public String getName() { 171 return this.wrappedConfiguration.getName(); 172 } 173 174 177 public String getNamespace() throws ConfigurationException { 178 return this.wrappedConfiguration.getNamespace(); 179 } 180 181 184 public String getValue() throws ConfigurationException { 185 return this.wrappedConfiguration.getValue(); 186 } 187 188 191 public String getValue(String arg0) { 192 return this.wrappedConfiguration.getValue(arg0); 193 } 194 195 198 public boolean getValueAsBoolean() throws ConfigurationException { 199 return this.wrappedConfiguration.getValueAsBoolean(); 200 } 201 202 205 public boolean getValueAsBoolean(boolean arg0) { 206 return this.wrappedConfiguration.getValueAsBoolean(arg0); 207 } 208 209 212 public float getValueAsFloat() throws ConfigurationException { 213 return this.wrappedConfiguration.getValueAsFloat(); 214 } 215 216 219 public float getValueAsFloat(float arg0) { 220 return this.wrappedConfiguration.getValueAsFloat(arg0); 221 } 222 223 226 public int getValueAsInteger() throws ConfigurationException { 227 return this.wrappedConfiguration.getValueAsInteger(); 228 } 229 230 233 public int getValueAsInteger(int arg0) { 234 return this.wrappedConfiguration.getValueAsInteger(arg0); 235 } 236 237 240 public long getValueAsLong() throws ConfigurationException { 241 return this.wrappedConfiguration.getValueAsLong(); 242 } 243 244 247 public long getValueAsLong(long arg0) { 248 return this.wrappedConfiguration.getValueAsLong(arg0); 249 } 250 251 public double getAttributeAsDouble(String name) throws ConfigurationException { 252 return this.wrappedConfiguration.getAttributeAsDouble(name); 253 } 254 255 public double getValueAsDouble() throws ConfigurationException { 256 return this.wrappedConfiguration.getValueAsDouble(); 257 } 258 259 public double getValueAsDouble(double value) { 260 return this.wrappedConfiguration.getValueAsDouble(value); 261 } 262 263 public double getAttributeAsDouble(String name, double value) { 264 return this.wrappedConfiguration.getAttributeAsDouble(name, value); 265 } 266 } 267 | Popular Tags |