ParseConversionEventImpl (Java EE 5)

Java EE API


javax.xml.bind.helpers Class ParseConversionEventImpl

java.lang.Object
  extended by javax.xml.bind.helpers.ValidationEventImpl
      extended by javax.xml.bind.helpers.ParseConversionEventImpl
All Implemented Interfaces:
ParseConversionEvent, ValidationEvent

public class ParseConversionEventImpl
extends ValidationEventImpl
implements ParseConversionEvent


ParseConversionEvent 接口的默认实现。

允许 JAXB 提供者使用实现了 ValidationEvent 接口的任何类。提供此类只是为了方便使用。

英文文档:

Default implementation of the ParseConversionEvent interface.

JAXB providers are allowed to use whatever class that implements the ValidationEvent interface. This class is just provided for a convenience.

Since:
JAXB1.0
Version:
$Revision: 1.1 $
Author:
  • Ryan Shoemaker, Sun Microsystems, Inc.
See Also:
ParseConversionEvent, Validator, ValidationEventHandler, ValidationEvent, ValidationEventLocator

Field Summary
 
Fields inherited from interface javax.xml.bind.ValidationEvent
 
Constructor Summary
 
Method Summary
 
Methods inherited from class javax.xml.bind.helpers.ValidationEventImpl
 
Methods inherited from class java.lang.Object
 
Methods inherited from interface javax.xml.bind.ValidationEvent
 

Constructor Detail

public ParseConversionEventImpl(int _severity, String _message, ValidationEventLocator _locator)
创建新的 ParseConversionEventImpl。
_severity 此事件的 severity 值。必须是 ValidationEvent.WARNING、ValidationEvent.ERROR 或 ValidationEvent.FATAL_ERROR 之一
_message 此事件的 Locator 对象,可以为 null。
_locator 一个可以提供事件的其他信息的可选链接异常,可以为 null。
ThrowsIllegalArgumentException: 如果提供了非法的 severity 字段
英文文档:

ParseConversionEventImpl

public ParseConversionEventImpl(int _severity,
                                String _message,
                                ValidationEventLocator _locator)
Create a new ParseConversionEventImpl.

Parameters:
_severity - The severity value for this event. Must be one of ValidationEvent.WARNING, ValidationEvent.ERROR, or ValidationEvent.FATAL_ERROR
_message - The text message for this event - may be null.
_locator - The locator object for this event - may be null.
Throws:
IllegalArgumentException - if an illegal severity field is supplied


public ParseConversionEventImpl(int _severity, String _message, ValidationEventLocator _locator, Throwable _linkedException)
创建新的 ParseConversionEventImpl。
_severity 此事件的 severity 值。必须是 ValidationEvent.WARNING、ValidationEvent.ERROR 或 ValidationEvent.FATAL_ERROR 之一
_message 此事件的 Locator 对象,可以为 null。
_locator 一个可以提供事件的其他信息的可选链接异常,可以为 null。
_linkedException 一个可以提供事件的其他信息的可选链接异常,可以为 null。
ThrowsIllegalArgumentException: 如果提供了非法的 severity 字段
英文文档:

ParseConversionEventImpl

public ParseConversionEventImpl(int _severity,
                                String _message,
                                ValidationEventLocator _locator,
                                Throwable _linkedException)
Create a new ParseConversionEventImpl.

Parameters:
_severity - The severity value for this event. Must be one of ValidationEvent.WARNING, ValidationEvent.ERROR, or ValidationEvent.FATAL_ERROR
_message - The text message for this event - may be null.
_locator - The locator object for this event - may be null.
_linkedException - An optional linked exception that may provide additional information about the event - may be null.
Throws:
IllegalArgumentException - if an illegal severity field is supplied



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!