KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xalan > internal > xsltc > DOMEnhancedForDTM


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

19 package com.sun.org.apache.xalan.internal.xsltc;
20
21 /**
22  * Interface for SAXImpl which adds methods used at run-time, over and above
23  * those provided by the XSLTC DOM interface. An attempt to avoid the current
24  * "Is the DTM a DOM, if so is it a SAXImpl, . . .
25  * which was producing some ugly replicated code
26  * and introducing bugs where that multipathing had not been
27  * done. This makes it easier to provide other DOM/DOMEnhancedForDTM
28  * implementations, rather than hard-wiring XSLTC to SAXImpl.
29  *
30  * @author Joseph Kesselman
31  *
32  */

33 public interface DOMEnhancedForDTM extends DOM {
34     public short[] getMapping(String JavaDoc[] names, String JavaDoc[] uris, int[] types);
35     public int[] getReverseMapping(String JavaDoc[] names, String JavaDoc[] uris, int[] types);
36     public short[] getNamespaceMapping(String JavaDoc[] namespaces);
37     public short[] getReverseNamespaceMapping(String JavaDoc[] namespaces);
38     public String JavaDoc getDocumentURI();
39     public void setDocumentURI(String JavaDoc uri);
40     public int getExpandedTypeID2(int nodeHandle);
41     public boolean hasDOMSource();
42     public int getElementById(String JavaDoc idString);
43 }
44
Popular Tags