|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.bind.helpers Class ParseConversionEventImpl
java.lang.Object javax.xml.bind.helpers.ValidationEventImpl javax.xml.bind.helpers.ParseConversionEventImpl
- All Implemented Interfaces:
- ParseConversionEvent, ValidationEvent
public class ParseConversionEventImpl
- extends ValidationEventImpl
- implements ParseConversionEvent
Extends:
ValidationEventImpl
Implements:
ParseConversionEvent
ParseConversionEvent 接口的默认实现。
允许 JAXB 提供者使用实现了 ValidationEvent 接口的任何类。提供此类只是为了方便使用。
version |
| |
since | JAXB1.0 | |
See also | javax.xml.bind.ParseConversionEvent, javax.xml.bind.Validator, javax.xml.bind.ValidationEventHandler, javax.xml.bind.ValidationEvent, javax.xml.bind.ValidationEventLocator |
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 |
---|
ERROR, FATAL_ERROR, WARNING |
Constructor Summary | |
---|---|
ParseConversionEventImpl(int _severity,
String _message,
ValidationEventLocator _locator)
Create a new ParseConversionEventImpl. |
|
ParseConversionEventImpl(int _severity,
String _message,
ValidationEventLocator _locator,
Throwable _linkedException)
Create a new ParseConversionEventImpl. |
Method Summary |
---|
Methods inherited from class javax.xml.bind.helpers.ValidationEventImpl |
---|
getLinkedException, getLocator, getMessage, getSeverity, setLinkedException, setLocator, setMessage, setSeverity, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.bind.ValidationEvent |
---|
getLinkedException, getLocator, getMessage, getSeverity |
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。 |
Throws | IllegalArgumentException: 如果提供了非法的 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。 |
Throws | IllegalArgumentException: 如果提供了非法的 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
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!