JavaTM 2 Platform
Standard Ed. 6

javax.xml.bind.helpers
类 PrintConversionEventImpl

java.lang.Object
  继承者 javax.xml.bind.helpers.ValidationEventImpl
      继承者 javax.xml.bind.helpers.PrintConversionEventImpl
所有已实现的接口:
PrintConversionEvent, ValidationEvent

public class PrintConversionEventImpl
extends ValidationEventImpl
implements PrintConversionEvent

PrintConversionEvent 接口的默认实现。

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

从以下版本开始:
JAXB1.0
另请参见:
PrintConversionEvent, Validator, ValidationEventHandler, ValidationEvent, ValidationEventLocator

字段摘要
 
从接口 javax.xml.bind.ValidationEvent 继承的字段
ERROR, FATAL_ERROR, WARNING
 
构造方法摘要
PrintConversionEventImpl(int _severity, String _message, ValidationEventLocator _locator)
          创建新的 PrintConversionEventImpl。
PrintConversionEventImpl(int _severity, String _message, ValidationEventLocator _locator, Throwable _linkedException)
          创建新的 PrintConversionEventImpl。
 
方法摘要
 
从类 javax.xml.bind.helpers.ValidationEventImpl 继承的方法
getLinkedException, getLocator, getMessage, getSeverity, setLinkedException, setLocator, setMessage, setSeverity, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 javax.xml.bind.ValidationEvent 继承的方法
getLinkedException, getLocator, getMessage, getSeverity
 

构造方法详细信息

PrintConversionEventImpl

public PrintConversionEventImpl(int _severity,
                                String _message,
                                ValidationEventLocator _locator)
创建新的 PrintConversionEventImpl。

参数:
_severity - 此事件的 severity 值。必须是 ValidationEvent.WARNING、ValidationEvent.ERROR 或 ValidationEvent.FATAL_ERROR 之一
_message - 此事件的文本消息,可以为 null。
_locator - 此事件的 Locator 对象,可以为 null。
抛出:
IllegalArgumentException - 如果提供了非法的 severity 字段

PrintConversionEventImpl

public PrintConversionEventImpl(int _severity,
                                String _message,
                                ValidationEventLocator _locator,
                                Throwable _linkedException)
创建新的 PrintConversionEventImpl。

参数:
_severity - 此事件的 severity 值。必须是 ValidationEvent.WARNING、ValidationEvent.ERROR 或 ValidationEvent.FATAL_ERROR 之一
_message - 此事件的文本消息,可以为 null。
_locator - 此事件的 Locator 对象,可以为 null。
_linkedException - 一个可以提供事件其他信息的可选链接异常,可以为 null。
抛出:
IllegalArgumentException - 如果提供了非法的 severity 字段

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only