public abstract class XmlCorrector
extends java.lang.Object
Constructor and Description |
---|
XmlCorrector(TreeSchema ts,
Tree tree,
int threshold)
Constructor to use to create an XmlCorrector
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.Collection<Result> |
getCorrections()
Calculates every correction in the given threshold.
|
abstract Result |
getMinimalCorrections()
Calculates every minimal correction in the given threshold.
|
public XmlCorrector(TreeSchema ts, Tree tree, int threshold)
ts
- TreeSchema based on the DTD to use to correct the treetree
- Tree to correctthreshold
- Threshold to use to end the recursivitypublic abstract Result getMinimalCorrections() throws headerNodeException, onlyCharactersException, badAddressException, noNodeException, noMinimalTreeException, badOperationException, addNodeException, removeNodeException, abstractOperationException
headerNodeException
onlyCharactersException
badAddressException
noNodeException
noMinimalTreeException
badOperationException
addNodeException
removeNodeException
abstractOperationException
public abstract java.util.Collection<Result> getCorrections() throws headerNodeException, onlyCharactersException, badAddressException, noNodeException, noMinimalTreeException, badOperationException, addNodeException, removeNodeException, abstractOperationException
headerNodeException
onlyCharactersException
badAddressException
noNodeException
noMinimalTreeException
badOperationException
addNodeException
removeNodeException
abstractOperationException