Home | History | Annotate | Download | only in sax2dtm

Lines Matching refs:dtm

21 package org.apache.xml.dtm.ref.sax2dtm;
23 import org.apache.xml.dtm.*;
24 import org.apache.xml.dtm.ref.*;
42 * access to the DTM model. Some nested iterators in DTMDefaultBaseIterators
47 * use it in incremental situation. To reduce the overhead of pulling data from the DTM model,
94 _currentNode = (node == DTM.NULL) ? DTM.NULL
130 private int _nodeType = DTM.NULL;
149 if (node != DTM.NULL)
152 _currentNode = DTM.NULL;
188 return DTM.NULL;
195 else if (_nodeType >= DTM.NTYPES) {
208 return DTM.NULL;
251 _currentNode = (node == DTM.NULL)
252 ? DTM.NULL
269 if (node == DTM.NULL)
270 return DTM.NULL;
274 if (nodeType != DTM.ELEMENT_NODE) {
275 while (node != DTM.NULL && _exptype2(node) != nodeType) {
280 // need to compare the expType with DTM.NTYPES. A child node of
283 // type greater than or equal to DTM.NTYPES.
286 while (node != DTM.NULL) {
288 if (eType >= DTM.NTYPES)
295 if (node == DTM.NULL) {
296 _currentNode = DTM.NULL;
297 return DTM.NULL;
311 return DTM.NULL;
317 if (nodeType != DTM.ELEMENT_NODE) {
318 while (node != DTM.NULL) {
330 while (node != DTM.NULL) {
331 if (_exptype2(node) >= DTM.NTYPES) {
380 if (_nodeType >= DTM.NTYPES) {
386 if (expType < DTM.NTYPES) {
439 _currentNode = (_currentNode == DTM.NULL) ? DTM.NULL
473 if (_currentNode == DTM.NULL) {
474 return DTM.NULL;
480 if (nodeType != DTM.ELEMENT_NODE) {
481 while ((node = _nextsib2(node)) != DTM.NULL && _exptype2(node) != nodeType) {}
484 while ((node = _nextsib2(node)) != DTM.NULL && _exptype2(node) < DTM.NTYPES) {}
489 return (node == DTM.NULL)
490 ? DTM.NULL
684 if (_currentNode == _startNodeID || _currentNode == DTM.NULL)
732 if (nodeType != DTM.ELEMENT_NODE) {
738 while (node != NULL && node != startNodeID && _exptype2(node) < DTM.NTYPES) {
743 if (node == DTM.NULL || node == startNodeID) {
768 if (nodeType != DTM.ELEMENT_NODE) {
778 if (_exptype2(node) >= DTM.NTYPES) {
871 if (_type2(node) == DTM.ATTRIBUTE_NODE)
986 if (nodeType >= DTM.NTYPES) {
1023 if (expType < DTM.NTYPES) {
1079 if ((DTM.ATTRIBUTE_NODE == type) || (DTM.NAMESPACE_NODE == type))
1175 if (nodeType >= DTM.NTYPES) {
1188 while (node != DTM.NULL && _exptype2(node) != nodeType);
1203 while (node != DTM.NULL
1208 return (node == DTM.NULL ? DTM.NULL :returnNode(makeNodeHandle(node)));
1299 if (nodeID == DTM.NULL) {
1300 _currentNode = DTM.NULL;
1332 : DTM.NULL;
1352 : DTM.NULL;
1370 : DTM.NULL;
1382 : DTM.NULL;
1426 if (nodeID == DTM.NULL) {
1427 _currentNode = DTM.NULL;
1441 if (nodeType >= DTM.NTYPES) {
1461 if ((eType < DTM.NTYPES && eType == nodeType)
1462 || (eType >= DTM.NTYPES
1479 : DTM.NULL;
1496 return DTM.NULL;
1670 if (nodeType != DTM.ELEMENT_NODE)
1698 } while (expType < DTM.NTYPES
1699 || m_extendedTypes[expType].getNodeType() != DTM.ELEMENT_NODE);
1713 while (expType < DTM.NTYPES
1714 || m_extendedTypes[expType].getNodeType() != DTM.ELEMENT_NODE);
1752 return DTM.NULL;
1756 if (_nodeType >= DTM.NTYPES) {
1899 * DTM building. _exptype2 is used after the document is fully built.
1907 * DTM base accessor interfaces
1910 * very important to the DTM performance. To have the best performace,
1920 * <code>DTM.NULL</code>
1936 * <code>DTM.NULL</code>
1952 * <code>DTM.NULL</code>
1968 * <code>DTM.NULL</code>
1984 * <code>DTM.NULL</code>
2024 * END of DTM base accessor interfaces
2088 int exName = m_expandedNameTable.getExpandedTypeID(uri, localName, DTM.ELEMENT_NODE);
2093 int elemNode = addNode(DTM.ELEMENT_NODE, exName,
2110 exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);
2113 addNode(DTM.NAMESPACE_NODE, exName, elemNode,
2114 DTM.NULL, val, false);
2127 exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);
2132 addNode(DTM.NAMESPACE_NODE, exName, elemNode, DTM.NULL, val, false);
2155 nodeType = DTM.NAMESPACE_NODE;
2159 nodeType = DTM.ATTRIBUTE_NODE;
2187 addNode(nodeType, exName, elemNode, DTM.NULL, val,
2201 m_previous = DTM.NULL;
2271 m_previous = addNode(DTM.COMMENT_NODE, DTM.COMMENT_NODE,
2285 int doc = addNode(DTM.DOCUMENT_NODE,
2286 DTM.DOCUMENT_NODE,
2287 DTM.NULL, DTM.NULL, 0, true);
2290 m_previous = DTM.NULL;
2324 * @param type raw type ID, one of DTM.XXX_NODE.
2341 // Have we overflowed a DTM Identity's addressing range?
2349 m_firstch.addElement(DTM.NULL);
2350 m_nextsib.addElement(DTM.NULL);
2369 case DTM.NAMESPACE_NODE:
2372 case DTM.ATTRIBUTE_NODE:
2375 if (DTM.NULL != previousSibling) {
2378 else if (DTM.NULL != parentIndex) {
2415 m_previous = addNode(m_coalescedTextType, DTM.TEXT_NODE,
2424 m_previous = addNode(m_coalescedTextType, DTM.TEXT_NODE,
2435 m_textType = m_coalescedTextType = DTM.TEXT_NODE;
2462 m_previous = addNode(DTM.PROCESSING_INSTRUCTION_NODE,
2463 DTM.PROCESSING_INSTRUCTION_NODE,
2479 * @return Handle of first attribute, or DTM.NULL to indicate none exists.
2485 if (nodeID == DTM.NULL)
2486 return DTM.NULL;
2490 if (DTM.ELEMENT_NODE == type)
2499 if (type == DTM.ATTRIBUTE_NODE)
2503 else if (DTM.NAMESPACE_NODE != type)
2510 return DTM.NULL;
2519 * @return Identity of first attribute, or DTM.NULL to indicate none exists.
2527 if (DTM.ELEMENT_NODE == type)
2537 if (type == DTM.ATTRIBUTE_NODE)
2541 else if (DTM.NAMESPACE_NODE != type)
2548 return DTM.NULL;
2559 * @return int DTM node-identity of the resolved attr,
2560 * or DTM.NULL to indicate none exists.
2569 if (type == DTM.ATTRIBUTE_NODE) {
2571 } else if (type != DTM.NAMESPACE_NODE) {
2576 return DTM.NULL;
2587 * @return Handle of attribute of the required type, or DTM.NULL to indicate
2595 if (nodeID == DTM.NULL)
2596 return DTM.NULL;
2600 if (DTM.ELEMENT_NODE == type)
2608 if (expType != DTM.NULL)
2611 return DTM.NULL;
2613 if (type == DTM.ATTRIBUTE_NODE)
2617 else if (DTM.NAMESPACE_NODE != type)
2624 return DTM.NULL;
2641 if (expType == DTM.PROCESSING_INSTRUCTION_NODE)
2666 if (eType == DTM.PROCESSING_INSTRUCTION_NODE)
2719 if (type == DTM.NAMESPACE_NODE)
2726 else if (type == DTM.PROCESSING_INSTRUCTION_NODE)
2776 if (identity == DTM.NULL)
2781 if (type == DTM.ELEMENT_NODE || type == DTM.DOCUMENT_NODE)
2785 if (DTM.NULL != identity)
2794 if (type == DTM.TEXT_NODE || type == DTM.CDATA_SECTION_NODE)
2833 else if (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type)
2889 if (identity == DTM.NULL)
2894 if (type == DTM.ELEMENT_NODE || type == DTM.DOCUMENT_NODE)
2898 if (DTM.NULL != identity)
2907 if (type == DTM.TEXT_NODE || type == DTM.CDATA_SECTION_NODE)
2943 else if (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type)
2977 if (child == DTM.NULL) return EMPTY_STR;
2980 if ((_exptype2(child) == DTM.TEXT_NODE) && (_nextsib2(child) == DTM.NULL))
3020 if (identity == DTM.NULL)
3025 if (type == DTM.ELEMENT_NODE || type == DTM.DOCUMENT_NODE)
3029 if (DTM.NULL != identity)
3038 if (type == DTM.TEXT_NODE || type == DTM.CDATA_SECTION_NODE)
3074 else if (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type)
3132 if (type == DTM.TEXT_NODE || type == DTM.CDATA_SECTION_NODE)
3146 else if (DTM.ELEMENT_NODE == type || DTM.DOCUMENT_FRAGMENT_NODE == type
3147 || DTM.DOCUMENT_NODE == type)
3171 if (nodeID != DTM.NULL) {
3273 while (nextNSNode != DTM.NULL) {
3312 while ((type = _type2(++baseID)) == DTM.ATTRIBUTE_NODE);
3314 if (type == DTM.NAMESPACE_NODE)
3329 for(int current = getFirstAttributeIdentity(nodeID); current != DTM.NULL; current = getNextAttributeIdentity(current)){