Home | History | Annotate | Download | only in ref

Lines Matching defs:dtm

21 package org.apache.xml.dtm.ref;
23 import org.apache.xml.dtm.DTM;
31 * This class does a pre-order walk of the DTM tree, calling a ContentHandler
36 * of DTM#dispatchToEvents.
46 protected DTM m_dtm;
49 * Set the DTM to be traversed.
51 * @param dtm The Document Table Model to be used.
53 public void setDTM(DTM dtm)
55 m_dtm = dtm;
91 public DTMTreeWalker(ContentHandler contentHandler, DTM dtm)
94 m_dtm = dtm;
112 while (DTM.NULL != pos)
116 while (DTM.NULL == nextNode)
125 if (DTM.NULL == nextNode)
129 if ((DTM.NULL == pos) || (top == pos))
133 if (DTM.NULL != pos)
136 nextNode = DTM.NULL;
154 * If top==DTM.NULL, run through end of document.
161 // if(top==DTM.NULL) top=0
163 // pos will never equal DTM.NULL until we're ready to exit?
165 while (DTM.NULL != pos)
169 while (DTM.NULL == nextNode)
173 if ((DTM.NULL != top) && top == pos)
178 if (DTM.NULL == nextNode)
182 if ((DTM.NULL == pos) || ((DTM.NULL != top) && (top == pos)))
184 nextNode = DTM.NULL;
226 case DTM.COMMENT_NODE :
237 case DTM.DOCUMENT_FRAGMENT_NODE :
241 case DTM.DOCUMENT_NODE :
244 case DTM.ELEMENT_NODE :
245 DTM dtm = m_dtm;
247 for (int nsn = dtm.getFirstNamespaceNode(node, true); DTM.NULL != nsn;
248 nsn = dtm.getNextNamespaceNode(node, nsn, true))
250 // String prefix = dtm.getPrefix(nsn);
251 String prefix = dtm.getNodeNameX(nsn);
253 this.m_contentHandler.startPrefixMapping(prefix, dtm.getNodeValue(nsn));
259 String ns = dtm.getNamespaceURI(node);
267 for (int i = dtm.getFirstAttribute(node);
268 i != DTM.NULL;
269 i = dtm.getNextAttribute(i))
271 attrs.addAttribute(dtm.getNamespaceURI(i),
272 dtm.getLocalName(i),
273 dtm.getNodeName(i),
275 dtm.getNodeValue(i));
284 case DTM.PROCESSING_INSTRUCTION_NODE :
300 case DTM.CDATA_SECTION_NODE :
321 case DTM.TEXT_NODE :
337 case DTM.ENTITY_REFERENCE_NODE :
368 case DTM.DOCUMENT_NODE :
371 case DTM.ELEMENT_NODE :
379 for (int nsn = m_dtm.getFirstNamespaceNode(node, true); DTM.NULL != nsn;
388 case DTM.CDATA_SECTION_NODE :
390 case DTM.ENTITY_REFERENCE_NODE :