![JAR search and dependency download from the Maven repository](/logo.png)
com.thaiopensource.relaxng.exceptions.RequiredElementsMissingOneOfException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jing Show documentation
Show all versions of jing Show documentation
A branch of Jing used by the Nu Html Checker. (Jing is a tool for validating documents against RelaxNG schemas.)
The newest version!
package com.thaiopensource.relaxng.exceptions;
import org.xml.sax.Locator;
import com.thaiopensource.relaxng.impl.NameFormatter;
import com.thaiopensource.xml.util.Name;
import java.util.Set;
public class RequiredElementsMissingOneOfException extends AbstractValidationException {
private Set missingElementNames;
public RequiredElementsMissingOneOfException(Locator locator,
Name currentElement, Set missingElementNames, Name parent) {
// XXX can parent ever be null with this error?
super(parent == null ? localizer.message("required_elements_missing_one_of", NameFormatter.format(currentElement), missingElementNames.toString()) : localizer.message("required_elements_missing_one_of_parent", NameFormatter.format(parent), missingElementNames.toString()), locator, currentElement, parent);
this.missingElementNames = missingElementNames;
}
public Set getMissingElementNames() {
return missingElementNames;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy