1 /*
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20 /*
21 * $Id: DOM.java,v 1.2.4.1 2005/08/31 10:18:49 pvedula Exp $
22 */
23
24 package com.sun.org.apache.xalan.internal.xsltc;
25
26 import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator;
27 import com.sun.org.apache.xml.internal.serializer.SerializationHandler;
28 import java.util.Map;
29 import org.w3c.dom.Node;
30 import org.w3c.dom.NodeList;
31
32 /**
33 * @author Jacek Ambroziak
34 * @author Santiago Pericas-Geertsen
35 */
36 public interface DOM {
37 public final static int FIRST_TYPE = 0;
38
39 public final static int NO_TYPE = -1;
40
41 // 0 is reserved for NodeIterator.END
42 public final static int NULL = 0;
85 public NodeList makeNodeList(int index);
86 public NodeList makeNodeList(DTMAxisIterator iter);
87 public String getLanguage(int node);
88 public int getSize();
89 public String getDocumentURI(int node);
90 public void setFilter(StripFilter filter);
91 public void setupMapping(String[] names, String[] urisArray, int[] typesArray, String[] namespaces);
92 public boolean isElement(final int node);
93 public boolean isAttribute(final int node);
94 public String lookupNamespace(int node, String prefix)
95 throws TransletException;
96 public int getNodeIdent(final int nodehandle);
97 public int getNodeHandle(final int nodeId);
98 public DOM getResultTreeFrag(int initialSize, int rtfType);
99 public DOM getResultTreeFrag(int initialSize, int rtfType, boolean addToDTMManager);
100 public SerializationHandler getOutputDomBuilder();
101 public int getNSType(int node);
102 public int getDocument();
103 public String getUnparsedEntityURI(String name);
104 public Map<String, Integer> getElementsWithIDs();
105 }
|
1 /*
2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xalan.internal.xsltc;
22
23 import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator;
24 import com.sun.org.apache.xml.internal.serializer.SerializationHandler;
25 import java.util.Map;
26 import org.w3c.dom.Node;
27 import org.w3c.dom.NodeList;
28
29 /**
30 * @author Jacek Ambroziak
31 * @author Santiago Pericas-Geertsen
32 */
33 public interface DOM {
34 public final static int FIRST_TYPE = 0;
35
36 public final static int NO_TYPE = -1;
37
38 // 0 is reserved for NodeIterator.END
39 public final static int NULL = 0;
82 public NodeList makeNodeList(int index);
83 public NodeList makeNodeList(DTMAxisIterator iter);
84 public String getLanguage(int node);
85 public int getSize();
86 public String getDocumentURI(int node);
87 public void setFilter(StripFilter filter);
88 public void setupMapping(String[] names, String[] urisArray, int[] typesArray, String[] namespaces);
89 public boolean isElement(final int node);
90 public boolean isAttribute(final int node);
91 public String lookupNamespace(int node, String prefix)
92 throws TransletException;
93 public int getNodeIdent(final int nodehandle);
94 public int getNodeHandle(final int nodeId);
95 public DOM getResultTreeFrag(int initialSize, int rtfType);
96 public DOM getResultTreeFrag(int initialSize, int rtfType, boolean addToDTMManager);
97 public SerializationHandler getOutputDomBuilder();
98 public int getNSType(int node);
99 public int getDocument();
100 public String getUnparsedEntityURI(String name);
101 public Map<String, Integer> getElementsWithIDs();
102 public void release();
103 }
|