Xalan-C++ API Documentation
Go to the documentation of this file.
18 #if !defined(XALANSOURCETREEDOCUMENT_HEADER_GUARD_1357924680)
19 #define XALANSOURCETREEDOCUMENT_HEADER_GUARD_1357924680
56 XALAN_DECLARE_XERCES_CLASS(Attributes)
57 XALAN_DECLARE_XERCES_CLASS(AttributeList)
61 XALAN_CPP_NAMESPACE_BEGIN
103 enum { eDefaultAttributeAllocatorBlockSize = 100,
104 eDefaultAttributeNSAllocatorBlockSize = 50,
105 eDefaultCommentAllocatorBlockSize = 10,
106 eDefaultElementAllocatorBlockSize = 100,
107 eDefaultElementNSAllocatorBlockSize = 100,
108 eDefaultPIAllocatorBlockSize = 10,
109 eDefaultTextAllocatorBlockSize = 100,
110 eDefaultTextIWSAllocatorBlockSize = 100,
115 eDefaultValuesStringPoolBucketCount = 997,
138 MemoryManager& theManager,
139 bool fPoolAllText = s_poolAllTextNodes,
140 block_size_type theNamesStringPoolBlockSize = eDefaultNamesStringPoolBlockSize,
141 bucket_count_type theNamesStringPoolBucketCount = eDefaultNamesStringPoolBucketCount,
142 bucket_size_type theNamesStringPoolBucketSize = eDefaultNamesStringPoolBucketSize,
143 block_size_type theValuesStringPoolBlockSize = eDefaultValuesStringPoolBlockSize,
144 bucket_count_type theValuesStringPoolBucketCount = eDefaultValuesStringPoolBucketCount,
145 bucket_size_type theValuesStringPoolBucketSize = eDefaultValuesStringPoolBucketSize);
150 MemoryManager& theManager,
151 bool fPoolAllText = s_poolAllTextNodes,
152 block_size_type theNamesStringPoolBlockSize = eDefaultNamesStringPoolBlockSize,
153 bucket_count_type theNamesStringPoolBucketCount = eDefaultNamesStringPoolBucketCount,
154 bucket_size_type theNamesStringPoolBucketSize = eDefaultNamesStringPoolBucketSize,
155 block_size_type theValuesStringPoolBlockSize = eDefaultValuesStringPoolBlockSize,
156 bucket_count_type theValuesStringPoolBucketCount = eDefaultValuesStringPoolBucketCount,
157 bucket_size_type theValuesStringPoolBucketSize = eDefaultValuesStringPoolBucketSize);
174 MemoryManager& theManager,
183 bool fPoolAllText = s_poolAllTextNodes);
249 return s_poolAllTextNodes;
255 s_poolAllTextNodes = fPool;
261 const XalanDOMChar* name,
266 bool fAddXMLNamespaceAttribute =
false);
270 const XalanDOMChar* uri,
271 const XalanDOMChar* localname,
272 const XalanDOMChar* qname,
277 bool fAddXMLNamespaceAttribute =
false);
281 const XalanDOMChar* tagName,
287 bool fAddXMLNamespaceAttribute =
false);
291 const XalanDOMChar* name,
296 bool fAddXMLNamespaceAttribute =
false);
300 const XalanDOMChar* data,
308 const XalanDOMChar* target,
309 const XalanDOMChar* data,
316 const XalanDOMChar* chars,
324 const XalanDOMChar* chars,
332 const XalanDOMChar* name,
333 const XalanDOMChar* publicId,
334 const XalanDOMChar* systemId,
335 const XalanDOMChar* notationName);
355 return m_stringBuffer.getMemoryManager();
361 const XalanDOMChar* theName,
362 const XalanDOMChar* theValue,
368 const XalanDOMChar* theName,
369 const XalanDOMChar* theValue,
376 size_t theStartIndex,
378 bool fCreateNamespaces,
383 const XalanDOMChar* theTagName,
385 XalanSize_t theAttributeCount,
395 size_t theStartIndex,
397 bool fCreateNamespaces);
404 bool fAddXMLNamespaceAttribute);
408 const XalanDOMChar* chars,
412 getNamespaceForPrefix(
413 const XalanDOMChar* theName,
417 const XalanDOMChar** theLocalName = 0);
458 AttributesArrayAllocatorType m_attributesVector;
460 IndexType m_nextIndexValue;
462 const bool m_poolAllText;
464 ElementByIDMapType m_elementsByID;
466 UnparsedEntityURIMapType m_unparsedEntityURIs;
474 static bool s_poolAllTextNodes;
479 XALAN_CPP_NAMESPACE_END
483 #endif // !defined(XALANSOURCETREEDOCUMENT_HEADER_GUARD_1357924680)
XalanSourceTreeAttributeAllocator::size_type allocator_size_type
virtual bool isIndexed() const
Determine if the document is node-order indexed.
virtual XalanNode * getLastChild() const
Gets the last child of this node.
virtual IndexType getIndex() const
Get the node's index.
void appendChildNode(XalanSourceTreeElement *theChild)
XERCES_CPP_NAMESPACE_QUALIFIER AttributeList AttributeListType
ArenaAllocatorType::size_type size_type
This class defines an interface for classes that resolve namespace prefixes to their URIs.
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)
XalanDOMString::size_type length(const XalanDOMString &theString)
Get the length of a XalanDOMString.
XalanSourceTreeElement * createElementNode(const XalanDOMChar *name, const AttributesType &attrs, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0, bool fAddXMLNamespaceAttribute=false)
virtual const XalanNodeList * getChildNodes() const
Gets a NodeList that contains all children of this node.
virtual const XalanDOMString & getNamespaceURI() const
Get the namespace URI of this node, or null if it is unspecified.
XalanSourceTreeText * createTextNode(const XalanDOMChar *chars, XalanDOMString::size_type length, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0)
XalanDOMStringPool::block_size_type block_size_type
virtual XalanElement * getDocumentElement() const
Return a reference to the root element of the document.
virtual const XalanDOMString & getNodeName() const
Gets the name of this node, depending on its type.
const XalanDOMString & getUnparsedEntityURI(const XalanDOMString &theName) const
virtual ~XalanSourceTreeDocument()
virtual const XalanDOMString & getNodeValue() const
Gets the value of this node, depending on its type.
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)
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.
XalanDocument & operator=(const XalanDocument &theSource)
XalanSourceTreeElement * createElementNode(const XalanDOMChar *tagName, const AttributeListType &attrs, const PrefixResolver &thePrefixResolver, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0, bool fAddXMLNamespaceAttribute=false)
Xalan implementation of a hashtable.
XalanSourceTreeProcessingInstruction * createProcessingInstructionNode(const XalanDOMChar *target, const XalanDOMChar *data, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0)
AllocatorType::size_type block_size_type
void unparsedEntityDeclaration(const XalanDOMChar *name, const XalanDOMChar *publicId, const XalanDOMChar *systemId, const XalanDOMChar *notationName)
virtual XalanElement * getElementById(const XalanDOMString &elementId) const
Returns the Element whose ID is given by elementId.
XalanDOMStringPool::bucket_size_type bucket_size_type
XalanDOMStringPool::bucket_count_type bucket_count_type
XalanSourceTreeElement * createElementNode(const XalanDOMChar *name, const AttributeListType &attrs, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0, bool fAddXMLNamespaceAttribute=false)
virtual NodeType getNodeType() const
An enum value representing the type of the underlying object.
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER Attributes AttributesType
XalanMap< const XalanDOMChar *, XalanSourceTreeElement * > ElementByIDMapType
virtual XalanNode * getParentNode() const
Gets the parent of this node.
XalanMap< XalanDOMString, XalanDOMString > UnparsedEntityURIMapType
XalanArrayAllocator< XalanSourceTreeAttr * > AttributesArrayAllocatorType
virtual XalanDocument * getOwnerDocument() const
Gets the Document object associated with this node.
XERCES_CPP_NAMESPACE_QUALIFIER Attributes AttributesType
virtual const XalanDOMString & getLocalName() const
Returns the local part of the qualified name of this node.
static void initialize(MemoryManager &theManager)
Perform static initialization.
void appendChildNode(XalanSourceTreeComment *theChild)
void appendChildNode(XalanSourceTreeProcessingInstruction *theChild)
static void terminate()
Perform static shut down.
static bool getPoolAllTextNodes()
XalanDOMStringHashTable::bucket_size_type bucket_size_type
XalanSourceTreeComment * createCommentNode(const XalanDOMChar *data, XalanDOMString::size_type length, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0)
virtual XalanNode * getNextSibling() const
Gets the node immediately following this node.
virtual XalanNode * getPreviousSibling() const
Gets the node immediately preceding this node.
XERCES_CPP_NAMESPACE_QUALIFIER AttributeList AttributeListType
#define XALAN_XALANSOURCETREE_EXPORT
XalanSourceTreeText * createTextIWSNode(const XalanDOMChar *chars, XalanDOMString::size_type length, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0)
bool operator==(const XalanDocument &theRHS) const
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.
virtual const XalanNamedNodeMap * getAttributes() const
Gets a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
virtual const XalanDOMString & getPrefix() const
Get the namespace prefix of this node, or null if it is unspecified.
static void setPoolAllTextNodes(bool fPool)
virtual XalanNode * getFirstChild() const
Gets the first child of this node.
Interpreting class diagrams
Doxygen and
GraphViz are
used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.
|
|