1
2
3
4
5
6
7
8 package org.codehaus.dna.impl;
9
10 import org.codehaus.dna.Configuration;
11 import org.codehaus.dna.ConfigurationException;
12
13 class MockConfiguration
14 implements Configuration
15 {
16 public String getName()
17 {
18 return null;
19 }
20
21 public String getPath()
22 {
23 return null;
24 }
25
26 public String getLocation()
27 {
28 return null;
29 }
30
31 public Configuration[] getChildren()
32 {
33 return new Configuration[ 0 ];
34 }
35
36 public Configuration[] getChildren( String name )
37 {
38 return new Configuration[ 0 ];
39 }
40
41 public Configuration getChild( String name )
42 {
43 return null;
44 }
45
46 public Configuration getChild( String name, boolean createChild )
47 {
48 return null;
49 }
50
51 public String getValue()
52 throws ConfigurationException
53 {
54 return null;
55 }
56
57 public String getValue( String defaultValue )
58 {
59 return null;
60 }
61
62 public int getValueAsInteger()
63 throws ConfigurationException
64 {
65 return 0;
66 }
67
68 public int getValueAsInteger( int defaultValue )
69 {
70 return 0;
71 }
72
73 public long getValueAsLong()
74 throws ConfigurationException
75 {
76 return 0;
77 }
78
79 public long getValueAsLong( long defaultValue )
80 {
81 return 0;
82 }
83
84 public boolean getValueAsBoolean()
85 throws ConfigurationException
86 {
87 return false;
88 }
89
90 public boolean getValueAsBoolean( boolean defaultValue )
91 {
92 return false;
93 }
94
95 public float getValueAsFloat()
96 throws ConfigurationException
97 {
98 return 0;
99 }
100
101 public float getValueAsFloat( float defaultValue )
102 {
103 return 0;
104 }
105
106 public String[] getAttributeNames()
107 {
108 return new String[ 0 ];
109 }
110
111 public String getAttribute( String name )
112 throws ConfigurationException
113 {
114 return null;
115 }
116
117 public String getAttribute( String name, String defaultValue )
118 {
119 return null;
120 }
121
122 public int getAttributeAsInteger( String name )
123 throws ConfigurationException
124 {
125 return 0;
126 }
127
128 public int getAttributeAsInteger( String name, int defaultValue )
129 {
130 return 0;
131 }
132
133 public long getAttributeAsLong( String name )
134 throws ConfigurationException
135 {
136 return 0;
137 }
138
139 public long getAttributeAsLong( String name, long defaultValue )
140 {
141 return 0;
142 }
143
144 public boolean getAttributeAsBoolean( String name )
145 throws ConfigurationException
146 {
147 return false;
148 }
149
150 public boolean getAttributeAsBoolean( String name, boolean defaultValue )
151 {
152 return false;
153 }
154
155 public float getAttributeAsFloat( String name )
156 throws ConfigurationException
157 {
158 return 0;
159 }
160
161 public float getAttributeAsFloat( String name, float defaultValue )
162 {
163 return 0;
164 }
165 }