KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > phoenix > components > configuration > validator > DelegateEntry


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.phoenix.components.configuration.validator;
9
10 import org.apache.avalon.framework.configuration.Configuration;
11 import org.apache.avalon.phoenix.interfaces.ConfigurationValidator;
12
13 /**
14  * Configuration Validator entry for the DelegatingConfigurationValidator.
15  *
16  * @author <a HREF="mailto:proyal@apache.org">Peter Royal</a>
17  */

18 class DelegateEntry
19 {
20     private final String JavaDoc m_schemaType;
21
22     private final String JavaDoc m_className;
23
24     private final Configuration m_configuration;
25
26     private ConfigurationValidator m_validator;
27
28     public DelegateEntry( String JavaDoc schemaType, String JavaDoc className, Configuration configuration )
29     {
30         this.m_className = className;
31         this.m_configuration = configuration;
32         this.m_schemaType = schemaType;
33     }
34
35     public String JavaDoc getSchemaType()
36     {
37         return this.m_schemaType;
38     }
39
40     public Configuration getConfiguration()
41     {
42         return this.m_configuration;
43     }
44
45     public String JavaDoc getClassName()
46     {
47         return this.m_className;
48     }
49
50     public ConfigurationValidator getValidator()
51     {
52         return this.m_validator;
53     }
54
55     public void setValidator( ConfigurationValidator validator )
56     {
57         this.m_validator = validator;
58     }
59 }
60
Popular Tags