KickJava   Java API By Example, From Geeks To Geeks.

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


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.XMLDTDContentModelHandler;
20
21 /**
22  * Defines a DTD content model source. In other words, any object that
23  * implements this interface is able to emit DTD content model "events"
24  * to the registered DTD content model handler. These events could be
25  * produced by parsing an XML document's internal or external subset,
26  * could be generated from some other source, or could be created
27  * programmatically. This interface does not say <em>how</em> the events
28  * are created, only that the implementor is able to emit them.
29  *
30  * @author Andy Clark, IBM
31  *
32  * @version $Id: XMLDTDContentModelSource.java,v 1.5 2004/02/24 23:15:56 mrglavas Exp $
33  */

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

40     /** Sets the DTD content model handler. */
41     public void setDTDContentModelHandler(XMLDTDContentModelHandler handler);
42
43     /** Returns the DTD content model handler. */
44     public XMLDTDContentModelHandler getDTDContentModelHandler( );
45
46 } // interface XMLDTDContentModelSource
47
Popular Tags