
jsx3.xml.CdfDocument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dwr Show documentation
Show all versions of dwr Show documentation
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.
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