1 16 19 20 package org.apache.xalan.xsltc; 21 22 import org.apache.xalan.xsltc.runtime.Hashtable; 23 import org.apache.xml.dtm.DTMAxisIterator; 24 25 import org.w3c.dom.Node ; 26 import org.w3c.dom.NodeList ; 27 28 import org.apache.xml.serializer.SerializationHandler; 29 30 34 public interface DOM { 35 public final static int FIRST_TYPE = 0; 36 37 public final static int NO_TYPE = -1; 38 39 public final static int NULL = 0; 41 42 public final static int RETURN_CURRENT = 0; 44 public final static int RETURN_PARENT = 1; 45 46 public final static int SIMPLE_RTF = 0; 48 public final static int ADAPTIVE_RTF = 1; 49 public final static int TREE_RTF = 2; 50 51 52 public DTMAxisIterator getIterator(); 53 public String getStringValue(); 54 55 public DTMAxisIterator getChildren(final int node); 56 public DTMAxisIterator getTypedChildren(final int type); 57 public DTMAxisIterator getAxisIterator(final int axis); 58 public DTMAxisIterator getTypedAxisIterator(final int axis, final int type); 59 public DTMAxisIterator getNthDescendant(int node, int n, boolean includeself); 60 public DTMAxisIterator getNamespaceAxisIterator(final int axis, final int ns); 61 public DTMAxisIterator getNodeValueIterator(DTMAxisIterator iter, int returnType, 62 String value, boolean op); 63 public DTMAxisIterator orderNodes(DTMAxisIterator source, int node); 64 public String getNodeName(final int node); 65 public String getNodeNameX(final int node); 66 public String getNamespaceName(final int node); 67 public int getExpandedTypeID(final int node); 68 public int getNamespaceType(final int node); 69 public int getParent(final int node); 70 public int getAttributeNode(final int gType, final int element); 71 public String getStringValueX(final int node); 72 public void copy(final int node, SerializationHandler handler) 73 throws TransletException; 74 public void copy(DTMAxisIterator nodes, SerializationHandler handler) 75 throws TransletException; 76 public String shallowCopy(final int node, SerializationHandler handler) 77 throws TransletException; 78 public boolean lessThan(final int node1, final int node2); 79 public void characters(final int textNode, SerializationHandler handler) 80 throws TransletException; 81 public Node makeNode(int index); 82 public Node makeNode(DTMAxisIterator iter); 83 public NodeList makeNodeList(int index); 84 public NodeList makeNodeList(DTMAxisIterator iter); 85 public String getLanguage(int node); 86 public int getSize(); 87 public String getDocumentURI(int node); 88 public void setFilter(StripFilter filter); 89 public void setupMapping(String [] names, String [] urisArray, int[] typesArray, String [] namespaces); 90 public boolean isElement(final int node); 91 public boolean isAttribute(final int node); 92 public String lookupNamespace(int node, String prefix) 93 throws TransletException; 94 public int getNodeIdent(final int nodehandle); 95 public int getNodeHandle(final int nodeId); 96 public DOM getResultTreeFrag(int initialSize, int rtfType); 97 public DOM getResultTreeFrag(int initialSize, int rtfType, boolean addToDTMManager); 98 public SerializationHandler getOutputDomBuilder(); 99 public int getNSType(int node); 100 public int getDocument(); 101 public String getUnparsedEntityURI(String name); 102 public Hashtable getElementsWithIDs(); 103 } 104 | Popular Tags |