Home
last modified time | relevance | path

Searched refs:DTM (Results 1 – 25 of 97) sorted by relevance

1234

/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DDTMTreeWalker.java23 import org.apache.xml.dtm.DTM;
46 protected DTM m_dtm;
53 public void setDTM(DTM dtm) in setDTM()
91 public DTMTreeWalker(ContentHandler contentHandler, DTM dtm) in DTMTreeWalker()
112 while (DTM.NULL != pos) in traverse()
116 while (DTM.NULL == nextNode) in traverse()
125 if (DTM.NULL == nextNode) in traverse()
129 if ((DTM.NULL == pos) || (top == pos)) in traverse()
133 if (DTM.NULL != pos) in traverse()
136 nextNode = DTM.NULL; in traverse()
[all …]
DDTMDefaultBase.java44 public abstract class DTMDefaultBase implements DTM
105 protected static final int NOTPROCESSED = DTM.NULL - 1;
323 if (DTM.ELEMENT_NODE == type) in indexNode()
479 if (identity == DTM.NULL) in _exptype()
675 case DTM.ATTRIBUTE_NODE : in dumpDTM()
678 case DTM.CDATA_SECTION_NODE : in dumpDTM()
681 case DTM.COMMENT_NODE : in dumpDTM()
684 case DTM.DOCUMENT_FRAGMENT_NODE : in dumpDTM()
687 case DTM.DOCUMENT_NODE : in dumpDTM()
690 case DTM.DOCUMENT_TYPE_NODE : in dumpDTM()
[all …]
DExpandedNameTable.java23 import org.apache.xml.dtm.DTM;
52 public static final int ELEMENT = ((int)DTM.ELEMENT_NODE) ;
53 public static final int ATTRIBUTE = ((int)DTM.ATTRIBUTE_NODE) ;
54 public static final int TEXT = ((int)DTM.TEXT_NODE) ;
55 public static final int CDATA_SECTION = ((int)DTM.CDATA_SECTION_NODE) ;
56 public static final int ENTITY_REFERENCE = ((int)DTM.ENTITY_REFERENCE_NODE) ;
57 public static final int ENTITY = ((int)DTM.ENTITY_NODE) ;
58 public static final int PROCESSING_INSTRUCTION = ((int)DTM.PROCESSING_INSTRUCTION_NODE) ;
59 public static final int COMMENT = ((int)DTM.COMMENT_NODE) ;
60 public static final int DOCUMENT = ((int)DTM.DOCUMENT_NODE) ;
[all …]
DDTMDefaultBaseIterators.java310 _currentNode = (node == DTM.NULL) ? DTM.NULL in setStartNode()
400 if (_nodeType >= DTM.NTYPES) { in next()
455 _currentNode = (node == DTM.NULL) in setStartNode()
456 ? DTM.NULL in setStartNode()
477 if (nodeType >= DTM.NTYPES) { in next()
478 while (node != DTM.NULL && _exptype(node) != nodeType) { in next()
482 while (node != DTM.NULL) { in next()
484 if (eType < DTM.NTYPES) { in next()
495 if (node == DTM.NULL) { in next()
496 _currentNode = DTM.NULL; in next()
[all …]
DDTMChildIterNodeList.java23 import org.apache.xml.dtm.DTM;
57 private DTM m_parentDTM;
77 public DTMChildIterNodeList(DTM parentDTM,int parentHandle) { in DTMChildIterNodeList()
97 while(--index>=0 && handle!=DTM.NULL) { in item()
100 if (handle == DTM.NULL) { in item()
113 handle!=DTM.NULL; in getLength()
DDTMManagerDefault.java30 import org.apache.xml.dtm.DTM;
94 protected DTM m_dtms[] = new DTM[256];
130 synchronized public void addDTM(DTM dtm, int id) { addDTM(dtm,id,0); } in addDTM()
143 synchronized public void addDTM(DTM dtm, int id, int offset) in addDTM()
166 DTM new_m_dtms[] = new DTM[newlen]; in addDTM()
236 synchronized public DTM getDTM(Source source, boolean unique, in getDTM()
525 DTM thisDTM=m_dtms[i]; in getDTMHandleFromNode()
529 if(handle!=DTM.NULL) return handle; in getDTMHandleFromNode()
575 if(DTM.NULL == handle) in getDTMHandleFromNode()
643 synchronized public DTM getDTM(int nodeHandle) in getDTM()
[all …]
DDTMNodeProxy.java25 import org.apache.xml.dtm.DTM;
69 public DTM dtm;
86 public DTMNodeProxy(DTM dtm, int node) in DTMNodeProxy()
97 public final DTM getDTM() in getDTM()
342 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); in getParentNode()
355 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); in getOwnerNode()
384 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); in getFirstChild()
397 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); in getLastChild()
410 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); in getPreviousSibling()
427 return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); in getNextSibling()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/sax2dtm/
DSAX2DTM2.java94 _currentNode = (node == DTM.NULL) ? DTM.NULL in setStartNode()
130 private int _nodeType = DTM.NULL;
149 if (node != DTM.NULL) in setStartNode()
152 _currentNode = DTM.NULL; in setStartNode()
188 return DTM.NULL; in next()
195 else if (_nodeType >= DTM.NTYPES) { in next()
208 return DTM.NULL; in next()
251 _currentNode = (node == DTM.NULL) in setStartNode()
252 ? DTM.NULL in setStartNode()
269 if (node == DTM.NULL) in next()
[all …]
DSAX2DTM.java111 transient protected int m_textType = DTM.TEXT_NODE;
117 transient protected int m_coalescedTextType = DTM.TEXT_NODE;
506 if (identity == DTM.NULL) in dispatchCharactersEvents()
526 if (DTM.NULL != firstChild) in dispatchCharactersEvents()
550 } while (DTM.NULL != identity && (_parent(identity) >= startNode)); in dispatchCharactersEvents()
560 else if(type != DTM.ELEMENT_NODE) in dispatchCharactersEvents()
604 if (type == DTM.NAMESPACE_NODE) in getNodeName()
717 return DTM.NULL; in getNextNodeIdentity()
835 return (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type); in isTextType()
880 m_firstch.addElement(canHaveFirstChild ? NOTPROCESSED : DTM.NULL); in addNode()
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/transformer/
DClonerToResultTree.java26 import org.apache.xml.dtm.DTM;
132 public static void cloneToResultTree(int node, int nodeType, DTM dtm, in cloneToResultTree()
142 case DTM.TEXT_NODE : in cloneToResultTree()
145 case DTM.DOCUMENT_FRAGMENT_NODE : in cloneToResultTree()
146 case DTM.DOCUMENT_NODE : in cloneToResultTree()
150 case DTM.ELEMENT_NODE : in cloneToResultTree()
172 case DTM.CDATA_SECTION_NODE : in cloneToResultTree()
177 case DTM.ATTRIBUTE_NODE : in cloneToResultTree()
180 case DTM.NAMESPACE_NODE: in cloneToResultTree()
185 SerializerUtils.processNSDecls(rth,node,DTM.NAMESPACE_NODE,dtm); in cloneToResultTree()
[all …]
DXalanTransformState.java28 import org.apache.xml.dtm.DTM;
44 int m_currentNodeHandle = DTM.NULL;
46 int m_matchedNode = DTM.NULL;
68 DTM dtm = m_transformer.getXPathContext().getDTM(currentNodeHandle); in resetState()
92 DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getCurrentNode()); in getCurrentNode()
123 DTM dtm = m_transformer.getXPathContext().getDTM(m_matchedNode); in getMatchedNode()
126 DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getMatchedNode()); in getMatchedNode()
/external/apache-xml/src/main/java/org/apache/xalan/serialize/
DSerializerUtils.java26 import org.apache.xml.dtm.DTM;
60 DTM dtm = transformer.getXPathContext().getDTM(attr); in addAttribute()
99 DTM dtm = transformer.getXPathContext().getDTM(src); in addAttributes()
102 DTM.NULL != node; in addAttributes()
126 DTM dtm = support.getDTM(doc); in outputResultTreeFragment()
131 DTM.NULL != n; in outputResultTreeFragment()
138 if (dtm.getNodeType(n) == DTM.ELEMENT_NODE in outputResultTreeFragment()
162 DTM dtm) in processNSDecls()
168 if (type == DTM.ELEMENT_NODE) in processNSDecls()
171 DTM.NULL != namespace; in processNSDecls()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/dom2dtm/
DDOM2DTM.java28 import org.apache.xml.dtm.DTM;
156 m_firstch.setElementAt(DTM.NULL,attrIndex); in DOM2DTM()
160 m_nextsib.setElementAt(DTM.NULL,attrIndex); in DOM2DTM()
242 type = DTM.NAMESPACE_NODE; in addNode()
253 if(DTM.NULL != parentIndex && in addNode()
254 type != DTM.ATTRIBUTE_NODE && in addNode()
255 type != DTM.NAMESPACE_NODE) in addNode()
300 if (DTM.NULL != previousSibling) in addNode()
305 if (type == DTM.NAMESPACE_NODE) in addNode()
544 m_firstch.setElementAt(DTM.NULL,attrIndex); in nextNode()
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/axes/
DAxesWalker.java26 import org.apache.xml.dtm.DTM;
179 m_currentNode = DTM.NULL; in detach()
183 m_root = DTM.NULL; in detach()
227 if (DTM.NULL == root) in setRoot()
323 return DTM.NULL; in getNextNode()
333 else if(DTM.NULL != m_currentNode) in getNextNode()
338 if (DTM.NULL == m_currentNode) in getNextNode()
355 int nextNode = DTM.NULL; in nextNode()
365 if (DTM.NULL == nextNode) in nextNode()
441 while (DTM.NULL != (next = walker.nextNode())) in getLastPos()
[all …]
DLocPathIterator.java24 import org.apache.xml.dtm.DTM;
176 public DTM getDTM(int nodeHandle) in getDTM()
242 DTM dtm = clone.getDTM(node); in executeCharsToContentHandler()
245 if(node != DTM.NULL) in executeCharsToContentHandler()
320 return (asNode(xctxt) != DTM.NULL); in bool()
372 m_lastFetched = DTM.NULL; in setRoot()
556 while (DTM.NULL != (next = clone.nextNode())) in getLength()
687 m_lastFetched = DTM.NULL; in detach()
688 m_context = DTM.NULL; in detach()
689 m_currentContextNode = DTM.NULL; in detach()
[all …]
DBasicTestIterator.java23 import org.apache.xml.dtm.DTM;
137 m_lastFetched = DTM.NULL; in nextNode()
138 return DTM.NULL; in nextNode()
141 if(DTM.NULL == m_lastFetched) in nextNode()
172 if (DTM.NULL != next) in nextNode()
182 while (next != DTM.NULL); in nextNode()
184 if (DTM.NULL != next) in nextNode()
193 return DTM.NULL; in nextNode()
DSelfIteratorNoPredicate.java23 import org.apache.xml.dtm.DTM;
76 return DTM.NULL; in nextNode()
80 m_lastFetched = next = (DTM.NULL == m_lastFetched) in nextNode()
82 : DTM.NULL; in nextNode()
85 if (DTM.NULL != next) in nextNode()
95 return DTM.NULL; in nextNode()
DChildIterator.java23 import org.apache.xml.dtm.DTM;
71 DTM dtm = xctxt.getDTM(current); in asNode()
87 return DTM.NULL; in nextNode()
91 m_lastFetched = next = (DTM.NULL == m_lastFetched) in nextNode()
96 if (DTM.NULL != next) in nextNode()
105 return DTM.NULL; in nextNode()
/external/apache-xml/src/main/java/org/apache/xalan/templates/
DTemplateList.java30 import org.apache.xml.dtm.DTM;
431 int targetNode, DTM dtm) in getHead()
438 case DTM.ELEMENT_NODE : in getHead()
439 case DTM.ATTRIBUTE_NODE : in getHead()
443 case DTM.TEXT_NODE : in getHead()
444 case DTM.CDATA_SECTION_NODE : in getHead()
447 case DTM.ENTITY_REFERENCE_NODE : in getHead()
448 case DTM.ENTITY_NODE : in getHead()
452 case DTM.PROCESSING_INSTRUCTION_NODE : in getHead()
456 case DTM.COMMENT_NODE : in getHead()
[all …]
DFuncDocument.java34 import org.apache.xml.dtm.DTM;
76 DTM dtm = xctxt.getDTM(context); in execute()
97 if (baseNode == DTM.NULL) in execute()
106 DTM baseDTM = xctxt.getDTM(baseNode); in execute()
148 int pos = DTM.NULL; in execute()
150 while ((null == iterator) || (DTM.NULL != (pos = iterator.nextNode()))) in execute()
163 if (null == arg1Expr && DTM.NULL != pos) in execute()
165 DTM baseDTM = xctxt.getDTM(pos); in execute()
172 if (DTM.NULL == docContext) in execute()
197 if (DTM.NULL != newDoc) in execute()
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/patterns/
DNodeTest.java23 import org.apache.xml.dtm.DTM;
363 return DTM.ELEMENT_NODE; in getNodeTypeTest()
366 return DTM.ATTRIBUTE_NODE; in getNodeTypeTest()
369 return DTM.TEXT_NODE; in getNodeTypeTest()
372 return DTM.DOCUMENT_NODE; in getNodeTypeTest()
375 return DTM.DOCUMENT_FRAGMENT_NODE; in getNodeTypeTest()
378 return DTM.NAMESPACE_NODE; in getNodeTypeTest()
381 return DTM.COMMENT_NODE; in getNodeTypeTest()
384 return DTM.PROCESSING_INSTRUCTION_NODE; in getNodeTypeTest()
387 return DTM.DOCUMENT_TYPE_NODE; in getNodeTypeTest()
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/functions/
DFuncId.java25 import org.apache.xml.dtm.DTM;
66 DTM dtm = xctxt.getDTM(docContext); in getNodesByID()
82 if (DTM.NULL != node) in getNodesByID()
110 DTM dtm = xctxt.getDTM(context); in execute()
113 if (DTM.NULL == docContext) in execute()
127 while (DTM.NULL != pos) in execute()
129 DTM ndtm = ni.getDTM(pos); in execute()
134 DTM.NULL != pos); in execute()
DFuncDoclocation.java23 import org.apache.xml.dtm.DTM;
51 if (DTM.NULL != whereNode) in execute()
53 DTM dtm = xctxt.getDTM(whereNode); in execute()
56 if (DTM.DOCUMENT_FRAGMENT_NODE == dtm.getNodeType(whereNode)) in execute()
61 if (DTM.NULL != whereNode) in execute()
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXNodeSet.java23 import org.apache.xml.dtm.DTM;
97 this(DTM.NULL,dtmMgr); in XNodeSet()
111 if (DTM.NULL != n) in XNodeSet()
164 return (node != DTM.NULL) ? getNumberFromNode(node) : Double.NaN; in num()
178 return (node != DTM.NULL) ? getNumberFromNode(node) : Double.NaN; in numWithSideEffects()
189 return (item(0) != DTM.NULL); in bool()
200 return (nextNode() != DTM.NULL); in boolWithSideEffects()
215 if(DTM.NULL != n) in getStringFromNode()
241 if(node != DTM.NULL) in dispatchCharactersEvents()
256 return (node != DTM.NULL) ? getStringFromNode(node) : XString.EMPTYSTRING; in xstr()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/utils/
DNodeVector.java25 import org.apache.xml.dtm.DTM;
191 m_map[m_firstFree] = DTM.NULL; in pop()
207 m_map[m_firstFree] = DTM.NULL; in popAndTop()
209 return (m_firstFree == 0) ? DTM.NULL : m_map[m_firstFree - 1]; in popAndTop()
220 m_map[m_firstFree] = DTM.NULL; in popQuick()
233 ? m_map[m_firstFree - 1] : DTM.NULL; in peepOrNull()
280 m_map[m_firstFree] = DTM.NULL; in popPair()
281 m_map[m_firstFree + 1] = DTM.NULL; in popPair()
436 m_map[i] = DTM.NULL; in removeAllElements()
480 m_map[i] = DTM.NULL; in removeElement()
[all …]

1234