KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > dna > impl > MockConfiguration


1 /*
2  * Copyright (C) The DNA Group. All rights reserved.
3  *
4  * This software is published under the terms of the DNA
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
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 JavaDoc getName()
17     {
18         return null;
19     }
20
21     public String JavaDoc getPath()
22     {
23         return null;
24     }
25
26     public String JavaDoc getLocation()
27     {
28         return null;
29     }
30
31     public Configuration[] getChildren()
32     {
33         return new Configuration[ 0 ];
34     }
35
36     public Configuration[] getChildren( String JavaDoc name )
37     {
38         return new Configuration[ 0 ];
39     }
40
41     public Configuration getChild( String JavaDoc name )
42     {
43         return null;
44     }
45
46     public Configuration getChild( String JavaDoc name, boolean createChild )
47     {
48         return null;
49     }
50
51     public String JavaDoc getValue()
52         throws ConfigurationException
53     {
54         return null;
55     }
56
57     public String JavaDoc getValue( String JavaDoc 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 JavaDoc[] getAttributeNames()
107     {
108         return new String JavaDoc[ 0 ];
109     }
110
111     public String JavaDoc getAttribute( String JavaDoc name )
112         throws ConfigurationException
113     {
114         return null;
115     }
116
117     public String JavaDoc getAttribute( String JavaDoc name, String JavaDoc defaultValue )
118     {
119         return null;
120     }
121
122     public int getAttributeAsInteger( String JavaDoc name )
123         throws ConfigurationException
124     {
125         return 0;
126     }
127
128     public int getAttributeAsInteger( String JavaDoc name, int defaultValue )
129     {
130         return 0;
131     }
132
133     public long getAttributeAsLong( String JavaDoc name )
134         throws ConfigurationException
135     {
136         return 0;
137     }
138
139     public long getAttributeAsLong( String JavaDoc name, long defaultValue )
140     {
141         return 0;
142     }
143
144     public boolean getAttributeAsBoolean( String JavaDoc name )
145         throws ConfigurationException
146     {
147         return false;
148     }
149
150     public boolean getAttributeAsBoolean( String JavaDoc name, boolean defaultValue )
151     {
152         return false;
153     }
154
155     public float getAttributeAsFloat( String JavaDoc name )
156         throws ConfigurationException
157     {
158         return 0;
159     }
160
161     public float getAttributeAsFloat( String JavaDoc name, float defaultValue )
162     {
163         return 0;
164     }
165 }
166
Popular Tags