KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright (C) The Spice Group. All rights reserved.
3  *
4  * This software is published under the terms of the Spice
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.impl.SAXConfigurationHandler;
12
13 /**
14  *
15  * @author Peter Donald
16  * @version $Revision: 1.1 $ $Date: 2004/04/18 20:13:44 $
17  */

18 class MockSAXConfigurationHandler
19     extends SAXConfigurationHandler
20 {
21     public static final String JavaDoc REPLACEMENT = "INTERCEPT!";
22
23     protected String JavaDoc processAttributeText( Configuration configuration,
24                                            String JavaDoc name,
25                                            String JavaDoc value )
26     {
27         return REPLACEMENT;
28     }
29
30     protected String JavaDoc processValueText( Configuration configuration,
31                                        String JavaDoc value )
32     {
33         return REPLACEMENT;
34     }
35 }
36
Popular Tags