KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xalan > xsltc > DOMCache


1 /*
2  * Copyright 2001-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  * $Id: DOMCache.java,v 1.8 2004/02/16 20:54:58 minchau Exp $
18  */

19
20 package org.apache.xalan.xsltc;
21
22
23 /**
24  * @author Morten Jorgensen
25  */

26 public interface DOMCache {
27
28     /**
29      * This method is responsible for:
30      *
31      * (1) building the DOMImpl tree
32      *
33      * Parser _parser = new Parser();
34      * DOMImpl _dom = new DOMImpl();
35      * _parser.setDocumentHandler(_dom.getBuilder());
36      * _parser.setDTDHandler(_dom.getBuilder());
37      * _parser.parse(uri);
38      *
39      * (2) giving the translet an early opportunity to extract anything from
40      * the DOMImpl that it would like
41      *
42      * translet.documentPrepass(_dom);
43      *
44      * (3) setting the document URI:
45      *
46      * _dom.setDocumentURI(uri);
47      *
48      * @param baseURI The base URI used by the document call.
49      * @param href The href argument passed to the document function.
50      * @param translet A reference to the translet requesting the document
51      */

52     public DOM retrieveDocument(String JavaDoc baseURI, String JavaDoc href, Translet translet);
53
54 }
55
Popular Tags