public class VnuBadAttrValueException
extends org.xml.sax.SAXParseException
This exception enables the nu.validator.messages.MessageEmitterAdapter elaboration() and elaborateDatatypes() code to provide advice for instances of "custom" cases of datatype mismatches in bad attribute values. It's intended for use in cases of reporting datatype mismatches when checking attributes for which expressing the association between the attribute and the expected datatype(s) of it value using a schema may not be possible or practical or preferrable (for example, the case of the img|source "srcset" attribute, which has different expected datatypes depending on whether the img|source also has a "sizes" attribute).
Constructor and Description |
---|
VnuBadAttrValueException(java.lang.String elementName,
java.lang.String uri,
java.lang.String attributeName,
java.lang.String attributeValue,
java.lang.String message,
org.xml.sax.Locator locator,
java.lang.Class<?> datatypeClass,
boolean warning) |
Modifier and Type | Method and Description |
---|---|
com.thaiopensource.xml.util.Name |
getAttributeName() |
java.lang.String |
getAttributeValue() |
com.thaiopensource.xml.util.Name |
getCurrentElement() |
java.util.Map<java.lang.String,org.relaxng.datatype.DatatypeException> |
getExceptions() |
getColumnNumber, getLineNumber, getPublicId, getSystemId, toString
public VnuBadAttrValueException(java.lang.String elementName, java.lang.String uri, java.lang.String attributeName, java.lang.String attributeValue, java.lang.String message, org.xml.sax.Locator locator, java.lang.Class<?> datatypeClass, boolean warning) throws org.xml.sax.SAXException, java.lang.ClassNotFoundException
org.xml.sax.SAXException
java.lang.ClassNotFoundException
public com.thaiopensource.xml.util.Name getCurrentElement()
public com.thaiopensource.xml.util.Name getAttributeName()
public java.lang.String getAttributeValue()
public java.util.Map<java.lang.String,org.relaxng.datatype.DatatypeException> getExceptions()