Lines Matching refs:DTM

44  * access to the DTM model. Some nested iterators in DTMDefaultBaseIterators
49 * use it in incremental situation. To reduce the overhead of pulling data from the DTM model,
96 _currentNode = (node == DTM.NULL) ? DTM.NULL
132 private int _nodeType = DTM.NULL;
151 if (node != DTM.NULL)
154 _currentNode = DTM.NULL;
190 return DTM.NULL;
197 else if (_nodeType >= DTM.NTYPES) {
210 return DTM.NULL;
253 _currentNode = (node == DTM.NULL)
254 ? DTM.NULL
271 if (node == DTM.NULL)
272 return DTM.NULL;
276 if (nodeType != DTM.ELEMENT_NODE) {
277 while (node != DTM.NULL && _exptype2(node) != nodeType) {
282 // need to compare the expType with DTM.NTYPES. A child node of
285 // type greater than or equal to DTM.NTYPES.
288 while (node != DTM.NULL) {
290 if (eType >= DTM.NTYPES)
297 if (node == DTM.NULL) {
298 _currentNode = DTM.NULL;
299 return DTM.NULL;
313 return DTM.NULL;
319 if (nodeType != DTM.ELEMENT_NODE) {
320 while (node != DTM.NULL) {
332 while (node != DTM.NULL) {
333 if (_exptype2(node) >= DTM.NTYPES) {
382 if (_nodeType >= DTM.NTYPES) {
388 if (expType < DTM.NTYPES) {
441 _currentNode = (_currentNode == DTM.NULL) ? DTM.NULL
475 if (_currentNode == DTM.NULL) {
476 return DTM.NULL;
482 if (nodeType != DTM.ELEMENT_NODE) {
483 while ((node = _nextsib2(node)) != DTM.NULL && _exptype2(node) != nodeType) {}
486 while ((node = _nextsib2(node)) != DTM.NULL && _exptype2(node) < DTM.NTYPES) {}
491 return (node == DTM.NULL)
492 ? DTM.NULL
686 if (_currentNode == _startNodeID || _currentNode == DTM.NULL)
734 if (nodeType != DTM.ELEMENT_NODE) {
740 while (node != NULL && node != startNodeID && _exptype2(node) < DTM.NTYPES) {
745 if (node == DTM.NULL || node == startNodeID) {
770 if (nodeType != DTM.ELEMENT_NODE) {
780 if (_exptype2(node) >= DTM.NTYPES) {
873 if (_type2(node) == DTM.ATTRIBUTE_NODE)
988 if (nodeType >= DTM.NTYPES) {
1025 if (expType < DTM.NTYPES) {
1081 if ((DTM.ATTRIBUTE_NODE == type) || (DTM.NAMESPACE_NODE == type))
1177 if (nodeType >= DTM.NTYPES) {
1190 while (node != DTM.NULL && _exptype2(node) != nodeType);
1205 while (node != DTM.NULL
1210 return (node == DTM.NULL ? DTM.NULL :returnNode(makeNodeHandle(node)));
1301 if (nodeID == DTM.NULL) {
1302 _currentNode = DTM.NULL;
1334 : DTM.NULL;
1354 : DTM.NULL;
1372 : DTM.NULL;
1384 : DTM.NULL;
1428 if (nodeID == DTM.NULL) {
1429 _currentNode = DTM.NULL;
1443 if (nodeType >= DTM.NTYPES) {
1463 if ((eType < DTM.NTYPES && eType == nodeType)
1464 || (eType >= DTM.NTYPES
1481 : DTM.NULL;
1498 return DTM.NULL;
1672 if (nodeType != DTM.ELEMENT_NODE)
1700 } while (expType < DTM.NTYPES
1701 || m_extendedTypes[expType].getNodeType() != DTM.ELEMENT_NODE);
1715 while (expType < DTM.NTYPES
1716 || m_extendedTypes[expType].getNodeType() != DTM.ELEMENT_NODE);
1754 return DTM.NULL;
1758 if (_nodeType >= DTM.NTYPES) {
1901 * DTM building. _exptype2 is used after the document is fully built.
1909 * DTM base accessor interfaces
1912 * very important to the DTM performance. To have the best performace,
1922 * <code>DTM.NULL</code>
1938 * <code>DTM.NULL</code>
1954 * <code>DTM.NULL</code>
1970 * <code>DTM.NULL</code>
1986 * <code>DTM.NULL</code>
2026 * END of DTM base accessor interfaces
2090 int exName = m_expandedNameTable.getExpandedTypeID(uri, localName, DTM.ELEMENT_NODE);
2095 int elemNode = addNode(DTM.ELEMENT_NODE, exName,
2112 exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);
2115 addNode(DTM.NAMESPACE_NODE, exName, elemNode,
2116 DTM.NULL, val, false);
2129 exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);
2134 addNode(DTM.NAMESPACE_NODE, exName, elemNode, DTM.NULL, val, false);
2157 nodeType = DTM.NAMESPACE_NODE;
2161 nodeType = DTM.ATTRIBUTE_NODE;
2189 addNode(nodeType, exName, elemNode, DTM.NULL, val,
2203 m_previous = DTM.NULL;
2273 m_previous = addNode(DTM.COMMENT_NODE, DTM.COMMENT_NODE,
2287 int doc = addNode(DTM.DOCUMENT_NODE,
2288 DTM.DOCUMENT_NODE,
2289 DTM.NULL, DTM.NULL, 0, true);
2292 m_previous = DTM.NULL;
2326 * @param type raw type ID, one of DTM.XXX_NODE.
2343 // Have we overflowed a DTM Identity's addressing range?
2351 m_firstch.addElement(DTM.NULL);
2352 m_nextsib.addElement(DTM.NULL);
2371 case DTM.NAMESPACE_NODE:
2374 case DTM.ATTRIBUTE_NODE:
2377 if (DTM.NULL != previousSibling) {
2380 else if (DTM.NULL != parentIndex) {
2417 m_previous = addNode(m_coalescedTextType, DTM.TEXT_NODE,
2426 m_previous = addNode(m_coalescedTextType, DTM.TEXT_NODE,
2437 m_textType = m_coalescedTextType = DTM.TEXT_NODE;
2464 m_previous = addNode(DTM.PROCESSING_INSTRUCTION_NODE,
2465 DTM.PROCESSING_INSTRUCTION_NODE,
2481 * @return Handle of first attribute, or DTM.NULL to indicate none exists.
2487 if (nodeID == DTM.NULL)
2488 return DTM.NULL;
2492 if (DTM.ELEMENT_NODE == type)
2501 if (type == DTM.ATTRIBUTE_NODE)
2505 else if (DTM.NAMESPACE_NODE != type)
2512 return DTM.NULL;
2521 * @return Identity of first attribute, or DTM.NULL to indicate none exists.
2529 if (DTM.ELEMENT_NODE == type)
2539 if (type == DTM.ATTRIBUTE_NODE)
2543 else if (DTM.NAMESPACE_NODE != type)
2550 return DTM.NULL;
2561 * @return int DTM node-identity of the resolved attr,
2562 * or DTM.NULL to indicate none exists.
2571 if (type == DTM.ATTRIBUTE_NODE) {
2573 } else if (type != DTM.NAMESPACE_NODE) {
2578 return DTM.NULL;
2589 * @return Handle of attribute of the required type, or DTM.NULL to indicate
2597 if (nodeID == DTM.NULL)
2598 return DTM.NULL;
2602 if (DTM.ELEMENT_NODE == type)
2610 if (expType != DTM.NULL)
2613 return DTM.NULL;
2615 if (type == DTM.ATTRIBUTE_NODE)
2619 else if (DTM.NAMESPACE_NODE != type)
2626 return DTM.NULL;
2643 if (expType == DTM.PROCESSING_INSTRUCTION_NODE)
2668 if (eType == DTM.PROCESSING_INSTRUCTION_NODE)
2721 if (type == DTM.NAMESPACE_NODE)
2728 else if (type == DTM.PROCESSING_INSTRUCTION_NODE)
2778 if (identity == DTM.NULL)
2783 if (type == DTM.ELEMENT_NODE || type == DTM.DOCUMENT_NODE)
2787 if (DTM.NULL != identity)
2796 if (type == DTM.TEXT_NODE || type == DTM.CDATA_SECTION_NODE)
2835 else if (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type)
2891 if (identity == DTM.NULL)
2896 if (type == DTM.ELEMENT_NODE || type == DTM.DOCUMENT_NODE)
2900 if (DTM.NULL != identity)
2909 if (type == DTM.TEXT_NODE || type == DTM.CDATA_SECTION_NODE)
2945 else if (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type)
2979 if (child == DTM.NULL) return EMPTY_STR;
2982 if ((_exptype2(child) == DTM.TEXT_NODE) && (_nextsib2(child) == DTM.NULL))
3022 if (identity == DTM.NULL)
3027 if (type == DTM.ELEMENT_NODE || type == DTM.DOCUMENT_NODE)
3031 if (DTM.NULL != identity)
3040 if (type == DTM.TEXT_NODE || type == DTM.CDATA_SECTION_NODE)
3076 else if (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type)
3134 if (type == DTM.TEXT_NODE || type == DTM.CDATA_SECTION_NODE)
3148 else if (DTM.ELEMENT_NODE == type || DTM.DOCUMENT_FRAGMENT_NODE == type
3149 || DTM.DOCUMENT_NODE == type)
3173 if (nodeID != DTM.NULL) {
3275 while (nextNSNode != DTM.NULL) {
3314 while ((type = _type2(++baseID)) == DTM.ATTRIBUTE_NODE);
3316 if (type == DTM.NAMESPACE_NODE)
3331 for(int current = getFirstAttributeIdentity(nodeID); current != DTM.NULL; current = getNextAttributeIdentity(current)){