@Override
	public void toXML(final StringBuilder builder,
			final ConfigVerification errors)
	{

		boolean verifyDiff = controller.isDiffVerificationEnabled();
		boolean verifyEncoding = controller.isEncodingVerificationEnabled();
		boolean statsOutput = controller.isStatsOutputEnabled();
		boolean debugOutput = controller.isDebugOutputEnabled();

		if (verifyDiff || verifyEncoding || statsOutput || debugOutput) {

			builder.append("\t<debug>\r\n");

			if (verifyDiff) {
				builder.append("\t\t<verification_diff>" + verifyDiff
						+ "</verification_diff>\r\n");
			}

			if (verifyEncoding) {
				builder.append("\t\t<verification_encoding>" + verifyEncoding
						+ "</verification_encoding>\r\n");
			}

			if (statsOutput) {
				builder.append("\t\t<statistical_output>" + statsOutput
						+ "</statistical_output>\r\n");
			}

			builder.append("\t\t<debug_output>\r\n"); // \"" + path +
														// "\"</debug_output>\r\n");
			builder.append("\t\t\t<enabled>" + debugOutput + "</enabled>\r\n");

			if (debugOutput) {

				String path = debugOutputField.getText();
				if (path.length() == 0) {
					errors.add(new ConfigItem(ConfigItemTypes.WARNING,
							ConfigErrorKeys.PATH_NOT_SET,
							"The folder of the debug output is not specified."));
				}
				if (!path.endsWith(File.separator)
						&& path.contains(File.separator)) {
					path += File.separator;
				}

				builder.append("\t\t\t<path>\"" + path + "\"</path>\r\n");
			}

			builder.append("\t\t</debug_output>\r\n");
			builder.append("\t</debug>\r\n");
		}
	}
@ Override public void toXML ( final StringBuilder builder , final ConfigVerification errors ) { boolean verifyDiff = controller . isDiffVerificationEnabled ( ) ; boolean verifyEncoding = controller . isEncodingVerificationEnabled ( ) ; boolean statsOutput = controller . isStatsOutputEnabled ( ) ; boolean debugOutput = controller . isDebugOutputEnabled ( ) ; if ( verifyDiff || verifyEncoding || statsOutput || debugOutput ) { builder . append ( "\t<debug>\r\n" ) ; if ( verifyDiff ) { builder . append ( "\t\t<verification_diff>" + verifyDiff + "</verification_diff>\r\n" ) ; } if ( verifyEncoding ) { builder . append ( "\t\t<verification_encoding>" + verifyEncoding + "</verification_encoding>\r\n" ) ; } if ( statsOutput ) { builder . append ( "\t\t<statistical_output>" + statsOutput + "</statistical_output>\r\n" ) ; } builder . append ( "\t\t<debug_output>\r\n" ) ; builder . append ( "\t\t\t<enabled>" + debugOutput + "</enabled>\r\n" ) ; if ( debugOutput ) { String path = debugOutputField . getText ( ) ; if ( path . length ( ) == 0 ) { errors . add ( new ConfigItem ( ConfigItemTypes . WARNING , ConfigErrorKeys . PATH_NOT_SET , "The folder of the debug output is not specified." ) ) ; } if ( ! path . endsWith ( File . separator ) && path . contains ( File . separator ) ) { path += File . separator ; } builder . append ( "\t\t\t<path>\"" + path + "\"</path>\r\n" ) ; } builder . append ( "\t\t</debug_output>\r\n" ) ; builder . append ( "\t</debug>\r\n" ) ; } }
Adds the xml description of the panels content to the StringBuilder.
Errors which occur during the xml transformation will be added to the
ConfigVerification.

@param builder
Reference to a StringBuilder object
@param errors
Reference to the ConfigVerification object