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, ROOTNODE
ATTRIBUTE_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, migrateTo
protected 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)
DTMDefaultBase
getFirstAttribute
in interface DTM
getFirstAttribute
in class DTMDefaultBase
parm1
- public String getNodeValue(int parm1)
DTMDefaultBase
getNodeValue
in interface DTM
getNodeValue
in class DTMDefaultBase
parm1
- public XMLString getStringValue(int nodeHandle)
getStringValue
in interface DTM
getStringValue
in class DTMDefaultBase
nodeHandle
- 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)
DTMDefaultBase
getNextAttribute
in interface DTM
getNextAttribute
in class DTMDefaultBase
parm1
- protected int getNumberOfNodes()
DTMDefaultBase
getNumberOfNodes
in class DTMDefaultBase
protected boolean nextNode()
DTMDefaultBase
nextNode
in class DTMDefaultBase
protected 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
- SAXException
public 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)
DTMDefaultBase
getNextNodeIdentity
in class DTMDefaultBase
parm1
- public int getAttributeNode(int parm1, String parm2, String parm3)
DTMDefaultBase
getAttributeNode
in interface DTM
getAttributeNode
in class DTMDefaultBase
parm1
- parm2
- parm3
- nodeName
) or DTM.NULL
if there is no such
attribute.public String getLocalName(int parm1)
DTMDefaultBase
getLocalName
in interface DTM
getLocalName
in class DTMDefaultBase
parm1
- public String getNodeName(int parm1)
DTMDefaultBase
getNodeName
in interface DTM
getNodeName
in class DTMDefaultBase
parm1
- public boolean isAttributeSpecified(int parm1)
DTMDefaultBase
isAttributeSpecified
in interface DTM
isAttributeSpecified
in class DTMDefaultBase
parm1
- true
if the attribute was specified;
false
if it was defaulted.public String getUnparsedEntityURI(String parm1)
DTMDefaultBase
XML 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 DTM
getUnparsedEntityURI
in class DTMDefaultBase
parm1
- public DTDHandler getDTDHandler()
DTM
public 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 DTM
getPrefix
in class DTMDefaultBase
parm1
- public EntityResolver getEntityResolver()
DTM
public String getDocumentTypeDeclarationPublicIdentifier()
DTMDefaultBase
getDocumentTypeDeclarationPublicIdentifier
in interface DTM
getDocumentTypeDeclarationPublicIdentifier
in class DTMDefaultBase
public LexicalHandler getLexicalHandler()
DTM
public boolean needsTwoThreads()
public ContentHandler getContentHandler()
DTM
public void dispatchToEvents(int parm1, ContentHandler parm2) throws SAXException
DTMDefaultBase
dispatchToEvents
in interface DTM
dispatchToEvents
in class DTMDefaultBase
parm1
- parm2
- SAXException
public String getNamespaceURI(int parm1)
DTMDefaultBase
%REVIEW% Null or ""? -sb
getNamespaceURI
in interface DTM
getNamespaceURI
in class DTMDefaultBase
parm1
- public void dispatchCharactersEvents(int nodeHandle, ContentHandler ch, boolean normalize) throws SAXException
DTMDefaultBase
dispatchCharactersEvents
in interface DTM
dispatchCharactersEvents
in class DTMDefaultBase
nodeHandle
- ch
- normalize
- SAXException
public boolean supportsPreStripping()
supportsPreStripping
in interface DTM
supportsPreStripping
in class DTMDefaultBase
protected int _exptype(int parm1)
DTMDefaultBase
_exptype
in class DTMDefaultBase
parm1
- protected SuballocatedIntVector findNamespaceContext(int parm1)
DTMDefaultBase
findNamespaceContext
in class DTMDefaultBase
parm1
- protected int _prevsib(int parm1)
DTMDefaultBase
_prevsib
in class DTMDefaultBase
parm1
- protected short _type(int parm1)
DTMDefaultBase
_type
in class DTMDefaultBase
parm1
- public Node getNode(int parm1)
DTMDefaultBase
getNode
in interface DTM
getNode
in class DTMDefaultBase
parm1
- public int getPreviousSibling(int parm1)
DTMDefaultBase
getPreviousSibling
in interface DTM
getPreviousSibling
in class DTMDefaultBase
parm1
- public String getDocumentStandalone(int parm1)
DTMDefaultBase
getDocumentStandalone
in interface DTM
getDocumentStandalone
in class DTMDefaultBase
parm1
- public String getNodeNameX(int parm1)
DTMDefaultBase
getNodeNameX
in interface DTM
getNodeNameX
in class DTMDefaultBase
parm1
- public void setFeature(String parm1, boolean parm2)
DTMDefaultBase
%REVIEW% Do we really expect to set features on DTMs?
setFeature
in interface DTM
setFeature
in class DTMDefaultBase
parm1
- parm2
- protected int _parent(int parm1)
DTMDefaultBase
_parent
in class DTMDefaultBase
parm1
- protected void indexNode(int parm1, int parm2)
DTMDefaultBase
indexNode
in class DTMDefaultBase
parm1
- parm2
- protected boolean getShouldStripWhitespace()
DTMDefaultBase
getShouldStripWhitespace
in class DTMDefaultBase
protected void popShouldStripWhitespace()
DTMDefaultBase
popShouldStripWhitespace
in class DTMDefaultBase
public boolean isNodeAfter(int parm1, int parm2)
DTMDefaultBase
There 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 DTM
isNodeAfter
in class DTMDefaultBase
parm1
- parm2
- (node1.documentOrderPosition <= node2.documentOrderPosition)
.public int getNamespaceType(int parm1)
DTMDefaultBase
getNamespaceType
in class DTMDefaultBase
parm1
- protected int _level(int parm1)
DTMDefaultBase
_level
in class DTMDefaultBase
parm1
- protected void pushShouldStripWhitespace(boolean parm1)
DTMDefaultBase
pushShouldStripWhitespace
in class DTMDefaultBase
parm1
- public String getDocumentVersion(int parm1)
DTMDefaultBase
getDocumentVersion
in interface DTM
getDocumentVersion
in class DTMDefaultBase
parm1
- public boolean isSupported(String parm1, String parm2)
DTMDefaultBase
isSupported
in interface DTM
isSupported
in class DTMDefaultBase
parm1
- parm2
- true
if the specified feature is
supported on this node, false
otherwise.protected void setShouldStripWhitespace(boolean parm1)
DTMDefaultBase
setShouldStripWhitespace
in class DTMDefaultBase
parm1
- protected void ensureSizeOfIndex(int parm1, int parm2)
DTMDefaultBase
ensureSizeOfIndex
in class DTMDefaultBase
parm1
- parm2
- protected void ensureSize(int parm1)
parm1
- public String getDocumentEncoding(int parm1)
DTMDefaultBase
getDocumentEncoding
in interface DTM
getDocumentEncoding
in class DTMDefaultBase
parm1
- 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 DTM
appendChild
in class DTMDefaultBase
parm1
- parm2
- parm3
- public short getLevel(int parm1)
DTMDefaultBase
getLevel
in interface DTM
getLevel
in class DTMDefaultBase
parm1
- public String getDocumentBaseURI()
DTMDefaultBase
getDocumentBaseURI
in interface DTM
getDocumentBaseURI
in class DTMDefaultBase
public int getNextNamespaceNode(int parm1, int parm2, boolean parm3)
DTMDefaultBase
getNextNamespaceNode
in interface DTM
getNextNamespaceNode
in class DTMDefaultBase
parm1
- 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 DTM
appendTextChild
in class DTMDefaultBase
parm1
- protected int findGTE(int[] parm1, int parm2, int parm3, int parm4)
DTMDefaultBase
findGTE
in class DTMDefaultBase
parm1
- parm2
- parm3
- parm4
- public int getFirstNamespaceNode(int parm1, boolean parm2)
DTMDefaultBase
getFirstNamespaceNode
in interface DTM
getFirstNamespaceNode
in class DTMDefaultBase
parm1
- parm2
- public int getStringValueChunkCount(int parm1)
DTMDefaultBase
getStringValueChunkCount
in interface DTM
getStringValueChunkCount
in class DTMDefaultBase
parm1
- public int getLastChild(int parm1)
DTMDefaultBase
getLastChild
in interface DTM
getLastChild
in class DTMDefaultBase
parm1
- 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 DTM
hasChildNodes
in class DTMDefaultBase
parm1
- 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 DTM
getNodeType
in class DTMDefaultBase
parm1
- public boolean isCharacterElementContentWhitespace(int parm1)
DTMDefaultBase
isCharacterElementContentWhitespace
in interface DTM
isCharacterElementContentWhitespace
in class DTMDefaultBase
parm1
- true
if the character data is whitespace;
false
otherwise.public int getFirstChild(int parm1)
DTMDefaultBase
getFirstChild
in interface DTM
getFirstChild
in class DTMDefaultBase
parm1
- public String getDocumentSystemIdentifier(int parm1)
DTMDefaultBase
getDocumentSystemIdentifier
in interface DTM
getDocumentSystemIdentifier
in class DTMDefaultBase
parm1
- protected void declareNamespaceInContext(int parm1, int parm2)
DTMDefaultBase
declareNamespaceInContext
in class DTMDefaultBase
parm1
- parm2
- public String getNamespaceFromExpandedNameID(int parm1)
DTMDefaultBase
getNamespaceFromExpandedNameID
in interface DTM
getNamespaceFromExpandedNameID
in class DTMDefaultBase
parm1
- public String getLocalNameFromExpandedNameID(int parm1)
DTMDefaultBase
getLocalNameFromExpandedNameID
in interface DTM
getLocalNameFromExpandedNameID
in class DTMDefaultBase
parm1
- public int getExpandedTypeID(int parm1)
DTMDefaultBase
getExpandedTypeID
in interface DTM
getExpandedTypeID
in class DTMDefaultBase
parm1
- public int getDocument()
DTMDefaultBase
getDocument
in interface DTM
getDocument
in class DTMDefaultBase
protected int findInSortedSuballocatedIntVector(SuballocatedIntVector parm1, int parm2)
DTMDefaultBase
findInSortedSuballocatedIntVector
in class DTMDefaultBase
parm1
- parm2
- public boolean isDocumentAllDeclarationsProcessed(int parm1)
DTMDefaultBase
isDocumentAllDeclarationsProcessed
in interface DTM
isDocumentAllDeclarationsProcessed
in class DTMDefaultBase
parm1
- true
if all declarations were processed;
false
otherwise.protected void error(String parm1)
DTMDefaultBase
error
in class DTMDefaultBase
parm1
- protected int _firstch(int parm1)
DTMDefaultBase
_firstch
in class DTMDefaultBase
parm1
- 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 DTM
getOwnerDocument
in class DTMDefaultBase
parm1
- DTM.getDocumentRoot(int nodeHandle)
protected int _nextsib(int parm1)
DTMDefaultBase
_nextsib
in class DTMDefaultBase
parm1
- public int getNextSibling(int parm1)
DTMDefaultBase
getNextSibling
in interface DTM
getNextSibling
in class DTMDefaultBase
parm1
- public boolean getDocumentAllDeclarationsProcessed()
DTMDefaultBase
getDocumentAllDeclarationsProcessed
in interface DTM
getDocumentAllDeclarationsProcessed
in class DTMDefaultBase
true
if all declarations were processed;
false
otherwise.public int getParent(int parm1)
DTMDefaultBase
getParent
in interface DTM
getParent
in class DTMDefaultBase
parm1
- public int getExpandedTypeID(String parm1, String parm2, int parm3)
DTMDefaultBase
getExpandedTypeID
in interface DTM
getExpandedTypeID
in class DTMDefaultBase
parm1
- parm2
- parm3
- public void setDocumentBaseURI(String parm1)
DTMDefaultBase
setDocumentBaseURI
in interface DTM
setDocumentBaseURI
in class DTMDefaultBase
parm1
- public char[] getStringValueChunk(int parm1, int parm2, int[] parm3)
DTMDefaultBase
getStringValueChunk
in interface DTM
getStringValueChunk
in class DTMDefaultBase
parm1
- parm2
- parm3
- public DTMAxisTraverser getAxisTraverser(int parm1)
DTMDefaultBaseTraversers
getAxisTraverser
in interface DTM
getAxisTraverser
in class DTMDefaultBaseTraversers
parm1
- public DTMAxisIterator getTypedAxisIterator(int parm1, int parm2)
DTMDefaultBaseIterators
getTypedAxisIterator
in interface DTM
getTypedAxisIterator
in class DTMDefaultBaseIterators
parm1
- parm2
- public DTMAxisIterator getAxisIterator(int parm1)
DTMDefaultBaseIterators
getAxisIterator
in interface DTM
getAxisIterator
in class DTMDefaultBaseIterators
parm1
- public int getElementById(String parm1)
DTMDefaultBase
Element
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 DTM
getElementById
in class DTMDefaultBase
parm1
- public DeclHandler getDeclHandler()
DTM
public ErrorHandler getErrorHandler()
DTM
public String getDocumentTypeDeclarationSystemIdentifier()
DTMDefaultBase
getDocumentTypeDeclarationSystemIdentifier
in interface DTM
getDocumentTypeDeclarationSystemIdentifier
in class DTMDefaultBase
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.