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. * Interface for SAXImpl which adds methods used at run-time, over and above
  22. * those provided by the XSLTC DOM interface. An attempt to avoid the current
  23. * "Is the DTM a DOM, if so is it a SAXImpl, . . .
  24. * which was producing some ugly replicated code
  25. * and introducing bugs where that multipathing had not been
  26. * done. This makes it easier to provide other DOM/DOMEnhancedForDTM
  27. * implementations, rather than hard-wiring XSLTC to SAXImpl.
  28. *
  29. * @author Joseph Kesselman
  30. *
  31. */
  32. public interface DOMEnhancedForDTM extends DOM {
  33. public short[] getMapping(String[] names, String[] uris, int[] types);
  34. public int[] getReverseMapping(String[] names, String[] uris, int[] types);
  35. public short[] getNamespaceMapping(String[] namespaces);
  36. public short[] getReverseNamespaceMapping(String[] namespaces);
  37. public String getDocumentURI();
  38. public void setDocumentURI(String uri);
  39. public int getExpandedTypeID2(int nodeHandle);
  40. public boolean hasDOMSource();
  41. public int getElementById(String idString);
  42. }