CVS Update: xmlpull-api-v1/src/java/api/org/xmlpull/v1
Aleksander Andrzej Slominski <[email protected]>
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
aslom 02/10/15 13:03:52
Modified: src/java/api/org/xmlpull/v1 XmlSerializer.java
Log:
updated description of getNamespace() and getName()
from XmlSerializer to clarify theur relation to startTag()
Revision Changes Path
1.12 +9 -0 xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlSerializer.java
Index: XmlSerializer.java
===================================================================
RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlSerializer.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -t -w -r1.11 -r1.12
--- XmlSerializer.java 2002/10/12 22:17:59 1.11
+++ XmlSerializer.java 2002/10/15 18:03:52 1.12
@@ -176,6 +176,13 @@
/**
* Returns the namespace URI of the current element as set by startTag().
+ *
+ * <p><b>NOTE:</b> that measn in particaulr that: <ul>
+ * <li>if there was startTag("", ...) then getNamespace() returns ""
+ * <li>if there was startTag(null, ...) then getNamespace() returns null
+ * </ul>
+ *
+ * @return namespace set by startTag() that is currently in scope
*/
public String getNamespace ();
@@ -183,6 +190,8 @@
* Returns the name of the current element as set by startTag().
* It can only be null before first call to startTag()
* or when last endTag() is called to close first startTag().
+ *
+ * @return namespace set by startTag() that is currently in scope
*/
public String getName();