JavaTM 2 Platform
Standard Ed. 6

javax.xml.bind.helpers
類別 ParseConversionEventImpl

java.lang.Object
  繼承者 javax.xml.bind.helpers.ValidationEventImpl
      繼承者 javax.xml.bind.helpers.ParseConversionEventImpl
所有已實作的介面:
ParseConversionEvent, ValidationEvent

public class ParseConversionEventImpl
extends ValidationEventImpl
implements ParseConversionEvent

ParseConversionEvent 介面的預設實作。

允許 JAXB 提供者使用實作了 ValidationEvent 介面的任何類別。提供此類別只是為了方便使用。

從以下版本開始:
JAXB1.0
另請參見:
ParseConversionEvent, Validator, ValidationEventHandler, ValidationEvent, ValidationEventLocator

欄位摘要
 
從介面 javax.xml.bind.ValidationEvent 繼承的欄位
ERROR, FATAL_ERROR, WARNING
 
建構子摘要
ParseConversionEventImpl(int _severity, String _message, ValidationEventLocator _locator)
          創建新的 ParseConversionEventImpl。
ParseConversionEventImpl(int _severity, String _message, ValidationEventLocator _locator, Throwable _linkedException)
          創建新的 ParseConversionEventImpl。
 
方法摘要
 
從類別 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
 

建構子詳細資訊

ParseConversionEventImpl

public ParseConversionEventImpl(int _severity,
                                String _message,
                                ValidationEventLocator _locator)
創建新的 ParseConversionEventImpl。

參數:
_severity - 此事件的 severity 值。必須是 ValidationEvent.WARNING、ValidationEvent.ERROR 或 ValidationEvent.FATAL_ERROR 之一
_message - 此事件的文本訊息,可以為 null。
_locator - 此事件的 Locator 物件,可以為 null。
拋出:
IllegalArgumentException - 如果提供了非法的 severity 欄位

ParseConversionEventImpl

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

參數:
_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