![JAR search and dependency download from the Maven repository](/logo.png)
com.thaiopensource.relaxng.exceptions.RequiredElementsMissingException 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;
public class RequiredElementsMissingException extends AbstractValidationException {
private String missingElementName;
public RequiredElementsMissingException(Locator locator,
Name currentElement, String missingElementName, Name parent) {
// XXX can parent ever be null with this error?
super(parent == null ? localizer.message(missingElementName == null ? "required_elements_missing_noname" : "required_elements_missing", NameFormatter.format(currentElement), missingElementName) : localizer.message(missingElementName == null ? "required_elements_missing_noname" : "required_elements_missing", NameFormatter.format(parent), missingElementName), locator, currentElement, parent);
this.missingElementName = missingElementName;
}
public String getMissingElementName() {
return missingElementName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy