KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > xni > parser > XMLDTDSource


1 /*
2  * Copyright 2001, 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.xni.parser;
18
19 import org.apache.xerces.xni.XMLDTDHandler;
20
21 /**
22  * Defines a DTD source. In other words, any object that implements
23  * this interface is able to emit DTD "events" to the registered
24  * DTD handler. These events could be produced by parsing an XML
25  * document's internal or external subset, could be generated from
26  * some other source, or could be created programmatically. This
27  * interface does not say <em>how</em> the events are created, only
28  * that the implementor is able to emit them.
29  *
30  * @author Andy Clark, IBM
31  *
32  * @version $Id: XMLDTDSource.java,v 1.5 2004/02/24 23:15:56 mrglavas Exp $
33  */

34 public interface XMLDTDSource {
35
36     //
37
// XMLDTDSource methods
38
//
39

40     /** Sets the DTD handler. */
41     public void setDTDHandler(XMLDTDHandler handler);
42
43     /** Returns the DTD handler. */
44     public XMLDTDHandler getDTDHandler();
45
46 } // interface XMLDTDSource
47
Popular Tags