01: /*
02: * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
03: * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
04: */
05:
06: package javax.xml.bind.helpers;
07:
08: import javax.xml.bind.ParseConversionEvent;
09: 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.1 $
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 extends ValidationEventImpl
29: implements ParseConversionEvent {
30:
31: /**
32: * Create a new ParseConversionEventImpl.
33: *
34: * @param _severity The severity value for this event. Must be one of
35: * ValidationEvent.WARNING, ValidationEvent.ERROR, or
36: * ValidationEvent.FATAL_ERROR
37: * @param _message The text message for this event - may be null.
38: * @param _locator The locator object for this event - may be null.
39: * @throws IllegalArgumentException if an illegal severity field is supplied
40: */
41: public ParseConversionEventImpl(int _severity, String _message,
42: ValidationEventLocator _locator) {
43:
44: super (_severity, _message, _locator);
45: }
46:
47: /**
48: * Create a new ParseConversionEventImpl.
49: *
50: * @param _severity The severity value for this event. Must be one of
51: * ValidationEvent.WARNING, ValidationEvent.ERROR, or
52: * ValidationEvent.FATAL_ERROR
53: * @param _message The text message for this event - may be null.
54: * @param _locator The locator object for this event - may be null.
55: * @param _linkedException An optional linked exception that may provide
56: * additional information about the event - may be null.
57: * @throws IllegalArgumentException if an illegal severity field is supplied
58: */
59: public ParseConversionEventImpl(int _severity, String _message,
60: ValidationEventLocator _locator, Throwable _linkedException) {
61:
62: super(_severity, _message, _locator, _linkedException);
63: }
64:
65: }
|