|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.xml.bind.helpers.ValidationEventImpl
public class ValidationEventImpl
ValidationEvent 介面的預設實作。
允許 JAXB 提供者使用實作了 ValidationEvent 介面的任何類別。提供此類別只是為了方便使用。
Validator,
ValidationEventHandler,
ValidationEvent,
ValidationEventLocator| 欄位摘要 |
|---|
| 從介面 javax.xml.bind.ValidationEvent 繼承的欄位 |
|---|
ERROR, FATAL_ERROR, WARNING |
| 建構子摘要 | |
|---|---|
ValidationEventImpl(int _severity,
String _message,
ValidationEventLocator _locator)
創建新的 ValidationEventImpl。 |
|
ValidationEventImpl(int _severity,
String _message,
ValidationEventLocator _locator,
Throwable _linkedException)
創建新的 ValidationEventImpl。 |
|
| 方法摘要 | |
|---|---|
Throwable |
getLinkedException()
檢索此警告/錯誤的連接異常。 |
ValidationEventLocator |
getLocator()
檢索此警告/錯誤的定位符。 |
String |
getMessage()
檢索此警告/錯誤的文本訊息。 |
int |
getSeverity()
檢索此警告/錯誤的嚴重性程式碼。 |
void |
setLinkedException(Throwable _linkedException)
設置此事件的 linked exception 欄位。 |
void |
setLocator(ValidationEventLocator _locator)
設置此事件的 Locator 物件。 |
void |
setMessage(String _message)
設置此事件的 message 欄位。 |
void |
setSeverity(int _severity)
設置此事件的 severity 欄位。 |
String |
toString()
以有助於除錯的格式返回此物件的字元串表示形式。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public ValidationEventImpl(int _severity,
String _message,
ValidationEventLocator _locator)
_severity - 此事件的 severity 值。必須是 ValidationEvent.WARNING、ValidationEvent.ERROR 或 ValidationEvent.FATAL_ERROR 之一_message - 此事件的文本訊息,可以為 null。_locator - 此事件的 Locator 物件,可以為 null。
IllegalArgumentException - 如果提供了非法的 severity 欄位
public ValidationEventImpl(int _severity,
String _message,
ValidationEventLocator _locator,
Throwable _linkedException)
_severity - 此事件的 severity 值。必須是 ValidationEvent.WARNING、ValidationEvent.ERROR 或 ValidationEvent.FATAL_ERROR 之一_message - 此事件的文本訊息,可以為 null。_locator - 此事件的 Locator 物件,可以為 null。_linkedException - 一個可以提供事件的其他資訊的可選連接異常,可以為 null。
IllegalArgumentException - 如果提供了非法的 severity 欄位| 方法詳細資訊 |
|---|
public int getSeverity()
ValidationEvent 複製的描述必須是 ValidationError.WARNING、ValidationError.ERROR 或 ValidationError.FATAL_ERROR 之一。
ValidationEvent 中的 getSeveritypublic void setSeverity(int _severity)
_severity - 必須是 ValidationEvent.WARNING、ValidationEvent.ERROR 或 ValidationEvent.FATAL_ERROR 之一。
IllegalArgumentException - 如果提供了非法的 severity 欄位public String getMessage()
ValidationEvent 複製的描述
ValidationEvent 中的 getMessagepublic void setMessage(String _message)
_message - 字元串訊息,可以為 null。public Throwable getLinkedException()
ValidationEvent 複製的描述
ValidationEvent 中的 getLinkedExceptionpublic void setLinkedException(Throwable _linkedException)
_linkedException - 可選連接異常,可以為 null。public ValidationEventLocator getLocator()
ValidationEvent 複製的描述
ValidationEvent 中的 getLocatorpublic void setLocator(ValidationEventLocator _locator)
_locator - 定位符,可以為 null。public String toString()
Object 中的 toStringObject.equals(Object)
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。