Home | History | Annotate | Download | only in sax2dtm

Lines Matching defs:dtm

21 package org.apache.xml.dtm.ref.sax2dtm;
28 import org.apache.xml.dtm.*;
29 import org.apache.xml.dtm.ref.*;
45 * This class implements a DTM that tends to be optimized more for speed than
77 * pending reduction in number of RTF DTMs. Now that we're sharing a DTM
111 transient protected int m_textType = DTM.TEXT_NODE;
117 transient protected int m_coalescedTextType = DTM.TEXT_NODE;
209 * @param mgr The DTMManager who owns this DTM.
210 * @param source the JAXP 1.1 Source object for this DTM.
211 * @param dtmIdentity The DTM identity ID for this DTM.
212 * @param whiteSpaceFilter The white space filter for this DTM, which may
232 * @param mgr The DTMManager who owns this DTM.
233 * @param source the JAXP 1.1 Source object for this DTM.
234 * @param dtmIdentity The DTM identity ID for this DTM.
235 * @param whiteSpaceFilter The white space filter for this DTM, which may
240 * @param blocksize The block size of the DTM.
242 * @param newNameTable true if we want to use a new ExpandedNameTable for this DTM.
307 * @return The data or qualified name, or DTM.NULL.
357 * Bind a IncrementalSAXSource to this DTM. If we discover we need nodes
394 * DTM model.
399 * "this" if the DTM object has a built-in SAX ContentHandler,
413 * Return this DTM's lexical handler.
418 * "this" if the DTM object has a built-in SAX ContentHandler,
432 * Return this DTM's EntityResolver.
442 * Return this DTM's DTDHandler.
452 * Return this DTM's ErrorHandler.
462 * Return this DTM's DeclHandler.
506 if (identity == DTM.NULL)
526 if (DTM.NULL != firstChild)
550 } while (DTM.NULL != identity && (_parent(identity) >= startNode));
560 else if(type != DTM.ELEMENT_NODE)
604 if (type == DTM.NAMESPACE_NODE)
696 /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */
707 * @return identity+1, or DTM.NULL.
717 return DTM.NULL;
829 * @param type oneof DTM.XXX_NODE.
835 return (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type);
857 * @param type raw type ID, one of DTM.XXX_NODE.
874 // Have we overflowed a DTM Identity's addressing range?
880 m_firstch.addElement(canHaveFirstChild ? NOTPROCESSED : DTM.NULL);
890 if (DTM.NULL != previousSibling) {
904 case DTM.NAMESPACE_NODE:
907 case DTM.ATTRIBUTE_NODE:
910 if (DTM.NULL == previousSibling && DTM.NULL != parentIndex) {
920 * Get a new DTM ID beginning at the specified node index.
921 * @param nodeIndex The node identity at which the new DTM ID will begin
941 error(XMLMessages.createXMLMessage(XMLErrorResources.ER_NO_DTMIDS_AVAIL, null));//"No more DTM IDs are available";
946 * Migrate a DTM built with an old DTMManager to a new DTMManager.
947 * After the migration, the new DTMManager will treat the DTM as
949 * This is used to support DTM sharing between multiple transformations.
956 // register the DTM with the new manager.
971 * as every node is added to the DTM or for no node.
1013 else if (DTM.ELEMENT_NODE == type || DTM.DOCUMENT_FRAGMENT_NODE == type
1014 || DTM.DOCUMENT_NODE == type)
1143 if (DTM.ELEMENT_NODE == type)
1156 else if (DTM.ATTRIBUTE_NODE == type)
1182 * <code>nodeName</code>) or <code>DTM.NULL</code> if there is no such
1189 for (int attrH = getFirstAttribute(nodeHandle); DTM.NULL != attrH;
1202 return DTM.NULL;
1216 /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */
1252 if(identity==DTM.NULL) // Separate lines because I wanted to breakpoint it
1253 type = DTM.NULL;
1269 if (DTM.NULL != firstChild)
1293 } while (DTM.NULL != identity && (_parent(identity) >= startNode));
1300 else if(type != DTM.ELEMENT_NODE)
1327 if(identity==DTM.NULL) // Separate lines because I wanted to breakpoint it
1328 type = DTM.NULL;
1346 * <code>DTM.NULL</code>. Behavior is not defined if more than one element
1349 * information available to the DTM implementation.
1351 * not are expected to return <code>DTM.NULL</code>.
1380 return DTM.NULL;
1532 int exName = m_expandedNameTable.getExpandedTypeID(DTM.TEXT_NODE);
1545 m_textType = m_coalescedTextType = DTM.TEXT_NODE;
1693 int doc = addNode(DTM.DOCUMENT_NODE,
1694 m_expandedNameTable.getExpandedTypeID(DTM.DOCUMENT_NODE),
1695 DTM.NULL, DTM.NULL, 0, true);
1698 m_previous = DTM.NULL;
1722 if (DTM.NULL != m_previous)
1723 m_nextsib.setElementAt(DTM.NULL,m_previous);
1878 int exName = m_expandedNameTable.getExpandedTypeID(uri, localName, DTM.ELEMENT_NODE);
1883 int elemNode = addNode(DTM.ELEMENT_NODE, exName,
1894 int prev = DTM.NULL;
1901 exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);
1903 prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,
1917 exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);
1921 prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,
1946 nodeType = DTM.NAMESPACE_NODE;
1950 nodeType = DTM.ATTRIBUTE_NODE;
1982 if (DTM.NULL != prev)
1983 m_nextsib.setElementAt(DTM.NULL,prev);
1995 m_previous = DTM.NULL;
2043 // If lastNode is still DTM.NULL, this element had no children
2044 if (DTM.NULL == lastNode)
2045 m_firstch.setElementAt(DTM.NULL,m_previous);
2047 m_nextsib.setElementAt(DTM.NULL,lastNode);
2079 else if (m_textType == DTM.TEXT_NODE)
2081 m_coalescedTextType = DTM.TEXT_NODE;
2136 DTM.PROCESSING_INSTRUCTION_NODE);
2139 m_previous = addNode(DTM.PROCESSING_INSTRUCTION_NODE, exName,
2419 m_textType = DTM.CDATA_SECTION_NODE;
2430 m_textType = DTM.TEXT_NODE;
2453 int exName = m_expandedNameTable.getExpandedTypeID(DTM.COMMENT_NODE);
2461 m_previous = addNode(DTM.COMMENT_NODE, exName,
2466 * Set a run time property for this DTM instance.