|
Xalan-C++ API Reference
1.12.0
|
Go to the documentation of this file.
18 #if !defined(DOMSERVICES_HEADER_GUARD_1357924680)
19 #define DOMSERVICES_HEADER_GUARD_1357924680
85 initialize(MemoryManager& theManager);
121 getNodeData(node, data);
125 doGetNodeData(node, context, data);
187 getNodeData(document, data);
191 doGetNodeData(document, context, data);
221 getNodeData(documentFragment, data);
225 doGetNodeData(documentFragment, context, data);
255 getNodeData(element, data);
259 doGetNodeData(element, context, data);
306 getNodeData(text, data);
310 doGetNodeData(text, context, data);
327 MemberFunctionPtr
function);
342 MemberFunctionPtr
function)
346 getNodeData(node, formatterListener,
function);
350 doGetNodeData(node, context, formatterListener,
function);
365 MemberFunctionPtr
function)
367 sendData(formatterListener,
function, attribute.
getNodeValue());
381 MemberFunctionPtr
function)
383 sendData(formatterListener,
function, comment.
getData());
397 MemberFunctionPtr
function);
412 MemberFunctionPtr
function)
416 getNodeData(document, formatterListener,
function);
420 doGetNodeData(document, context, formatterListener,
function);
435 MemberFunctionPtr
function);
450 MemberFunctionPtr
function)
454 getNodeData(documentFragment, formatterListener,
function);
458 doGetNodeData(documentFragment, context, formatterListener,
function);
473 MemberFunctionPtr
function);
488 MemberFunctionPtr
function)
492 getNodeData(element, formatterListener,
function);
496 doGetNodeData(element, context, formatterListener,
function);
511 MemberFunctionPtr
function)
513 sendData(formatterListener,
function, pi.
getData());
527 MemberFunctionPtr
function)
529 sendData(formatterListener,
function, text.
getData());
545 MemberFunctionPtr
function)
549 getNodeData(text, formatterListener,
function);
553 doGetNodeData(text, context, formatterListener,
function);
581 if (
startsWith(theName, s_XMLNamespaceWithSeparator) ==
true)
586 else if (
equals(theName, s_XMLNamespace) ==
true)
588 return s_emptyString;
623 if (theLocalName.
empty() ==
false)
656 return startsWith(theName, DOMServices::s_XMLNamespaceWithSeparator) ==
true ||
657 equals(theName, DOMServices::s_XMLNamespace) ==
true;
670 if(node.
getNodeType() == XalanNode::ATTRIBUTE_NODE)
672 return static_cast<const XalanAttr&
>(node).getOwnerElement();
688 getNamespaceForPrefix(
703 getNamespaceForPrefix(
704 const XalanDOMChar* theName,
752 DOMServices::MemberFunctionPtr
function);
837 const XalanNode& node,
838 ExecutionContext& context,
839 FormatterListener& formatterListener,
840 MemberFunctionPtr
function);
852 const XalanDocument& document,
853 ExecutionContext& context,
854 FormatterListener& formatterListener,
855 MemberFunctionPtr
function);
867 const XalanDocumentFragment& documentFragment,
868 ExecutionContext& context,
869 FormatterListener& formatterListener,
870 MemberFunctionPtr
function);
882 const XalanElement& element,
883 ExecutionContext& context,
884 FormatterListener& formatterListener,
885 MemberFunctionPtr
function);
897 const XalanText& text,
898 ExecutionContext& context,
899 FormatterListener& formatterListener,
900 MemberFunctionPtr
function)
902 assert(context.hasPreserveOrStripSpaceConditions() ==
true);
904 if (context.shouldStripSourceNode(text) ==
false)
906 sendData(formatterListener,
function, text.getData());
919 FormatterListener& formatterListener,
920 MemberFunctionPtr
function,
921 const XalanDOMString& data)
930 (formatterListener.*
function)(
943 #endif // DOMSERVICES_HEADER_GUARD_1357924680
virtual const XalanDOMString & getData() const =0
Returns the character data of the node that implements this interface.
static const XalanDOMString s_emptyString
static const XalanDOMString::size_type & s_XMLNamespaceURILength
static const XalanDOMString::size_type & s_XMLNamespacePrefixLength
#define XALAN_DOMSUPPORT_EXPORT
static void getNodeData(const XalanAttr &attribute, XalanDOMString &data)
Retrieves data for node.
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
static void getNodeData(const XalanProcessingInstruction &pi, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static void getNodeData(const XalanNode &node, ExecutionContext &context, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static void getNodeData(const XalanComment &comment, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
virtual const XalanDOMString & getNodeName() const =0
Gets the name of this node, depending on its type.
static void getNodeData(const XalanText &text, ExecutionContext &context, XalanDOMString &data)
Retrieves data for node.
static const XalanDOMString::size_type & s_XMLNamespacePrefixURILength
virtual const XalanDOMString & getNodeName() const =0
Gets the name of this node, depending on its type.
static void getNodeData(const XalanDocumentFragment &documentFragment, ExecutionContext &context, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static void getNodeData(const XalanNode &node, ExecutionContext &context, XalanDOMString &data)
Retrieves data for node.
virtual const XalanDOMString & getData() const =0
The content of this processing instruction.
static const XalanDOMString & s_XMLNamespaceSeparatorString
XalanDOMString & append(const XalanDOMString &theSource)
virtual const XalanDOMString & getNodeName() const =0
Gets the name of this node, depending on its type.
static void getNodeData(const XalanDocumentFragment &documentFragment, ExecutionContext &context, XalanDOMString &data)
Retrieves data for node.
static const XalanDOMString & s_XMLNamespacePrefix
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
equals(const XalanDOMChar *theLHS, const XalanDOMChar *theRHS, XalanDOMString::size_type theLength)
Compare the contents of two arrays for equality.
static const XalanDOMString & s_XMLNamespacePrefixURI
static const XalanDOMString & s_XMLNamespace
static const XalanDOMString::size_type & s_XMLNamespaceLength
static const XalanDOMString::size_type & s_XMLNamespaceWithSeparatorLength
static const XalanDOMString & s_XMLStringWithSeparator
static void getNodeData(const XalanText &text, XalanDOMString &data)
Retrieves data for node.
static const XalanDOMString & getLocalNameOfNode(const XalanNode &n)
Retrieve local name of node, taking into account the differences between the DOM and XSLT data models...
static const XalanDOMString & s_XMLString
virtual NodeType getNodeType() const =0
An enum value representing the type of the underlying object.
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
static const XalanDOMString & s_XMLNamespaceURI
static void getNodeData(const XalanText &text, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static void getNodeData(const XalanText &text, ExecutionContext &context, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static void getNodeData(const XalanAttr &attribute, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
virtual bool shouldStripSourceNode(const XalanText &node)=0
Determine if a text node should be stripped from the source tree, as if it weren't there.
static void getNodeData(const XalanElement &element, ExecutionContext &context, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
virtual const XalanDOMString & getNodeValue() const =0
Gets the value of this node, depending on its type.
static const XalanDOMString::size_type & s_XMLStringWithSeparatorLength
static void getNodeData(const XalanComment &comment, XalanDOMString &data)
Retrieves data for node.
static const XalanDOMString & s_XMLNamespaceWithSeparator
static void getNodeData(const XalanElement &element, ExecutionContext &context, XalanDOMString &data)
Retrieves data for node.
static const XalanDOMString & getNameOfNode(const XalanAttr &attr)
Retrieve the name of the node, taking into account the differences between the DOM and XSLT data mode...
static void getNodeData(const XalanDocument &document, ExecutionContext &context, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static const XalanDOMString::size_type & s_XMLNamespaceSeparatorStringLength
static bool isNamespaceDeclaration(const XalanAttr &n)
Determine whether or not an attribute node is declaring a namespace.
This class defines an interface for classes that resolve namespace prefixes to their URIs.
startsWith(const XalanDOMChar *theString, XalanDOMString::size_type theStringLength, const XalanDOMChar *theSubstring, XalanDOMString::size_type theSubstringLength)
Simulates the java String method startsWith().
static XalanNode * getParentOfNode(const XalanNode &node)
Retrieve the parent of a node.
bool hasPreserveOrStripSpaceConditions() const
static const XalanDOMString::size_type & s_XMLStringLength
static void getNodeData(const XalanDocument &document, ExecutionContext &context, XalanDOMString &data)
Retrieves data for node.
virtual XalanNode * getParentNode() const =0
Gets the parent of this node.
static const XalanDOMString & getNameOfNode(const XalanElement &element)
Retrieve the name of the node, taking into account the differences between the DOM and XSLT data mode...
static void getNodeData(const XalanProcessingInstruction &pi, XalanDOMString &data)
Retrieves data for node.