com.topologi.diffx.format.XMLDiffXFormatter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j Show documentation
Show all versions of docx4j Show documentation
docx4j is a library which helps you to work with the Office Open
XML file format as used in docx
documents, pptx presentations, and xlsx spreadsheets.
/*
* This file is part of the DiffX library.
*
* For licensing information please see the file license.txt included in the release.
* A copy of this licence can also be found at
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
package com.topologi.diffx.format;
import com.topologi.diffx.sequence.PrefixMapping;
/**
* An interface for formatting the output of the Diff-X algorithm as XML.
*
* This interface defines some additional methods that are specific to XML.
*
* @author Christophe Lauret
* @version 17 May 2005
*/
public interface XMLDiffXFormatter extends DiffXFormatter {
/**
* Set whether the formatter should include the XML declaration or not.
*
* @param show true
to get the formatter to write the XML declaration;
* false
otherwise.
*/
void setWriteXMLDeclaration(boolean show);
/**
* Adds the specified prefix mapping to the formatter so that they can be dclared when
* needed.
*
* @param mapping The prefix mapping to add.
*/
void declarePrefixMapping(PrefixMapping mapping);
}