Skip to content

Commit 6063fff

Browse files
committed
Added XML reference for format() and toString()
1 parent ea02d1d commit 6063fff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

core/src/processing/data/XML.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,6 @@ public double getDouble(String name) {
721721
*
722722
* @param name the non-null full name of the attribute.
723723
* @param defaultValue the default value of the attribute.
724-
*
725724
* @return the value, or defaultValue if the attribute does not exist.
726725
*/
727726
public double getDouble(String name, double defaultValue) {
@@ -761,7 +760,12 @@ public void setContent(String text) {
761760

762761
/**
763762
* Format this XML data as a String.
763+
*
764+
* @webref xml:method
765+
* @brief Formats XML data as a String
764766
* @param indent -1 for a single line (and no declaration), >= 0 for indents and newlines
767+
* @return the content
768+
* @see XML#toString()
765769
*/
766770
public String format(int indent) {
767771
try {
@@ -847,6 +851,11 @@ public String format(int indent) {
847851
* Return the XML document formatted with two spaces for indents.
848852
* Chosen to do this since it's the most common case (e.g. with println()).
849853
* Same as format(2). Use the format() function for more options.
854+
*
855+
* @webref xml:method
856+
* @brief Gets XML data as a String using default formatting
857+
* @return the content
858+
* @see XML#format(int)
850859
*/
851860
@Override
852861
public String toString() {

0 commit comments

Comments
 (0)