Xalan-C++ API Reference
1.12.0
|
#include <xalanc/XalanSourceTree/XalanSourceTreeDocument.hpp>
Public Member Functions | |
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. More... | |
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. More... | |
virtual | ~XalanSourceTreeDocument () |
virtual const XalanDOMString & | getNodeName () const |
Gets the name of this node, depending on its type. More... | |
virtual const XalanDOMString & | getNodeValue () const |
Gets the value of this node, depending on its type. More... | |
virtual NodeType | getNodeType () const |
An enum value representing the type of the underlying object. More... | |
virtual XalanNode * | getParentNode () const |
Gets the parent of this node. More... | |
virtual const XalanNodeList * | getChildNodes () const |
Gets a NodeList that contains all children of this node. More... | |
virtual XalanNode * | getFirstChild () const |
Gets the first child of this node. More... | |
virtual XalanNode * | getLastChild () const |
Gets the last child of this node. More... | |
virtual XalanNode * | getPreviousSibling () const |
Gets the node immediately preceding this node. More... | |
virtual XalanNode * | getNextSibling () const |
Gets the node immediately following this node. More... | |
virtual const XalanNamedNodeMap * | getAttributes () const |
Gets a NamedNodeMap containing the attributes of this node (if it is an Element ) or null otherwise. More... | |
virtual XalanDocument * | getOwnerDocument () const |
Gets the Document object associated with this node. More... | |
virtual const XalanDOMString & | getNamespaceURI () const |
Get the namespace URI of this node, or null if it is unspecified. More... | |
virtual const XalanDOMString & | getPrefix () const |
Get the namespace prefix of this node, or null if it is unspecified. More... | |
virtual const XalanDOMString & | getLocalName () const |
Returns the local part of the qualified name of this node. More... | |
virtual bool | isIndexed () const |
Determine if the document is node-order indexed. More... | |
virtual IndexType | getIndex () const |
Get the node's index. More... | |
virtual XalanElement * | getDocumentElement () const |
Return a reference to the root element of the document. More... | |
virtual XalanElement * | getElementById (const XalanDOMString &elementId) const |
Returns the Element whose ID is given by elementId . More... | |
XalanSourceTreeElement * | createElementNode (const XalanDOMChar *name, const AttributeListType &attrs, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0, bool fAddXMLNamespaceAttribute=false) |
XalanSourceTreeElement * | 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) |
XalanSourceTreeElement * | createElementNode (const XalanDOMChar *tagName, const AttributeListType &attrs, const PrefixResolver &thePrefixResolver, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0, bool fAddXMLNamespaceAttribute=false) |
XalanSourceTreeElement * | createElementNode (const XalanDOMChar *name, const AttributesType &attrs, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0, bool fAddXMLNamespaceAttribute=false) |
XalanSourceTreeComment * | createCommentNode (const XalanDOMChar *data, XalanDOMString::size_type length, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0) |
XalanSourceTreeProcessingInstruction * | createProcessingInstructionNode (const XalanDOMChar *target, const XalanDOMChar *data, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0) |
XalanSourceTreeText * | createTextNode (const XalanDOMChar *chars, XalanDOMString::size_type length, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0) |
XalanSourceTreeText * | createTextIWSNode (const XalanDOMChar *chars, XalanDOMString::size_type length, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0) |
void | unparsedEntityDeclaration (const XalanDOMChar *name, const XalanDOMChar *publicId, const XalanDOMChar *systemId, const XalanDOMChar *notationName) |
const XalanDOMString & | getUnparsedEntityURI (const XalanDOMString &theName) const |
void | appendChildNode (XalanSourceTreeComment *theChild) |
void | appendChildNode (XalanSourceTreeElement *theChild) |
void | appendChildNode (XalanSourceTreeProcessingInstruction *theChild) |
Public Member Functions inherited from xalanc::XalanDocument | |
XalanDocument () | |
virtual | ~XalanDocument () |
Public Member Functions inherited from xalanc::XalanNode | |
XalanNode () | |
virtual | ~XalanNode () |
Static Public Member Functions | |
static void | initialize (MemoryManager &theManager) |
Perform static initialization. More... | |
static void | terminate () |
Perform static shut down. More... | |
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 | |
Protected Member Functions inherited from xalanc::XalanDocument | |
XalanDocument (const XalanDocument &theSource) | |
XalanDocument & | operator= (const XalanDocument &theSource) |
bool | operator== (const XalanDocument &theRHS) const |
Protected Member Functions inherited from xalanc::XalanNode | |
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.
anonymous enum |
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.
|
virtual |
Gets the first child of this node.
If there is no such node, this returns null
.
Implements xalanc::XalanDocument.
|
virtual |
Get the node's index.
Valid only if isIndexed() reports that the document is node-order indexed.
Implements xalanc::XalanDocument.
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
inlinestatic |
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.
|
virtual |
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 |
|
static |
Perform static initialization.
See class XalanSourceTreeInit.
|
virtual |
Determine if the document is node-order indexed.
Implements xalanc::XalanDocument.
|
inlinestatic |
Definition at line 256 of file XalanSourceTreeDocument.hpp.
|
static |
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 Sun May 31 2020 10:37:37 for Xalan-C++ API Reference by 1.8.17