public interface ValidationEventLocator
的ValidationEventLocator表示ValidationEvent 发生。当检测到错误或警告时,将根据正在执行的验证类型设置不同的字段。例如,按需生产,验证将包含在java内容树对象的引用而分解时间的验证会产生含有信息的适当的XML数据源定位器定位器(文件、URL、节点等)。
Validator
,
ValidationEvent
URL getURL()
int getOffset()
int getLineNumber()
int getColumnNumber()
Object getObject()
Node getNode()
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.