Xalan-C++ API Reference 1.12.0
|
#include <xalanc/XalanSourceTree/XalanSourceTreeDocument.hpp>
Static Public Member Functions | |
static void | initialize (MemoryManager &theManager) |
Perform static initialization. | |
static void | terminate () |
Perform static shut down. | |
static XalanSourceTreeDocument * | create (MemoryManager &theManager, bool fPoolAllText=s_poolAllTextNodes, block_size_type theNamesStringPoolBlockSize=eDefaultNamesStringPoolBlockSize, bucket_count_type theNamesStringPoolBucketCount=eDefaultNamesStringPoolBucketCount, bucket_size_type theNamesStringPoolBucketSize=eDefaultNamesStringPoolBucketSize, block_size_type theValuesStringPoolBlockSize=eDefaultValuesStringPoolBlockSize, bucket_count_type theValuesStringPoolBucketCount=eDefaultValuesStringPoolBucketCount, bucket_size_type theValuesStringPoolBucketSize=eDefaultValuesStringPoolBucketSize) |
static bool | getPoolAllTextNodes () |
static void | setPoolAllTextNodes (bool fPool) |
Additional Inherited Members | |
![]() | |
XalanDocument (const XalanDocument &theSource) | |
XalanDocument & | operator= (const XalanDocument &theSource) |
bool | operator== (const XalanDocument &theRHS) const |
![]() | |
XalanNode (const XalanNode &theSource) | |
XalanNode & | operator= (const XalanNode &theSource) |
bool | operator== (const XalanNode &theRHS) const |
Definition at line 78 of file XalanSourceTreeDocument.hpp.
typedef XalanSourceTreeAttributeAllocator::size_type xalanc::XalanSourceTreeDocument::allocator_size_type |
Definition at line 122 of file XalanSourceTreeDocument.hpp.
typedef XalanArrayAllocator<XalanSourceTreeAttr*> xalanc::XalanSourceTreeDocument::AttributesArrayAllocatorType |
Definition at line 82 of file XalanSourceTreeDocument.hpp.
Definition at line 123 of file XalanSourceTreeDocument.hpp.
Definition at line 124 of file XalanSourceTreeDocument.hpp.
Definition at line 125 of file XalanSourceTreeDocument.hpp.
typedef XalanMap< const XalanDOMChar*, XalanSourceTreeElement*> xalanc::XalanSourceTreeDocument::ElementByIDMapType |
Definition at line 86 of file XalanSourceTreeDocument.hpp.
typedef XalanMap< XalanDOMString, XalanDOMString> xalanc::XalanSourceTreeDocument::UnparsedEntityURIMapType |
Definition at line 90 of file XalanSourceTreeDocument.hpp.
Definition at line 106 of file XalanSourceTreeDocument.hpp.
xalanc::XalanSourceTreeDocument::XalanSourceTreeDocument | ( | MemoryManager & | theManager, |
bool | fPoolAllText = s_poolAllTextNodes , |
||
block_size_type | theNamesStringPoolBlockSize = eDefaultNamesStringPoolBlockSize , |
||
bucket_count_type | theNamesStringPoolBucketCount = eDefaultNamesStringPoolBucketCount , |
||
bucket_size_type | theNamesStringPoolBucketSize = eDefaultNamesStringPoolBucketSize , |
||
block_size_type | theValuesStringPoolBlockSize = eDefaultValuesStringPoolBlockSize , |
||
bucket_count_type | theValuesStringPoolBucketCount = eDefaultValuesStringPoolBucketCount , |
||
bucket_size_type | theValuesStringPoolBucketSize = eDefaultValuesStringPoolBucketSize |
||
) |
Constructor for XalanSourceTreeDocument.
fPoolAllText | If false, text node data that is not whitespace will not be pooled. |
theNamesStringPoolBlockSize | The block size for allocating strings in the name pool |
theNamesStringPoolBucketCount | The number of buckets for allocating strings in the name pool |
theNamesStringPoolBucketSize | The bucket size for allocating strings in the name pool |
theValuesStringPoolBlockSize | The block size for allocating strings in the values pool |
theValuesStringPoolBucketCount | The number of buckets for allocating strings in the values pool |
theValuesStringPoolBucketSize | The bucket size for allocating strings in the values pool |
xalanc::XalanSourceTreeDocument::XalanSourceTreeDocument | ( | MemoryManager & | theManager, |
allocator_size_type | theAttributeBlockSize, | ||
allocator_size_type | theAttributeNSBlockSize, | ||
allocator_size_type | theCommentBlockSize, | ||
allocator_size_type | theElementBlockSize, | ||
allocator_size_type | theElementNSBlockSize, | ||
allocator_size_type | thePIBlockSize, | ||
allocator_size_type | theTextBlockSize, | ||
allocator_size_type | theTextIWSBlockSize, | ||
bool | fPoolAllText = s_poolAllTextNodes |
||
) |
Constructor for XalanSourceTreeDocument.
theAttributeBlockSize | The block size for allocating attribute nodes |
theAttributeNSBlockSize | The block size for allocating attribute NS nodes |
theCommentBlockSize | The block size for allocating comment nodes |
theElementBlockSize | The block size for allocating element nodes |
theElementNSBlockSize | The block size for allocating element nodes |
theTextBlockSize | The block size for allocating text nodes, |
theTextIWSBlockSize | The block size for allocating text IWS nodes, |
fPoolAllText | If false, text node data that is not whitespace will not be pooled. |
|
virtual |
void xalanc::XalanSourceTreeDocument::appendChildNode | ( | XalanSourceTreeComment * | theChild | ) |
void xalanc::XalanSourceTreeDocument::appendChildNode | ( | XalanSourceTreeElement * | theChild | ) |
void xalanc::XalanSourceTreeDocument::appendChildNode | ( | XalanSourceTreeProcessingInstruction * | theChild | ) |
|
static |
XalanSourceTreeComment * xalanc::XalanSourceTreeDocument::createCommentNode | ( | const XalanDOMChar * | data, |
XalanDOMString::size_type | length, | ||
XalanNode * | theParentNode = 0 , |
||
XalanNode * | thePreviousSibling = 0 , |
||
XalanNode * | theNextSibling = 0 |
||
) |
XalanSourceTreeElement * xalanc::XalanSourceTreeDocument::createElementNode | ( | const XalanDOMChar * | name, |
const AttributeListType & | attrs, | ||
XalanNode * | theParentNode = 0 , |
||
XalanNode * | thePreviousSibling = 0 , |
||
XalanNode * | theNextSibling = 0 , |
||
bool | fAddXMLNamespaceAttribute = false |
||
) |
XalanSourceTreeElement * xalanc::XalanSourceTreeDocument::createElementNode | ( | const XalanDOMChar * | name, |
const AttributesType & | attrs, | ||
XalanNode * | theParentNode = 0 , |
||
XalanNode * | thePreviousSibling = 0 , |
||
XalanNode * | theNextSibling = 0 , |
||
bool | fAddXMLNamespaceAttribute = false |
||
) |
XalanSourceTreeElement * xalanc::XalanSourceTreeDocument::createElementNode | ( | const XalanDOMChar * | tagName, |
const AttributeListType & | attrs, | ||
const PrefixResolver & | thePrefixResolver, | ||
XalanNode * | theParentNode = 0 , |
||
XalanNode * | thePreviousSibling = 0 , |
||
XalanNode * | theNextSibling = 0 , |
||
bool | fAddXMLNamespaceAttribute = false |
||
) |
XalanSourceTreeElement * xalanc::XalanSourceTreeDocument::createElementNode | ( | const XalanDOMChar * | uri, |
const XalanDOMChar * | localname, | ||
const XalanDOMChar * | qname, | ||
const AttributesType & | attrs, | ||
XalanNode * | theParentNode = 0 , |
||
XalanNode * | thePreviousSibling = 0 , |
||
XalanNode * | theNextSibling = 0 , |
||
bool | fAddXMLNamespaceAttribute = false |
||
) |
XalanSourceTreeProcessingInstruction * xalanc::XalanSourceTreeDocument::createProcessingInstructionNode | ( | const XalanDOMChar * | target, |
const XalanDOMChar * | data, | ||
XalanNode * | theParentNode = 0 , |
||
XalanNode * | thePreviousSibling = 0 , |
||
XalanNode * | theNextSibling = 0 |
||
) |
XalanSourceTreeText * xalanc::XalanSourceTreeDocument::createTextIWSNode | ( | const XalanDOMChar * | chars, |
XalanDOMString::size_type | length, | ||
XalanNode * | theParentNode = 0 , |
||
XalanNode * | thePreviousSibling = 0 , |
||
XalanNode * | theNextSibling = 0 |
||
) |
XalanSourceTreeText * xalanc::XalanSourceTreeDocument::createTextNode | ( | const XalanDOMChar * | chars, |
XalanDOMString::size_type | length, | ||
XalanNode * | theParentNode = 0 , |
||
XalanNode * | thePreviousSibling = 0 , |
||
XalanNode * | theNextSibling = 0 |
||
) |
|
virtual |
Gets a NamedNodeMap
containing the attributes of this node (if it is an Element
) or null
otherwise.
Implements xalanc::XalanDocument.
|
virtual |
Gets a NodeList
that contains all children of this node.
If there are no children, this is a NodeList
containing no nodes.
Implements xalanc::XalanDocument.
|
virtual |
Return a reference to the root element of the document.
Implements xalanc::XalanDocument.
|
virtual |
Returns the Element
whose ID is given by elementId
.
If no such element exists, returns null
. Behavior is not defined if more than one element has this ID
.
Note: The DOM implementation must have information that says which attributes are of type ID. Attributes with the name "ID" are not of type ID unless so defined. Implementations that do not know whether attributes are of type ID or not are expected to return null
.
elementId | The unique id value for an element. |
Implements xalanc::XalanDocument.
Gets the first child of this node.
If there is no such node, this returns null
.
Implements xalanc::XalanDocument.
Get the node's index.
Valid only if isIndexed() reports that the document is node-order indexed.
Implements xalanc::XalanDocument.
Gets the last child of this node.
If there is no such node, this returns null
.
Implements xalanc::XalanDocument.
|
virtual |
Returns the local part of the qualified name of this node.
For nodes created with a DOM Level 1 method, such as createElement
from the Document
interface, it is null.
Implements xalanc::XalanDocument.
|
virtual |
Get the namespace URI of this node, or null
if it is unspecified.
This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given at creation time.
For nodes of any type other than ELEMENT_NODE
and ATTRIBUTE_NODE
and nodes created with a DOM Level 1 method, such as createElement
from the Document
interface, this is always null
.
Implements xalanc::XalanDocument.
Gets the node immediately following this node.
If there is no such node, this returns null
.
Implements xalanc::XalanDocument.
|
virtual |
Gets the name of this node, depending on its type.
Implements xalanc::XalanDocument.
An enum value representing the type of the underlying object.
Implements xalanc::XalanDocument.
|
virtual |
Gets the value of this node, depending on its type.
Implements xalanc::XalanDocument.
|
virtual |
Gets the Document
object associated with this node.
This is also the Document
object used to create new nodes. When this node is a Document
or a DocumentType
which is not used with any Document
yet, this is null
.
Implements xalanc::XalanDocument.
Gets the parent of this node.
All nodes, except Document
, DocumentFragment
, and Attr
may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, a null
Node is returned.
Implements xalanc::XalanDocument.
Definition at line 250 of file XalanSourceTreeDocument.hpp.
|
virtual |
Get the namespace prefix of this node, or null
if it is unspecified.
Implements xalanc::XalanDocument.
Gets the node immediately preceding this node.
If there is no such node, this returns null
.
Implements xalanc::XalanDocument.
const XalanDOMString & xalanc::XalanSourceTreeDocument::getUnparsedEntityURI | ( | const XalanDOMString & | theName | ) | const |
Perform static initialization.
See class XalanSourceTreeInit.
Determine if the document is node-order indexed.
Implements xalanc::XalanDocument.
Definition at line 256 of file XalanSourceTreeDocument.hpp.
Perform static shut down.
See class XalanSourceTreeInit.
void xalanc::XalanSourceTreeDocument::unparsedEntityDeclaration | ( | const XalanDOMChar * | name, |
const XalanDOMChar * | publicId, | ||
const XalanDOMChar * | systemId, | ||
const XalanDOMChar * | notationName | ||
) |
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Mon Feb 5 2024 20:50:04 for Xalan-C++ API Reference by