public class DTMDocument extends DTMDefaultBaseIterators
| Modifier and Type | Class and Description |
|---|---|
static interface |
DTMDocument.CharacterNodeHandler |
DTMDefaultBaseIterators.AncestorIterator, DTMDefaultBaseIterators.AttributeIterator, DTMDefaultBaseIterators.ChildrenIterator, DTMDefaultBaseIterators.DescendantIterator, DTMDefaultBaseIterators.FollowingIterator, DTMDefaultBaseIterators.FollowingSiblingIterator, DTMDefaultBaseIterators.InternalAxisIteratorBase, DTMDefaultBaseIterators.NamespaceAttributeIterator, DTMDefaultBaseIterators.NamespaceChildrenIterator, DTMDefaultBaseIterators.NamespaceIterator, DTMDefaultBaseIterators.NthDescendantIterator, DTMDefaultBaseIterators.ParentIterator, DTMDefaultBaseIterators.PrecedingIterator, DTMDefaultBaseIterators.PrecedingSiblingIterator, DTMDefaultBaseIterators.RootIterator, DTMDefaultBaseIterators.SingletonIterator, DTMDefaultBaseIterators.TypedAncestorIterator, DTMDefaultBaseIterators.TypedAttributeIterator, DTMDefaultBaseIterators.TypedChildrenIterator, DTMDefaultBaseIterators.TypedDescendantIterator, DTMDefaultBaseIterators.TypedFollowingIterator, DTMDefaultBaseIterators.TypedFollowingSiblingIterator, DTMDefaultBaseIterators.TypedNamespaceIterator, DTMDefaultBaseIterators.TypedPrecedingIterator, DTMDefaultBaseIterators.TypedPrecedingSiblingIterator, DTMDefaultBaseIterators.TypedRootIterator, DTMDefaultBaseIterators.TypedSingletonIterator| Modifier and Type | Field and Description |
|---|---|
protected SuballocatedIntVector |
m_attribute
For each element node, there can be zero or more attributes.
|
protected int |
m_Document_TypeID |
protected int |
m_DocumentIdx
The Document Index will most likely be 0, but we will reference it
by variable in case that paradigm falls through.
|
protected ObjectArray |
m_ObjectArray
Store the SQL Data in this growable array
|
protected int |
m_TextNode_TypeID |
protected static String |
S_ATTRIB_NOT_SUPPORTED |
protected static String |
S_DOCUMENT |
protected static String |
S_ELEMENT_NODE |
protected static String |
S_ISFALSE |
protected static String |
S_ISTRUE |
protected static String |
S_NAMESPACE |
protected static String |
S_TEXT_NODE |
DEFAULT_BLOCKSIZE, DEFAULT_NUMBLOCKS, DEFAULT_NUMBLOCKS_SMALL, m_documentBaseURI, m_dtmIdent, m_elemIndexes, m_expandedNameTable, m_exptype, m_firstch, m_indexing, m_mgr, m_mgrDefault, m_namespaceDeclSetElements, m_namespaceDeclSets, m_nextsib, m_parent, m_prevsib, m_shouldStripWhitespaceStack, m_shouldStripWS, m_size, m_traversers, m_wsfilter, m_xstrf, NOTPROCESSED, ROOTNODEATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NAMESPACE_NODE, NOTATION_NODE, NTYPES, NULL, PROCESSING_INSTRUCTION_NODE, ROOT_NODE, TEXT_NODE| Constructor and Description |
|---|
DTMDocument(DTMManager mgr,
int ident) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
_exptype(int parm1)
Get the expanded type ID for the given node identity.
|
protected int |
_firstch(int parm1)
Get the first child for the given node identity.
|
protected int |
_level(int parm1)
Get the level in the tree for the given node identity.
|
protected int |
_nextsib(int parm1)
Get the next sibling for the given node identity.
|
protected int |
_parent(int parm1)
Get the parent for the given node identity.
|
protected int |
_prevsib(int parm1)
Get the previous sibling for the given node identity.
|
protected short |
_type(int parm1)
Get the simple type ID for the given node identity.
|
protected int |
addAttributeToNode(Object o,
int extendedType,
int pnode)
Link an attribute to a node, if the node already has one or more
attributes assigned, then just link this one to the attribute list.
|
protected int |
addElement(int level,
int extendedType,
int parent,
int prevsib) |
protected int |
addElementWithData(Object o,
int level,
int extendedType,
int parent,
int prevsib) |
void |
appendChild(int parm1,
boolean parm2,
boolean parm3)
Append a child to the end of the document.
|
void |
appendTextChild(String parm1)
Append a text node child that will be constructed from a string,
to the end of the document.
|
protected void |
cloneAttributeFromNode(int toNode,
int fromNode)
Allow two nodes to share the same set of attributes.
|
protected void |
createExpandedNameTable()
The Expanded Name table holds all of our Node names.
|
protected void |
declareNamespaceInContext(int parm1,
int parm2)
Build table of namespace declaration
locations during DTM construction.
|
void |
dispatchCharactersEvents(int nodeHandle,
ContentHandler ch,
boolean normalize)
Directly call the
characters method on the passed ContentHandler for the
string-value of the given node (see http://www.w3.org/TR/xpath#data-model
for the definition of a node's string-value).
|
protected static void |
dispatchNodeData(Node node,
ContentHandler ch,
int depth)
Retrieve the text content of a DOM subtree, appending it into a
user-supplied FastStringBuffer object.
|
void |
dispatchToEvents(int parm1,
ContentHandler parm2)
Directly create SAX parser events from a subtree.
|
void |
dumpDTM() |
protected void |
ensureSize(int parm1) |
protected void |
ensureSizeOfIndex(int parm1,
int parm2)
Ensure that the size of the element indexes can hold the information.
|
protected void |
error(String parm1)
Simple error for asserts and the like.
|
protected int |
findGTE(int[] parm1,
int parm2,
int parm3,
int parm4)
Find the first index that occurs in the list that is greater than or
equal to the given value.
|
protected int |
findInSortedSuballocatedIntVector(SuballocatedIntVector parm1,
int parm2)
Subroutine: Locate the specified node within
m_namespaceDeclSetElements, or the last element which
preceeds it in document order
%REVIEW% Inlne this into findNamespaceContext? Create SortedSuballocatedIntVector type?
|
protected SuballocatedIntVector |
findNamespaceContext(int parm1)
Retrieve list of namespace declaration locations
active at this node.
|
int |
getAttributeNode(int parm1,
String parm2,
String parm3)
Retrieves an attribute node by by qualified name and namespace URI.
|
DTMAxisIterator |
getAxisIterator(int parm1)
This is a shortcut to the iterators that implement the
XPath axes.
|
DTMAxisTraverser |
getAxisTraverser(int parm1)
This returns a stateless "traverser", that can navigate
over an XPath axis, though perhaps not in document order.
|
ContentHandler |
getContentHandler()
Return this DTM's content handler, if it has one.
|
DeclHandler |
getDeclHandler()
Return this DTM's DeclHandler, if it has one.
|
int |
getDocument()
Find the Document node handle for the document currently under construction.
|
boolean |
getDocumentAllDeclarationsProcessed()
Return an indication of
whether the processor has read the complete DTD.
|
String |
getDocumentBaseURI()
Return the base URI of the document entity.
|
String |
getDocumentEncoding(int parm1)
Return the name of the character encoding scheme
in which the document entity is expressed.
|
String |
getDocumentStandalone(int parm1)
Return an indication of the standalone status of the document,
either "yes" or "no".
|
String |
getDocumentSystemIdentifier(int parm1)
Return the system identifier of the document entity.
|
String |
getDocumentTypeDeclarationPublicIdentifier()
Return the public identifier of the external subset,
normalized as described in 4.2.2 External Entities [XML].
|
String |
getDocumentTypeDeclarationSystemIdentifier()
A document type declaration information item has the following properties:
1.
|
String |
getDocumentVersion(int parm1)
Return a string representing the XML version of the document.
|
DTDHandler |
getDTDHandler()
Return this DTM's DTDHandler, if it has one.
|
int |
getElementById(String parm1)
Returns the
Element whose ID is given by
elementId. |
EntityResolver |
getEntityResolver()
Return this DTM's EntityResolver, if it has one.
|
ErrorHandler |
getErrorHandler()
Return this DTM's ErrorHandler, if it has one.
|
int |
getExpandedTypeID(int parm1)
Given a node handle, return an ID that represents the node's expanded name.
|
int |
getExpandedTypeID(String parm1,
String parm2,
int parm3)
Given an expanded name, return an ID.
|
int |
getFirstAttribute(int parm1)
Given a node handle, get the index of the node's first attribute.
|
int |
getFirstChild(int parm1)
Given a node handle, get the handle of the node's first child.
|
int |
getFirstNamespaceNode(int parm1,
boolean parm2)
Given a node handle, get the index of the node's first child.
|
int |
getLastChild(int parm1)
Given a node handle, advance to its last child.
|
short |
getLevel(int parm1)
Get the depth level of this node in the tree (equals 1 for
a parentless node).
|
LexicalHandler |
getLexicalHandler()
Return this DTM's lexical handler, if it has one.
|
String |
getLocalName(int parm1)
Given a node handle, return its XPath-style localname.
|
String |
getLocalNameFromExpandedNameID(int parm1)
Given an expanded-name ID, return the local name part.
|
String |
getNamespaceFromExpandedNameID(int parm1)
Given an expanded-name ID, return the namespace URI part.
|
int |
getNamespaceType(int parm1)
Returns the namespace type of a specific node
|
String |
getNamespaceURI(int parm1)
Given a node handle, return its DOM-style namespace URI
(As defined in Namespaces, this is the declared URI which this node's
prefix -- or default in lieu thereof -- was mapped to.)
|
int |
getNextAttribute(int parm1)
Given a node handle, advance to the next attribute.
|
int |
getNextNamespaceNode(int parm1,
int parm2,
boolean parm3)
Given a namespace handle, advance to the next namespace.
|
protected int |
getNextNodeIdentity(int parm1)
Get the next node identity value in the list, and call the iterator
if it hasn't been added yet.
|
int |
getNextSibling(int parm1)
Given a node handle, advance to its next sibling.
|
Node |
getNode(int parm1)
Return an DOM node for the given node.
|
protected void |
getNodeData(int nodeIdx,
FastStringBuffer buf)
Retrieve the text content of a DOM subtree, appending it into a
user-supplied FastStringBuffer object.
|
String |
getNodeName(int parm1)
Given a node handle, return its DOM-style node name.
|
String |
getNodeNameX(int parm1)
Given a node handle, return the XPath node name.
|
short |
getNodeType(int parm1)
Given a node handle, return its DOM-style node type.
|
String |
getNodeValue(int parm1)
Given a node handle, return its node value.
|
protected int |
getNumberOfNodes()
Get the number of nodes that have been added.
|
int |
getOwnerDocument(int parm1)
Given a node handle, find the owning document node.
|
int |
getParent(int parm1)
Given a node handle, find its parent node.
|
String |
getPrefix(int parm1)
Given a namespace handle, return the prefix that the namespace decl is
mapping.
|
int |
getPreviousSibling(int parm1)
Given a node handle, find its preceeding sibling.
|
protected boolean |
getShouldStripWhitespace()
Find out whether or not to strip whispace nodes.
|
SourceLocator |
getSourceLocatorFor(int node)
No source information is available for DOM2DTM, so return
null here. |
XMLString |
getStringValue(int nodeHandle)
Get the string-value of a node as a String object
(see http://www.w3.org/TR/xpath#data-model
for the definition of a node's string-value).
|
char[] |
getStringValueChunk(int parm1,
int parm2,
int[] parm3)
Get a character array chunk in the string-value of a node.
|
int |
getStringValueChunkCount(int parm1)
Get number of character array chunks in
the string-value of a node.
|
DTMAxisIterator |
getTypedAxisIterator(int parm1,
int parm2)
Get an iterator that can navigate over an XPath Axis, predicated by
the extended type ID.
|
String |
getUnparsedEntityURI(String parm1)
The getUnparsedEntityURI function returns the URI of the unparsed
entity with the specified name in the same document as the context
node (see [3.3 Unparsed Entities]).
|
boolean |
hasChildNodes(int parm1)
Given a node handle, test if it has child nodes.
|
protected void |
indexNode(int parm1,
int parm2)
Add a node to the element indexes.
|
boolean |
isAttributeSpecified(int parm1)
5.
|
boolean |
isCharacterElementContentWhitespace(int parm1)
2.
|
boolean |
isDocumentAllDeclarationsProcessed(int parm1)
10.
|
boolean |
isNodeAfter(int parm1,
int parm2)
Figure out whether nodeHandle2 should be considered as being later
in the document than nodeHandle1, in Document Order as defined
by the XPath model.
|
boolean |
isSupported(String parm1,
String parm2)
Tests whether DTM DOM implementation implements a specific feature and
that feature is supported by this node.
|
boolean |
needsTwoThreads() |
protected boolean |
nextNode()
This method should try and build one or more nodes in the table.
|
protected void |
popShouldStripWhitespace()
Set whether to strip whitespaces at this point by popping out
m_shouldStripWhitespaceStack.
|
protected void |
pushShouldStripWhitespace(boolean parm1)
Set whether to strip whitespaces and push in current value of
m_shouldStripWS in m_shouldStripWhitespaceStack.
|
void |
setDocumentBaseURI(String parm1)
Set the base URI of the document entity.
|
void |
setFeature(String parm1,
boolean parm2)
Set an implementation dependent feature.
|
void |
setProperty(String property,
Object value)
For the moment all the run time properties are ignored by this
class.
|
protected void |
setShouldStripWhitespace(boolean parm1)
Set whether to strip whitespaces and set the top of the stack to
the current value of m_shouldStripWS.
|
boolean |
supportsPreStripping()
Event overriding for Debug
|
documentRegistration, documentRelease, dumpDTM, dumpNode, getDocumentRoot, getDTMIDs, getFirstAttributeIdentity, getManager, getNextAttributeIdentity, getNodeHandle, getNodeIdent, getTypedAttribute, getTypedFirstChild, getTypedNextSibling, makeNodeHandle, makeNodeIdentity, migrateToprotected static final String S_NAMESPACE
protected static final String S_ATTRIB_NOT_SUPPORTED
protected static final String S_ISTRUE
protected static final String S_ISFALSE
protected static final String S_DOCUMENT
protected static final String S_TEXT_NODE
protected static final String S_ELEMENT_NODE
protected int m_Document_TypeID
protected int m_TextNode_TypeID
protected ObjectArray m_ObjectArray
protected SuballocatedIntVector m_attribute
protected int m_DocumentIdx
public DTMDocument(DTMManager mgr, int ident)
mgr - ident - protected int addElementWithData(Object o, int level, int extendedType, int parent, int prevsib)
o - level - extendedType - parent - prevsib - protected int addElement(int level,
int extendedType,
int parent,
int prevsib)
level - extendedType - parent - prevsib - protected int addAttributeToNode(Object o, int extendedType, int pnode)
o - extendedType - pnode - protected void cloneAttributeFromNode(int toNode,
int fromNode)
toNode - fromNode - public int getFirstAttribute(int parm1)
DTMDefaultBasegetFirstAttribute in interface DTMgetFirstAttribute in class DTMDefaultBaseparm1 - public String getNodeValue(int parm1)
DTMDefaultBasegetNodeValue in interface DTMgetNodeValue in class DTMDefaultBaseparm1 - public XMLString getStringValue(int nodeHandle)
getStringValue in interface DTMgetStringValue in class DTMDefaultBasenodeHandle - The node ID.protected void getNodeData(int nodeIdx,
FastStringBuffer buf)
There are open questions regarding whitespace stripping. Currently we make no special effort in that regard, since the standard DOM doesn't yet provide DTD-based information to distinguish whitespace-in-element-context from genuine #PCDATA. Note that we should probably also consider xml:space if/when we address this. DOM Level 3 may solve the problem for us.
%REVIEW% Actually, since this method operates on the DOM side of the fence rather than the DTM side, it SHOULDN'T do any special handling. The DOM does what the DOM does; if you want DTM-level abstractions, use DTM-level methods.
nodeIdx - Index of node whose subtree is to be walked, gathering the
contents of all Text or CDATASection nodes.buf - FastStringBuffer into which the contents of the text
nodes are to be concatenated.public int getNextAttribute(int parm1)
DTMDefaultBasegetNextAttribute in interface DTMgetNextAttribute in class DTMDefaultBaseparm1 - protected int getNumberOfNodes()
DTMDefaultBasegetNumberOfNodes in class DTMDefaultBaseprotected boolean nextNode()
DTMDefaultBasenextNode in class DTMDefaultBaseprotected void createExpandedNameTable()
public void dumpDTM()
protected static void dispatchNodeData(Node node, ContentHandler ch, int depth) throws SAXException
There are open questions regarding whitespace stripping. Currently we make no special effort in that regard, since the standard DOM doesn't yet provide DTD-based information to distinguish whitespace-in-element-context from genuine #PCDATA. Note that we should probably also consider xml:space if/when we address this. DOM Level 3 may solve the problem for us.
%REVIEW% Note that as a DOM-level operation, it can be argued that this routine _shouldn't_ perform any processing beyond what the DOM already does, and that whitespace stripping and so on belong at the DTM level. If you want a stripped DOM view, wrap DTM2DOM around DOM2DTM.
node - Node whose subtree is to be walked, gathering the
contents of all Text or CDATASection nodes.ch - depth - SAXExceptionpublic void setProperty(String property, Object value)
property - a String valuevalue - an Object valuepublic SourceLocator getSourceLocatorFor(int node)
null here.node - an int valueprotected int getNextNodeIdentity(int parm1)
DTMDefaultBasegetNextNodeIdentity in class DTMDefaultBaseparm1 - public int getAttributeNode(int parm1,
String parm2,
String parm3)
DTMDefaultBasegetAttributeNode in interface DTMgetAttributeNode in class DTMDefaultBaseparm1 - parm2 - parm3 - nodeName) or DTM.NULL if there is no such
attribute.public String getLocalName(int parm1)
DTMDefaultBasegetLocalName in interface DTMgetLocalName in class DTMDefaultBaseparm1 - public String getNodeName(int parm1)
DTMDefaultBasegetNodeName in interface DTMgetNodeName in class DTMDefaultBaseparm1 - public boolean isAttributeSpecified(int parm1)
DTMDefaultBaseisAttributeSpecified in interface DTMisAttributeSpecified in class DTMDefaultBaseparm1 - true if the attribute was specified;
false if it was defaulted.public String getUnparsedEntityURI(String parm1)
DTMDefaultBaseXML processors may choose to use the System Identifier (if one is provided) to resolve the entity, rather than the URI in the Public Identifier. The details are dependent on the processor, and we would have to support some form of plug-in resolver to handle this properly. Currently, we simply return the System Identifier if present, and hope that it a usable URI or that our caller can map it to one. TODO: Resolve Public Identifiers... or consider changing function name.
If we find a relative URI reference, XML expects it to be resolved in terms of the base URI of the document. The DOM doesn't do that for us, and it isn't entirely clear whether that should be done here; currently that's pushed up to a higher level of our application. (Note that DOM Level 1 didn't store the document's base URI.) TODO: Consider resolving Relative URIs.
(The DOM's statement that "An XML processor may choose to completely expand entities before the structure model is passed to the DOM" refers only to parsed entities, not unparsed, and hence doesn't affect this function.)
getUnparsedEntityURI in interface DTMgetUnparsedEntityURI in class DTMDefaultBaseparm1 - public DTDHandler getDTDHandler()
DTMpublic String getPrefix(int parm1)
DTMDefaultBase%REVIEW% Are you sure you want "" for no prefix?
%REVIEW-COMMENT% I think so... not totally sure. -sb
getPrefix in interface DTMgetPrefix in class DTMDefaultBaseparm1 - public EntityResolver getEntityResolver()
DTMpublic String getDocumentTypeDeclarationPublicIdentifier()
DTMDefaultBasegetDocumentTypeDeclarationPublicIdentifier in interface DTMgetDocumentTypeDeclarationPublicIdentifier in class DTMDefaultBasepublic LexicalHandler getLexicalHandler()
DTMpublic boolean needsTwoThreads()
public ContentHandler getContentHandler()
DTMpublic void dispatchToEvents(int parm1,
ContentHandler parm2)
throws SAXException
DTMDefaultBasedispatchToEvents in interface DTMdispatchToEvents in class DTMDefaultBaseparm1 - parm2 - SAXExceptionpublic String getNamespaceURI(int parm1)
DTMDefaultBase%REVIEW% Null or ""? -sb
getNamespaceURI in interface DTMgetNamespaceURI in class DTMDefaultBaseparm1 - public void dispatchCharactersEvents(int nodeHandle,
ContentHandler ch,
boolean normalize)
throws SAXException
DTMDefaultBasedispatchCharactersEvents in interface DTMdispatchCharactersEvents in class DTMDefaultBasenodeHandle - ch - normalize - SAXExceptionpublic boolean supportsPreStripping()
supportsPreStripping in interface DTMsupportsPreStripping in class DTMDefaultBaseprotected int _exptype(int parm1)
DTMDefaultBase_exptype in class DTMDefaultBaseparm1 - protected SuballocatedIntVector findNamespaceContext(int parm1)
DTMDefaultBasefindNamespaceContext in class DTMDefaultBaseparm1 - protected int _prevsib(int parm1)
DTMDefaultBase_prevsib in class DTMDefaultBaseparm1 - protected short _type(int parm1)
DTMDefaultBase_type in class DTMDefaultBaseparm1 - public Node getNode(int parm1)
DTMDefaultBasegetNode in interface DTMgetNode in class DTMDefaultBaseparm1 - public int getPreviousSibling(int parm1)
DTMDefaultBasegetPreviousSibling in interface DTMgetPreviousSibling in class DTMDefaultBaseparm1 - public String getDocumentStandalone(int parm1)
DTMDefaultBasegetDocumentStandalone in interface DTMgetDocumentStandalone in class DTMDefaultBaseparm1 - public String getNodeNameX(int parm1)
DTMDefaultBasegetNodeNameX in interface DTMgetNodeNameX in class DTMDefaultBaseparm1 - public void setFeature(String parm1, boolean parm2)
DTMDefaultBase%REVIEW% Do we really expect to set features on DTMs?
setFeature in interface DTMsetFeature in class DTMDefaultBaseparm1 - parm2 - protected int _parent(int parm1)
DTMDefaultBase_parent in class DTMDefaultBaseparm1 - protected void indexNode(int parm1,
int parm2)
DTMDefaultBaseindexNode in class DTMDefaultBaseparm1 - parm2 - protected boolean getShouldStripWhitespace()
DTMDefaultBasegetShouldStripWhitespace in class DTMDefaultBaseprotected void popShouldStripWhitespace()
DTMDefaultBasepopShouldStripWhitespace in class DTMDefaultBasepublic boolean isNodeAfter(int parm1,
int parm2)
DTMDefaultBaseThere are some cases where ordering isn't defined, and neither are the results of this function -- though we'll generally return false.
isNodeAfter in interface DTMisNodeAfter in class DTMDefaultBaseparm1 - parm2 - (node1.documentOrderPosition <= node2.documentOrderPosition).public int getNamespaceType(int parm1)
DTMDefaultBasegetNamespaceType in class DTMDefaultBaseparm1 - protected int _level(int parm1)
DTMDefaultBase_level in class DTMDefaultBaseparm1 - protected void pushShouldStripWhitespace(boolean parm1)
DTMDefaultBasepushShouldStripWhitespace in class DTMDefaultBaseparm1 - public String getDocumentVersion(int parm1)
DTMDefaultBasegetDocumentVersion in interface DTMgetDocumentVersion in class DTMDefaultBaseparm1 - public boolean isSupported(String parm1, String parm2)
DTMDefaultBaseisSupported in interface DTMisSupported in class DTMDefaultBaseparm1 - parm2 - true if the specified feature is
supported on this node, false otherwise.protected void setShouldStripWhitespace(boolean parm1)
DTMDefaultBasesetShouldStripWhitespace in class DTMDefaultBaseparm1 - protected void ensureSizeOfIndex(int parm1,
int parm2)
DTMDefaultBaseensureSizeOfIndex in class DTMDefaultBaseparm1 - parm2 - protected void ensureSize(int parm1)
parm1 - public String getDocumentEncoding(int parm1)
DTMDefaultBasegetDocumentEncoding in interface DTMgetDocumentEncoding in class DTMDefaultBaseparm1 - public void appendChild(int parm1,
boolean parm2,
boolean parm3)
DTMDefaultBase%REVIEW% "End of the document" needs to be defined more clearly. Does it become the last child of the Document? Of the root element?
appendChild in interface DTMappendChild in class DTMDefaultBaseparm1 - parm2 - parm3 - public short getLevel(int parm1)
DTMDefaultBasegetLevel in interface DTMgetLevel in class DTMDefaultBaseparm1 - public String getDocumentBaseURI()
DTMDefaultBasegetDocumentBaseURI in interface DTMgetDocumentBaseURI in class DTMDefaultBasepublic int getNextNamespaceNode(int parm1,
int parm2,
boolean parm3)
DTMDefaultBasegetNextNamespaceNode in interface DTMgetNextNamespaceNode in class DTMDefaultBaseparm1 - parm2 - parm3 - public void appendTextChild(String parm1)
DTMDefaultBase%REVIEW% "End of the document" needs to be defined more clearly. Does it become the last child of the Document? Of the root element?
appendTextChild in interface DTMappendTextChild in class DTMDefaultBaseparm1 - protected int findGTE(int[] parm1,
int parm2,
int parm3,
int parm4)
DTMDefaultBasefindGTE in class DTMDefaultBaseparm1 - parm2 - parm3 - parm4 - public int getFirstNamespaceNode(int parm1,
boolean parm2)
DTMDefaultBasegetFirstNamespaceNode in interface DTMgetFirstNamespaceNode in class DTMDefaultBaseparm1 - parm2 - public int getStringValueChunkCount(int parm1)
DTMDefaultBasegetStringValueChunkCount in interface DTMgetStringValueChunkCount in class DTMDefaultBaseparm1 - public int getLastChild(int parm1)
DTMDefaultBasegetLastChild in interface DTMgetLastChild in class DTMDefaultBaseparm1 - public boolean hasChildNodes(int parm1)
DTMDefaultBase%REVIEW% This is obviously useful at the DOM layer, where it would permit testing this without having to create a proxy node. It's less useful in the DTM API, where (dtm.getFirstChild(nodeHandle)!=DTM.NULL) is just as fast and almost as self-evident. But it's a convenience, and eases porting of DOM code to DTM.
hasChildNodes in interface DTMhasChildNodes in class DTMDefaultBaseparm1 - public short getNodeType(int parm1)
DTMDefaultBase%REVIEW% Generally, returning short is false economy. Return int? %REVIEW% Make assumption that node has already arrived. Is OK?
getNodeType in interface DTMgetNodeType in class DTMDefaultBaseparm1 - public boolean isCharacterElementContentWhitespace(int parm1)
DTMDefaultBaseisCharacterElementContentWhitespace in interface DTMisCharacterElementContentWhitespace in class DTMDefaultBaseparm1 - true if the character data is whitespace;
false otherwise.public int getFirstChild(int parm1)
DTMDefaultBasegetFirstChild in interface DTMgetFirstChild in class DTMDefaultBaseparm1 - public String getDocumentSystemIdentifier(int parm1)
DTMDefaultBasegetDocumentSystemIdentifier in interface DTMgetDocumentSystemIdentifier in class DTMDefaultBaseparm1 - protected void declareNamespaceInContext(int parm1,
int parm2)
DTMDefaultBasedeclareNamespaceInContext in class DTMDefaultBaseparm1 - parm2 - public String getNamespaceFromExpandedNameID(int parm1)
DTMDefaultBasegetNamespaceFromExpandedNameID in interface DTMgetNamespaceFromExpandedNameID in class DTMDefaultBaseparm1 - public String getLocalNameFromExpandedNameID(int parm1)
DTMDefaultBasegetLocalNameFromExpandedNameID in interface DTMgetLocalNameFromExpandedNameID in class DTMDefaultBaseparm1 - public int getExpandedTypeID(int parm1)
DTMDefaultBasegetExpandedTypeID in interface DTMgetExpandedTypeID in class DTMDefaultBaseparm1 - public int getDocument()
DTMDefaultBasegetDocument in interface DTMgetDocument in class DTMDefaultBaseprotected int findInSortedSuballocatedIntVector(SuballocatedIntVector parm1, int parm2)
DTMDefaultBasefindInSortedSuballocatedIntVector in class DTMDefaultBaseparm1 - parm2 - public boolean isDocumentAllDeclarationsProcessed(int parm1)
DTMDefaultBaseisDocumentAllDeclarationsProcessed in interface DTMisDocumentAllDeclarationsProcessed in class DTMDefaultBaseparm1 - true if all declarations were processed;
false otherwise.protected void error(String parm1)
DTMDefaultBaseerror in class DTMDefaultBaseparm1 - protected int _firstch(int parm1)
DTMDefaultBase_firstch in class DTMDefaultBaseparm1 - public int getOwnerDocument(int parm1)
DTMDefaultBase%REVIEW% Since this is DOM-specific, it may belong at the DOM binding layer. Included here as a convenience function and to aid porting of DOM code to DTM.
getOwnerDocument in interface DTMgetOwnerDocument in class DTMDefaultBaseparm1 - DTM.getDocumentRoot(int nodeHandle)protected int _nextsib(int parm1)
DTMDefaultBase_nextsib in class DTMDefaultBaseparm1 - public int getNextSibling(int parm1)
DTMDefaultBasegetNextSibling in interface DTMgetNextSibling in class DTMDefaultBaseparm1 - public boolean getDocumentAllDeclarationsProcessed()
DTMDefaultBasegetDocumentAllDeclarationsProcessed in interface DTMgetDocumentAllDeclarationsProcessed in class DTMDefaultBasetrue if all declarations were processed;
false otherwise.public int getParent(int parm1)
DTMDefaultBasegetParent in interface DTMgetParent in class DTMDefaultBaseparm1 - public int getExpandedTypeID(String parm1, String parm2, int parm3)
DTMDefaultBasegetExpandedTypeID in interface DTMgetExpandedTypeID in class DTMDefaultBaseparm1 - parm2 - parm3 - public void setDocumentBaseURI(String parm1)
DTMDefaultBasesetDocumentBaseURI in interface DTMsetDocumentBaseURI in class DTMDefaultBaseparm1 - public char[] getStringValueChunk(int parm1,
int parm2,
int[] parm3)
DTMDefaultBasegetStringValueChunk in interface DTMgetStringValueChunk in class DTMDefaultBaseparm1 - parm2 - parm3 - public DTMAxisTraverser getAxisTraverser(int parm1)
DTMDefaultBaseTraversersgetAxisTraverser in interface DTMgetAxisTraverser in class DTMDefaultBaseTraversersparm1 - public DTMAxisIterator getTypedAxisIterator(int parm1, int parm2)
DTMDefaultBaseIteratorsgetTypedAxisIterator in interface DTMgetTypedAxisIterator in class DTMDefaultBaseIteratorsparm1 - parm2 - public DTMAxisIterator getAxisIterator(int parm1)
DTMDefaultBaseIteratorsgetAxisIterator in interface DTMgetAxisIterator in class DTMDefaultBaseIteratorsparm1 - public int getElementById(String parm1)
DTMDefaultBaseElement whose ID is given by
elementId. If no such element exists, returns
DTM.NULL. Behavior is not defined if more than one element
has this ID. Attributes (including those
with the name "ID") are not of type ID unless so defined by DTD/Schema
information available to the DTM implementation.
Implementations that do not know whether attributes are of type ID or
not are expected to return DTM.NULL.
%REVIEW% Presumably IDs are still scoped to a single document, and this operation searches only within a single document, right? Wouldn't want collisions between DTMs in the same process.
getElementById in interface DTMgetElementById in class DTMDefaultBaseparm1 - public DeclHandler getDeclHandler()
DTMpublic ErrorHandler getErrorHandler()
DTMpublic String getDocumentTypeDeclarationSystemIdentifier()
DTMDefaultBasegetDocumentTypeDeclarationSystemIdentifier in interface DTMgetDocumentTypeDeclarationSystemIdentifier in class DTMDefaultBaseCopyright © 2016 JBoss by Red Hat. All rights reserved.