public interface ValidationEvent
Validator
, ValidationEventHandler
Modifier and Type | Field and Description |
---|---|
static int |
ERROR
符合W3C XML 1.0建议书第1.2节“错误”定义的条件
|
static int |
FATAL_ERROR
符合W3C XML 1.0建议书第1.2节“致命错误”定义的条件
|
static int |
WARNING
不符合XML 1.0建议定义的错误或致命错误的条件
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getLinkedException()
检索此警告/错误的链接异常。
|
ValidationEventLocator |
getLocator()
检索此警告/错误的定位器。
|
String |
getMessage()
检索此警告/错误的短信。
|
int |
getSeverity()
检索此警告/错误的严重性代码。
|
static final int WARNING
static final int ERROR
static final int FATAL_ERROR
int getSeverity()
必须是ValidationError.WARNING一个,ValidationError.ERROR,或ValidationError.FATAL_ERROR。
String getMessage()
Throwable getLinkedException()
ValidationEventLocator getLocator()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.