public class DefaultValidationEventHandler extends Object implements ValidationEventHandler
JAXB 1默认验证事件处理程序。这是从一个源代码管理模式,是送的JAXB 1绑定编译器生成创建的所有对象的默认处理程序。
这种处理使数据和验证操作,在第一个错误或致命错误失败。
这个处理器不是JAXB映射类以下的JAXB 2或以后的版本默认处理程序。默认的验证事件处理已发生变化,在Unmarshaller
和Marshaller
指定。
Unmarshaller
,
Validator
,
ValidationEventHandler
Constructor and Description |
---|
DefaultValidationEventHandler() |
public boolean handleEvent(ValidationEvent event)
ValidationEventHandler
ValidationEventLocator
嵌入它表明发生错误或警告。
如果从这个方法抛出unchecked异常,JAXB提供程序将把它当作如果方法返回false,中断当前的数据,验证操作,或元帅。
handleEvent
接口
ValidationEventHandler
event
的封装验证事件信息。如果这个参数为空,则是一个提供程序错误。
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.