| java.lang.Object java.lang.Throwable java.lang.Exception net.n3.nanoxml.XMLException net.n3.nanoxml.XMLValidationException
XMLValidationException | public class XMLValidationException extends XMLException (Code) | | An XMLValidationException is thrown when the XML passed to the XML parser is
well-formed but not valid.
author: Marc De Scheemaecker version: $Name: RELEASE_2_2_1 $, $Revision: 1.3 $ |
Method Summary | |
protected void | finalize() Cleans up the object when it's destroyed. | public String | getAttributeName() Returns the name of the attribute in which the validation is violated. | public String | getAttributeValue() Returns the value of the attribute in which the validation is violated. | public String | getElementName() Returns the name of the element in which the validation is violated. |
ATTRIBUTE_WITH_INVALID_VALUE | final public static int ATTRIBUTE_WITH_INVALID_VALUE(Code) | | An attribute has an invalid value.
|
MISC_ERROR | final public static int MISC_ERROR(Code) | | Another error than those specified in this class was encountered.
|
MISSING_ATTRIBUTE | final public static int MISSING_ATTRIBUTE(Code) | | An attribute was missing.
|
MISSING_ELEMENT | final public static int MISSING_ELEMENT(Code) | | An element was missing.
|
MISSING_PCDATA | final public static int MISSING_PCDATA(Code) | | A PCDATA element was missing.
|
UNEXPECTED_ATTRIBUTE | final public static int UNEXPECTED_ATTRIBUTE(Code) | | An unexpected attribute was encountered.
|
UNEXPECTED_ELEMENT | final public static int UNEXPECTED_ELEMENT(Code) | | An unexpected element was encountered.
|
UNEXPECTED_PCDATA | final public static int UNEXPECTED_PCDATA(Code) | | An unexpected PCDATA element was encountered.
|
XMLValidationException | public XMLValidationException(int errorType, String systemID, int lineNr, String elementName, String attributeName, String attributeValue, String msg)(Code) | | Creates a new exception.
Parameters: errorType - the type of validity error Parameters: systemID - the system ID from where the data came Parameters: lineNr - the line number in the XML data where theexception occurred. Parameters: elementName - the name of the offending element Parameters: attributeName - the name of the offending attribute Parameters: attributeValue - the value of the offending attribute Parameters: msg - the message of the exception. |
finalize | protected void finalize() throws Throwable(Code) | | Cleans up the object when it's destroyed.
|
getAttributeName | public String getAttributeName()(Code) | | Returns the name of the attribute in which the validation is violated.
If there is no current attribute, null is returned.
|
getAttributeValue | public String getAttributeValue()(Code) | | Returns the value of the attribute in which the validation is violated.
If there is no current attribute, null is returned.
|
getElementName | public String getElementName()(Code) | | Returns the name of the element in which the validation is violated.
If there is no current element, null is returned.
|
|
|