KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > phoenix > tools > configuration > DTDInfo


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.tools.configuration;
9
10 /**
11  * Holds information about a given DTD.
12  *
13  * @author <a HREF="mailto:peter at apache.org">Peter Donald</a>
14  * @version $Revision: 1.4 $ $Date: 2002/08/06 11:57:42 $
15  */

16 public class DTDInfo
17 {
18     /**
19      * The public identifier. Null if unknown.
20      */

21     private final String JavaDoc m_publicId;
22
23     /**
24      * The system identifier. Null if unknown.
25      */

26     private final String JavaDoc m_systemId;
27
28     /**
29      * The resource name, if a copy of the document is available.
30      */

31     private final String JavaDoc m_resource;
32
33     public DTDInfo( final String JavaDoc publicId,
34                     final String JavaDoc systemId,
35                     final String JavaDoc resource )
36     {
37         m_publicId = publicId;
38         m_systemId = systemId;
39         m_resource = resource;
40     }
41
42     public String JavaDoc getPublicId()
43     {
44         return m_publicId;
45     }
46
47     public String JavaDoc getSystemId()
48     {
49         return m_systemId;
50     }
51
52     public String JavaDoc getResource()
53     {
54         return m_resource;
55     }
56 }
57
Popular Tags