550 public Node makeNode(int index) { 551 if (index == DTM.NULL) { 552 return null; 553 } 554 return _adapters[getDTMId(index)].makeNode(index); 555 } 556 557 public Node makeNode(DTMAxisIterator iter) { 558 // TODO: gather nodes from all DOMs ? 559 return _main.makeNode(iter); 560 } 561 562 public NodeList makeNodeList(int index) { 563 if (index == DTM.NULL) { 564 return null; 565 } 566 return _adapters[getDTMId(index)].makeNodeList(index); 567 } 568 569 public NodeList makeNodeList(DTMAxisIterator iter) { 570 // TODO: gather nodes from all DOMs ? 571 return _main.makeNodeList(iter); 572 } 573 574 public String getLanguage(int node) { 575 return _adapters[getDTMId(node)].getLanguage(node); 576 } 577 578 public int getSize() { 579 int size = 0; 580 for (int i=0; i<_size; i++) { 581 size += _adapters[i].getSize(); 582 } 583 return(size); 584 } 585 586 public String getDocumentURI(int node) { 587 if (node == DTM.NULL) { 588 node = DOM.NULL; 589 } 590 return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getDocumentURI(0); 591 } | 550 public Node makeNode(int index) { 551 if (index == DTM.NULL) { 552 return null; 553 } 554 return _adapters[getDTMId(index)].makeNode(index); 555 } 556 557 public Node makeNode(DTMAxisIterator iter) { 558 // TODO: gather nodes from all DOMs ? 559 return _main.makeNode(iter); 560 } 561 562 public NodeList makeNodeList(int index) { 563 if (index == DTM.NULL) { 564 return null; 565 } 566 return _adapters[getDTMId(index)].makeNodeList(index); 567 } 568 569 public NodeList makeNodeList(DTMAxisIterator iter) { 570 int index = iter.next(); 571 if (index == DTM.NULL) { 572 return null; 573 } 574 iter.reset(); 575 return _adapters[getDTMId(index)].makeNodeList(iter); 576 } 577 578 public String getLanguage(int node) { 579 return _adapters[getDTMId(node)].getLanguage(node); 580 } 581 582 public int getSize() { 583 int size = 0; 584 for (int i=0; i<_size; i++) { 585 size += _adapters[i].getSize(); 586 } 587 return(size); 588 } 589 590 public String getDocumentURI(int node) { 591 if (node == DTM.NULL) { 592 node = DOM.NULL; 593 } 594 return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getDocumentURI(0); 595 } |