Lines Matching refs:DTM

46 public abstract class DTMDefaultBase implements DTM
52 // node of a DTM.
107 protected static final int NOTPROCESSED = DTM.NULL - 1;
110 * The DTM manager who "owns" this DTM.
128 a particular DTM wanted to use another value? */
160 * @param mgr The DTMManager who owns this DTM.
162 * @param dtmIdentity The DTM identity ID for this DTM.
163 * @param whiteSpaceFilter The white space filter for this DTM, which may
180 * @param mgr The DTMManager who owns this DTM.
182 * @param dtmIdentity The DTM identity ID for this DTM.
183 * @param whiteSpaceFilter The white space filter for this DTM, which may
188 * @param blocksize The block size of the DTM.
190 * @param newNameTable true if we want to use a new ExpandedNameTable for this DTM.
218 // Some DTM implementations (e.g. SAXImpl) do not need this array.
325 if (DTM.ELEMENT_NODE == type)
385 * firstPotential argument, or DTM.NOTPROCESSED if not found.
420 * @return identity+1, or DTM.NULL.
459 * @return The simple type ID, or DTM.NULL.
477 * @return The expanded type ID, or DTM.NULL.
481 if (identity == DTM.NULL)
500 * @return The tree level, or DTM.NULL.
522 * @return The first child identity, or DTM.NULL.
555 * @return The next sibling identity, or DTM.NULL.
587 * @return The previous sibling identity, or DTM.NULL.
614 * @return The parent identity, or DTM.NULL.
637 * Diagnostics function to dump the DTM.
677 case DTM.ATTRIBUTE_NODE :
680 case DTM.CDATA_SECTION_NODE :
683 case DTM.COMMENT_NODE :
686 case DTM.DOCUMENT_FRAGMENT_NODE :
689 case DTM.DOCUMENT_NODE :
692 case DTM.DOCUMENT_TYPE_NODE :
695 case DTM.ELEMENT_NODE :
698 case DTM.ENTITY_NODE :
701 case DTM.ENTITY_REFERENCE_NODE :
704 case DTM.NAMESPACE_NODE :
707 case DTM.NOTATION_NODE :
710 case DTM.NULL :
713 case DTM.PROCESSING_INSTRUCTION_NODE :
716 case DTM.TEXT_NODE :
728 if (DTM.NULL == firstChild)
729 ps.println("First child: DTM.NULL");
739 if (DTM.NULL == prevSibling)
740 ps.println("Prev sibling: DTM.NULL");
749 if (DTM.NULL == nextSibling)
750 ps.println("Next sibling: DTM.NULL");
758 if (DTM.NULL == parent)
759 ps.println("Parent: DTM.NULL");
785 * it with nodes printed the other way. We could always OR the DTM ID
789 * DTM itself, since it's a useful diagnostic and uses only DTM's public
794 if(nodeHandle==DTM.NULL)
800 case DTM.ATTRIBUTE_NODE :
803 case DTM.CDATA_SECTION_NODE :
806 case DTM.COMMENT_NODE :
809 case DTM.DOCUMENT_FRAGMENT_NODE :
812 case DTM.DOCUMENT_NODE :
815 case DTM.DOCUMENT_TYPE_NODE :
818 case DTM.ELEMENT_NODE :
821 case DTM.ENTITY_NODE :
824 case DTM.ENTITY_REFERENCE_NODE :
827 case DTM.NAMESPACE_NODE :
830 case DTM.NOTATION_NODE :
833 case DTM.NULL :
836 case DTM.PROCESSING_INSTRUCTION_NODE :
839 case DTM.TEXT_NODE :
853 // ========= DTM Implementation Control Functions. ==============
871 * node. It's less useful in the DTM API, where
872 * (dtm.getFirstChild(nodeHandle)!=DTM.NULL) is just as fast and
874 * of DOM code to DTM. </p>
885 return firstChild != DTM.NULL;
889 * has been used (multiple DTM IDs), we need to map the high bits of the
890 * identity into the proper DTM ID.
914 * has been used (multiple DTM IDs), we need to map the high bits of the
915 * identity into the proper DTM ID and thence find the proper offset
967 * @return int DTM node-number of first child, or DTM.NULL to indicate none exists.
984 * @return int DTM node-number of first child, or DTM.NULL to indicate none exists.
990 if (nodeType < DTM.NTYPES) {
992 firstChild != DTM.NULL;
996 || (eType >= DTM.NTYPES
1003 firstChild != DTM.NULL;
1010 return DTM.NULL;
1020 * or DTM.NULL to indicate none exists.
1027 int lastChild = DTM.NULL;
1029 while (child != DTM.NULL)
1047 * <code>nodeName</code>) or <code>DTM.NULL</code> if there is no such
1057 * @return Handle of first attribute, or DTM.NULL to indicate none exists.
1070 * @return Identity of first attribute, or DTM.NULL to indicate none exists.
1075 if (DTM.ELEMENT_NODE == type)
1078 while (DTM.NULL != (identity = getNextNodeIdentity(identity)))
1084 if (type == DTM.ATTRIBUTE_NODE)
1088 else if (DTM.NAMESPACE_NODE != type)
1095 return DTM.NULL;
1104 * @return Handle of attribute of the required type, or DTM.NULL to indicate
1109 if (DTM.ELEMENT_NODE == type) {
1112 while (DTM.NULL != (identity = getNextNodeIdentity(identity)))
1116 if (type == DTM.ATTRIBUTE_NODE)
1120 else if (DTM.NAMESPACE_NODE != type)
1127 return DTM.NULL;
1136 * or DTM.NULL to indicate none exists.
1140 if (nodeHandle == DTM.NULL)
1141 return DTM.NULL;
1151 * or DTM.NULL to indicate none exists.
1155 if (nodeHandle == DTM.NULL)
1156 return DTM.NULL;
1159 while ((node = _nextsib(node)) != DTM.NULL &&
1164 return (node == DTM.NULL ? DTM.NULL : makeNodeHandle(node));
1169 * WARNING: DTM is asymmetric; this operation is resolved by search, and is
1174 * or DTM.NULL to indicate none exists.
1178 if (nodeHandle == DTM.NULL)
1179 return DTM.NULL;
1191 int result = DTM.NULL;
1207 * @return int DTM node-number of the resolved attr,
1208 * or DTM.NULL to indicate none exists.
1213 if (_type(nodeID) == DTM.ATTRIBUTE_NODE) {
1217 return DTM.NULL;
1226 * @return int DTM node-identity of the resolved attr,
1227 * or DTM.NULL to indicate none exists.
1232 while (DTM.NULL != (identity = getNextNodeIdentity(identity))) {
1235 if (type == DTM.ATTRIBUTE_NODE) {
1237 } else if (type != DTM.NAMESPACE_NODE) {
1242 return DTM.NULL;
1250 * locations during DTM construction. Table is a Vector of
1277 // Most recent. May be -1 (none) if DTM was pruned.
1368 if (getNodeType(rootHandle) == DTM.DOCUMENT_NODE) {
1370 uppermostNSCandidateID = (ch != DTM.NULL) ? ch : rootID;
1457 * @return handle of first namespace, or DTM.NULL to indicate none exists.
1464 if (_type(identity) == DTM.ELEMENT_NODE)
1484 if (_type(identity) == DTM.ELEMENT_NODE)
1486 while (DTM.NULL != (identity = getNextNodeIdentity(identity)))
1489 if (type == DTM.NAMESPACE_NODE)
1491 else if (DTM.ATTRIBUTE_NODE != type)
1509 * @return handle of next namespace, or DTM.NULL to indicate none exists.
1535 while (DTM.NULL != (identity = getNextNodeIdentity(identity)))
1538 if (type == DTM.NAMESPACE_NODE)
1542 else if (type != DTM.ATTRIBUTE_NODE)
1548 return DTM.NULL;
1556 * or DTM.NULL to indicate none exists.
1566 return DTM.NULL;
1573 * with the DTM Manager.
1589 * aid porting of DOM code to DTM.</p>
1597 if (DTM.DOCUMENT_NODE == getNodeType(nodeHandle))
1598 return DTM.NULL;
1680 // %REVIEW% This _should_ only be null if someone asked the wrong DTM about the node...
1836 if (nodeHandle == DTM.NULL)
1837 return DTM.NULL;
1865 /*if (nodeHandle != DTM.NULL)
1868 return DTM.NULL;*/
1882 /*if (nodeId != DTM.NULL)
1885 return DTM.NULL;*/
1893 * Tests whether DTM DOM implementation implements a specific feature and
2032 * <code>DTM.NULL</code>. Behavior is not defined if more than one element
2035 * information available to the DTM implementation.
2037 * not are expected to return <code>DTM.NULL</code>.
2088 * during construction of the DTM document.
2090 * @return true if this DTM supports prestripping.
2214 * @return A node representation of the DTM node.
2318 * A dummy routine to satisify the abstract interface. If the DTM
2327 * A dummy routine to satisify the abstract interface. If the DTM
2336 * Migrate a DTM built with an old DTMManager to a new DTMManager.
2337 * After the migration, the new DTMManager will treat the DTM as
2339 * This is used to support DTM sharing between multiple transformations.
2349 /** Query which DTMManager this DTM is currently being handled by.
2351 * %REVEW% Should this become part of the base DTM API?
2353 * @return a DTMManager, or null if this is a "stand-alone" DTM.
2360 /** Query which DTMIDs this DTM is currently using within the DTMManager.
2362 * %REVEW% Should this become part of the base DTM API?
2364 * @return an IntVector, or null if this is a "stand-alone" DTM.