001: /*
002: * Copyright (C) The DNA Group. All rights reserved.
003: *
004: * This software is published under the terms of the DNA
005: * Software License version 1.1, a copy of which has been included
006: * with this distribution in the LICENSE.txt file.
007: */
008: package org.codehaus.dna.impl;
009:
010: import org.codehaus.dna.Configuration;
011: import org.codehaus.dna.ConfigurationException;
012:
013: class MockConfiguration implements Configuration {
014: public String getName() {
015: return null;
016: }
017:
018: public String getPath() {
019: return null;
020: }
021:
022: public String getLocation() {
023: return null;
024: }
025:
026: public Configuration[] getChildren() {
027: return new Configuration[0];
028: }
029:
030: public Configuration[] getChildren(String name) {
031: return new Configuration[0];
032: }
033:
034: public Configuration getChild(String name) {
035: return null;
036: }
037:
038: public Configuration getChild(String name, boolean createChild) {
039: return null;
040: }
041:
042: public String getValue() throws ConfigurationException {
043: return null;
044: }
045:
046: public String getValue(String defaultValue) {
047: return null;
048: }
049:
050: public int getValueAsInteger() throws ConfigurationException {
051: return 0;
052: }
053:
054: public int getValueAsInteger(int defaultValue) {
055: return 0;
056: }
057:
058: public long getValueAsLong() throws ConfigurationException {
059: return 0;
060: }
061:
062: public long getValueAsLong(long defaultValue) {
063: return 0;
064: }
065:
066: public boolean getValueAsBoolean() throws ConfigurationException {
067: return false;
068: }
069:
070: public boolean getValueAsBoolean(boolean defaultValue) {
071: return false;
072: }
073:
074: public float getValueAsFloat() throws ConfigurationException {
075: return 0;
076: }
077:
078: public float getValueAsFloat(float defaultValue) {
079: return 0;
080: }
081:
082: public String[] getAttributeNames() {
083: return new String[0];
084: }
085:
086: public String getAttribute(String name)
087: throws ConfigurationException {
088: return null;
089: }
090:
091: public String getAttribute(String name, String defaultValue) {
092: return null;
093: }
094:
095: public int getAttributeAsInteger(String name)
096: throws ConfigurationException {
097: return 0;
098: }
099:
100: public int getAttributeAsInteger(String name, int defaultValue) {
101: return 0;
102: }
103:
104: public long getAttributeAsLong(String name)
105: throws ConfigurationException {
106: return 0;
107: }
108:
109: public long getAttributeAsLong(String name, long defaultValue) {
110: return 0;
111: }
112:
113: public boolean getAttributeAsBoolean(String name)
114: throws ConfigurationException {
115: return false;
116: }
117:
118: public boolean getAttributeAsBoolean(String name,
119: boolean defaultValue) {
120: return false;
121: }
122:
123: public float getAttributeAsFloat(String name)
124: throws ConfigurationException {
125: return 0;
126: }
127:
128: public float getAttributeAsFloat(String name, float defaultValue) {
129: return 0;
130: }
131: }
|