本文整理了Java中org.xml.sax.helpers.XMLFilterImpl.error()
方法的一些代码示例,展示了XMLFilterImpl.error()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLFilterImpl.error()
方法的具体详情如下:
包路径:org.xml.sax.helpers.XMLFilterImpl
类名称:XMLFilterImpl
方法名:error
[英]Filter an error event.
[中]过滤错误事件。
代码示例来源:origin: org.apache.bval/bval-jsr
@Override
public void error(SAXParseException e) throws SAXException {
this.e = e;
super.error(e);
}
代码示例来源:origin: net.sf.practicalxml/practicalxml
@Override
public void error(SAXParseException e)
throws SAXException
{
_filter.error(e);
}
代码示例来源:origin: org.apache.tomee.patch/bval-jsr
@Override
public void error(SAXParseException e) throws SAXException {
this.e = e;
super.error(e);
}
代码示例来源:origin: nu.validator/validator
private void checkId(String name, String value) throws SAXException {
if ("".equals(value)) {
super.error(new SAXParseException("Attribute \u201C" + name + "\u201D had the empty string as the value but the empty string cannot be used as an ID.", locator));
return;
}
Locator first = ids.get(value);
if (first == null) {
ids.put(value, new LocatorImpl(locator));
} else {
super.error(new SAXParseException("Attribute \u201C" + name + "\u201D declares a duplicate ID value \u201C" + value + "\u201D.", locator));
super.warning(new SAXParseException("The first occurrence of the ID value \u201C" + value + "\u201D was here.", first));
}
}
代码示例来源:origin: nu.validator/validator
super.error(new SAXParseException("\u201C" + normalizedValue + "\u201D is not a Namespaces in XML 1.0 NCName.", locator));
super.error(new SAXParseException("The attribute \u201Cxml:id\u201D was declared to be of type " + type + "in the DTD although it is required to be declared to be of type ID.", locator));
内容来源于网络,如有侵权,请联系作者删除!