KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > bind > helpers > ParseConversionEventImpl


1 /*
2  * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
3  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */

5
6 package javax.xml.bind.helpers;
7
8 import javax.xml.bind.ParseConversionEvent;
9 import javax.xml.bind.ValidationEventLocator;
10
11 /**
12  * Default implementation of the ParseConversionEvent interface.
13  *
14  * <p>
15  * JAXB providers are allowed to use whatever class that implements
16  * the ValidationEvent interface. This class is just provided for a
17  * convenience.
18  *
19  * @author <ul><li>Ryan Shoemaker, Sun Microsystems, Inc.</li></ul>
20  * @version $Revision: 1.2 $
21  * @see javax.xml.bind.ParseConversionEvent
22  * @see javax.xml.bind.Validator
23  * @see javax.xml.bind.ValidationEventHandler
24  * @see javax.xml.bind.ValidationEvent
25  * @see javax.xml.bind.ValidationEventLocator
26  * @since JAXB1.0
27  */

28 public class ParseConversionEventImpl
29     extends ValidationEventImpl
30     implements ParseConversionEvent {
31
32     /**
33      * Create a new ParseConversionEventImpl.
34      *
35      * @param _severity The severity value for this event. Must be one of
36      * ValidationEvent.WARNING, ValidationEvent.ERROR, or
37      * ValidationEvent.FATAL_ERROR
38      * @param _message The text message for this event - may be null.
39      * @param _locator The locator object for this event - may be null.
40      * @throws IllegalArgumentException if an illegal severity field is supplied
41      */

42     public ParseConversionEventImpl( int _severity, String JavaDoc _message,
43                                       ValidationEventLocator _locator) {
44             
45         super(_severity, _message, _locator);
46     }
47
48     /**
49      * Create a new ParseConversionEventImpl.
50      *
51      * @param _severity The severity value for this event. Must be one of
52      * ValidationEvent.WARNING, ValidationEvent.ERROR, or
53      * ValidationEvent.FATAL_ERROR
54      * @param _message The text message for this event - may be null.
55      * @param _locator The locator object for this event - may be null.
56      * @param _linkedException An optional linked exception that may provide
57      * additional information about the event - may be null.
58      * @throws IllegalArgumentException if an illegal severity field is supplied
59      */

60     public ParseConversionEventImpl( int _severity, String JavaDoc _message,
61                                       ValidationEventLocator _locator,
62                                       Throwable JavaDoc _linkedException) {
63             
64         super(_severity, _message, _locator, _linkedException);
65     }
66
67 }
68
Popular Tags