All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jsx3.xml.CdfDocument Maven / Gradle / Ivy

Go to download

DWR is easy Ajax for Java. It makes it simple to call Java code directly from Javascript. It gets rid of almost all the boiler plate code between the web browser and your Java code.

There is a newer version: 3.0.2-RELEASE
Show newest version
package jsx3.xml;

/**
 * CdfDocuments and the root of a Node tree.
 * @author Joe Walker [joe at getahead dot ltd dot uk]
 */
public final class CdfDocument extends Node
{
	/**
	 * Ensure all Records have unique IDs
	 * @param id the jsxid for this record 
	 */
	public CdfDocument(String id)
	{
		super(id);
	}

	/**
	 * Generate an XML string suitable for marshalling
	 */
	public String toXml()
	{
		StringBuilder result = new StringBuilder();

        // result.append("\n");
        // result.append("\n");

        result.append("\n");

		for (Record record : this)
        {
            result.append(record.toXml(0));
            result.append("\n");
		}

        result.append("\n");

        return result.toString();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy