|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.bind Interface ValidationEvent
- All Known Subinterfaces:
- NotIdentifiableEvent, ParseConversionEvent, PrintConversionEvent
- All Known Implementing Classes:
- NotIdentifiableEventImpl, ParseConversionEventImpl, PrintConversionEventImpl, ValidationEventImpl
public interface ValidationEvent
Implemented by:
NotIdentifiableEvent, ParseConversionEvent, PrintConversionEvent, ValidationEventImpl
此事件指示在执行解组操作期间验证传入的 XML 数据时、对 Java 内容树执行按需验证时或将 Java 内容树编组回 XML 数据时遇到问题。
version |
| |
since | JAXB1.0 | |
See also | javax.xml.bind.Validator, javax.xml.bind.ValidationEventHandler |
This event indicates that a problem was encountered while validating the incoming XML data during an unmarshal operation, while performing on-demand validation of the Java content tree, or while marshalling the Java content tree back to XML data.
- Since:
- JAXB1.0
- Version:
- $Revision: 1.1 $
- Author:
- Ryan Shoemaker, Sun Microsystems, Inc.
- Kohsuke Kawaguchi, Sun Microsystems, Inc.
- Joe Fialli, Sun Microsystems, Inc.
- See Also:
Validator
,ValidationEventHandler
Field Summary | |
---|---|
static int |
ERROR
Conditions that correspond to the definition of "error" in section 1.2 of the W3C XML 1.0 Recommendation |
static int |
FATAL_ERROR
Conditions that correspond to the definition of "fatal error" in section 1.2 of the W3C XML 1.0 Recommendation |
static int |
WARNING
Conditions that are not errors or fatal errors as defined by the XML 1.0 recommendation |
Method Summary | |
---|---|
Throwable |
getLinkedException()
Retrieve the linked exception for this warning/error. |
ValidationEventLocator |
getLocator()
Retrieve the locator for this warning/error. |
String |
getMessage()
Retrieve the text message for this warning/error. |
int |
getSeverity()
Retrieve the severity code for this warning/error. |
Field Detail |
---|
英文文档:
WARNING
static final int WARNING
- Conditions that are not errors or fatal errors as defined by the
XML 1.0 recommendation
- See Also:
- Constant Field Values
英文文档:
ERROR
static final int ERROR
- Conditions that correspond to the definition of "error" in section
1.2 of the W3C XML 1.0 Recommendation
- See Also:
- Constant Field Values
英文文档:
FATAL_ERROR
static final int FATAL_ERROR
- Conditions that correspond to the definition of "fatal error" in section
1.2 of the W3C XML 1.0 Recommendation
- See Also:
- Constant Field Values
Method Detail |
---|
public int
getSeverity()
检索此警告/错误的严重性代码。
必须是 ValidationError.WARNING、ValidationError.ERROR 或 ValidationError.FATAL_ERROR 之一。
return | 此警告/错误的严重性代码 |
getSeverity
int getSeverity()
- Retrieve the severity code for this warning/error.
Must be one of ValidationError.WARNING, ValidationError.ERROR, or ValidationError.FATAL_ERROR.
- Returns:
- the severity code for this warning/error
public String
getMessage()
检索此警告/错误的文本消息。
return | 此警告/错误的文本消息;如果没有设置此消息,则返回 null |
getMessage
String getMessage()
- Retrieve the text message for this warning/error.
- Returns:
- the text message for this warning/error or null if one wasn't set
public Throwable
getLinkedException()
检索此警告/错误的链接异常。
return | 此警告/错误的链接异常;如果未设置此异常,则返回 null |
getLinkedException
Throwable getLinkedException()
- Retrieve the linked exception for this warning/error.
- Returns:
- the linked exception for this warning/error or null if one wasn't set
public ValidationEventLocator
getLocator()
检索此警告/错误的定位符。
return | 指示发生此警告/错误的位置的定位符 |
getLocator
ValidationEventLocator getLocator()
- Retrieve the locator for this warning/error.
- Returns:
- the locator that indicates where the warning/error occurred
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!