001 /* 002 * $Id: PrintConversionEventImpl.java,v 1.4 2003/02/13 23:41:06 kk122374 Exp $ 003 * 004 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. 005 * 006 * This software is the proprietary information of Sun Microsystems, Inc. 007 * Use is subject to license terms. 008 * 009 */ 010 011 package javax.xml.bind.helpers; 012 013 import javax.xml.bind.PrintConversionEvent; 014 import javax.xml.bind.ValidationEventLocator; 015 016 /** 017 * Default implementation of the PrintConversionEvent interface. 018 * 019 * <p> 020 * JAXB providers are allowed to use whatever class that implements 021 * the ValidationEvent interface. This class is just provided for a 022 * convenience. 023 * 024 * @author <ul><li>Ryan Shoemaker, Sun Microsystems, Inc.</li></ul> 025 * @version $Revision: 1.4 $ 026 * @see javax.xml.bind.PrintConversionEvent 027 * @see javax.xml.bind.Validator 028 * @see javax.xml.bind.ValidationEventHandler 029 * @see javax.xml.bind.ValidationEvent 030 * @see javax.xml.bind.ValidationEventLocator 031 * @since JAXB1.0 032 */ 033 public class PrintConversionEventImpl 034 extends ValidationEventImpl 035 implements PrintConversionEvent { 036 037 /** 038 * Create a new PrintConversionEventImpl. 039 * 040 * @param _severity The severity value for this event. Must be one of 041 * ValidationEvent.WARNING, ValidationEvent.ERROR, or 042 * ValidationEvent.FATAL_ERROR 043 * @param _message The text message for this event - may be null. 044 * @param _locator The locator object for this event - may be null. 045 * @throws IllegalArgumentException if an illegal severity field is supplied 046 */ 047 public PrintConversionEventImpl( int _severity, String _message, 048 ValidationEventLocator _locator) { 049 050 super(_severity, _message, _locator); 051 } 052 053 /** 054 * Create a new PrintConversionEventImpl. 055 * 056 * @param _severity The severity value for this event. Must be one of 057 * ValidationEvent.WARNING, ValidationEvent.ERROR, or 058 * ValidationEvent.FATAL_ERROR 059 * @param _message The text message for this event - may be null. 060 * @param _locator The locator object for this event - may be null. 061 * @param _linkedException An optional linked exception that may provide 062 * additional information about the event - may be null. 063 * @throws IllegalArgumentException if an illegal severity field is supplied 064 */ 065 public PrintConversionEventImpl( int _severity, String _message, 066 ValidationEventLocator _locator, 067 Throwable _linkedException) { 068 069 super(_severity, _message, _locator, _linkedException); 070 } 071 072 }