01: /*
02: * Copyright 1999-2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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 org.apache.xalan.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[] names, String[] uris, int[] types);
35:
36: public int[] getReverseMapping(String[] names, String[] uris,
37: int[] types);
38:
39: public short[] getNamespaceMapping(String[] namespaces);
40:
41: public short[] getReverseNamespaceMapping(String[] namespaces);
42:
43: public String getDocumentURI();
44:
45: public void setDocumentURI(String uri);
46:
47: public int getExpandedTypeID2(int nodeHandle);
48:
49: public boolean hasDOMSource();
50:
51: public int getElementById(String idString);
52: }
|