You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/08/10 20:27:33 UTC
cvs commit: xml-xalan/c/src/XalanDOM XalanAttr.hpp XalanCDATASection.hpp XalanCharacterData.hpp XalanComment.hpp XalanDocument.hpp XalanDocumentFragment.hpp XalanDocumentType.hpp XalanElement.hpp XalanEntity.hpp XalanEntityReference.hpp XalanNode.hpp XalanNotation.hpp XalanProcessingInstruction.hpp XalanText.hpp
dbertoni 00/08/10 11:27:32
Modified: c/src/XalanDOM XalanAttr.hpp XalanCDATASection.hpp
XalanCharacterData.hpp XalanComment.hpp
XalanDocument.hpp XalanDocumentFragment.hpp
XalanDocumentType.hpp XalanElement.hpp
XalanEntity.hpp XalanEntityReference.hpp
XalanNode.hpp XalanNotation.hpp
XalanProcessingInstruction.hpp XalanText.hpp
Log:
New XSLT-specific interfaces.
Revision Changes Path
1.3 +26 -0 xml-xalan/c/src/XalanDOM/XalanAttr.hpp
Index: XalanAttr.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanAttr.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanAttr.hpp 2000/04/11 20:03:43 1.2
+++ XalanAttr.hpp 2000/08/10 18:27:03 1.3
@@ -419,6 +419,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
// These interfaces are new to XalanAttr...
1.2 +29 -0 xml-xalan/c/src/XalanDOM/XalanCDATASection.hpp
Index: XalanCDATASection.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanCDATASection.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- XalanCDATASection.hpp 2000/04/11 14:29:08 1.1
+++ XalanCDATASection.hpp 2000/08/10 18:27:04 1.2
@@ -414,6 +414,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
// These interfaces are inherited from XalanCharacterData...
@@ -573,6 +599,9 @@
splitText(unsigned int offset) = 0;
//@}
+
+ virtual bool
+ isIgnorableWhitespace() const = 0;
protected:
1.3 +26 -0 xml-xalan/c/src/XalanDOM/XalanCharacterData.hpp
Index: XalanCharacterData.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanCharacterData.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanCharacterData.hpp 2000/04/11 20:03:43 1.2
+++ XalanCharacterData.hpp 2000/08/10 18:27:04 1.3
@@ -413,6 +413,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
// These interfaces are new to XalanCharacterData...
1.3 +26 -0 xml-xalan/c/src/XalanDOM/XalanComment.hpp
Index: XalanComment.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanComment.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanComment.hpp 2000/04/11 20:03:43 1.2
+++ XalanComment.hpp 2000/08/10 18:27:04 1.3
@@ -414,6 +414,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
// These interfaces are inherited from XalanCharacterData...
1.3 +28 -0 xml-xalan/c/src/XalanDOM/XalanDocument.hpp
Index: XalanDocument.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanDocument.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanDocument.hpp 2000/04/11 20:03:43 1.2
+++ XalanDocument.hpp 2000/08/10 18:27:04 1.3
@@ -428,6 +428,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if isIndexed()
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
// These interfaces are new to XalanDocument...
@@ -708,6 +734,8 @@
*/
virtual XalanElement*
getElementById(const XalanDOMString& elementId) const = 0;
+
+ // This interface is a Xalan-specific extension.
//@}
1.3 +9 -0 xml-xalan/c/src/XalanDOM/XalanDocumentFragment.hpp
Index: XalanDocumentFragment.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanDocumentFragment.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanDocumentFragment.hpp 2000/04/11 20:03:43 1.2
+++ XalanDocumentFragment.hpp 2000/08/10 18:27:04 1.3
@@ -176,6 +176,15 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ virtual bool
+ isIndexed() const = 0;
+
+ virtual unsigned long
+ getIndex() const = 0;
+
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
protected:
XalanDocumentFragment(const XalanDocumentFragment& theSource);
1.3 +26 -0 xml-xalan/c/src/XalanDOM/XalanDocumentType.hpp
Index: XalanDocumentType.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanDocumentType.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanDocumentType.hpp 2000/04/11 20:03:43 1.2
+++ XalanDocumentType.hpp 2000/08/10 18:27:04 1.3
@@ -421,6 +421,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
// These interfaces are new to XalanDocumentType...
1.3 +26 -0 xml-xalan/c/src/XalanDOM/XalanElement.hpp
Index: XalanElement.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanElement.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanElement.hpp 2000/04/11 20:03:43 1.2
+++ XalanElement.hpp 2000/08/10 18:27:04 1.3
@@ -418,6 +418,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
// These interfaces are new to XalanElement...
1.3 +26 -0 xml-xalan/c/src/XalanDOM/XalanEntity.hpp
Index: XalanEntity.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanEntity.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanEntity.hpp 2000/04/11 20:03:43 1.2
+++ XalanEntity.hpp 2000/08/10 18:27:04 1.3
@@ -412,6 +412,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
// These interfaces are new to XalanEntity...
1.3 +26 -0 xml-xalan/c/src/XalanDOM/XalanEntityReference.hpp
Index: XalanEntityReference.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanEntityReference.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanEntityReference.hpp 2000/04/11 20:03:43 1.2
+++ XalanEntityReference.hpp 2000/08/10 18:27:05 1.3
@@ -411,6 +411,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
protected:
1.3 +26 -0 xml-xalan/c/src/XalanDOM/XalanNode.hpp
Index: XalanNode.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanNode.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanNode.hpp 2000/04/11 20:03:43 1.2
+++ XalanNode.hpp 2000/08/10 18:27:05 1.3
@@ -432,6 +432,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
1.3 +26 -0 xml-xalan/c/src/XalanDOM/XalanNotation.hpp
Index: XalanNotation.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanNotation.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanNotation.hpp 2000/04/11 20:03:44 1.2
+++ XalanNotation.hpp 2000/08/10 18:27:05 1.3
@@ -411,6 +411,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
// These interfaces are new to XalanNotation...
1.3 +26 -0 xml-xalan/c/src/XalanDOM/XalanProcessingInstruction.hpp
Index: XalanProcessingInstruction.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanProcessingInstruction.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanProcessingInstruction.hpp 2000/04/11 20:03:44 1.2
+++ XalanProcessingInstruction.hpp 2000/08/10 18:27:05 1.3
@@ -411,6 +411,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
// These interfaces are new to XalanProcessingInstruction...
1.3 +35 -0 xml-xalan/c/src/XalanDOM/XalanText.hpp
Index: XalanText.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanText.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanText.hpp 2000/04/11 20:03:44 1.2
+++ XalanText.hpp 2000/08/10 18:27:05 1.3
@@ -414,6 +414,32 @@
virtual void
setPrefix(const XalanDOMString& prefix) = 0;
+ /**
+ * Determine if the document is node-order indexed.
+ *
+ * @return true if the document is indexed, otherwise false.
+ */
+ virtual bool
+ isIndexed() const = 0;
+
+ /**
+ * Get the node's index. Valid only if the owner document
+ * reports that the document is node-order indexed.
+ *
+ * @return The index value, or 0 if the node is not indexed.
+ */
+ virtual unsigned long
+ getIndex() const = 0;
+
+ /**
+ * Returns the character data of the node that implements this interface,
+ * according to the XSLT specification.
+ *
+ * @return a string containing the data.
+ */
+ virtual XalanDOMString
+ getXSLTData() const = 0;
+
//@}
// These interfaces are inherited from XalanCharacterData...
@@ -573,6 +599,15 @@
splitText(unsigned int offset) = 0;
//@}
+
+ /**
+ * Determine whether the text node instance is composed entirely of
+ * XML whitespace.
+ *
+ * @return true if the node is all XML whitespace, false if not
+ */
+ virtual bool
+ isIgnorableWhitespace() const = 0;
protected: