public class XMLParserNotification extends PropertyChangeEvent
| Modifier and Type | Field and Description | 
|---|---|
| protected XMLEvent | eventThe  XMLEventassociated with the notification, if any. | 
| protected Exception | exceptionFor exception notifications, the exception that occurred. | 
| static String | EXCEPTIONA notification type indicating that an exception occurred during parsing. | 
| protected String | messageThe message sent from the object sending the notification. | 
| protected Object | notificationSourceThe object initiating the notification. | 
| protected String | notificationTypeIndicates the cause of the notification. | 
| static String | UNRECOGNIZEDA notification type indicating that a parser encounter an element it did not recognize. | 
source| Constructor and Description | 
|---|
| XMLParserNotification(Object source,
                     String notificationType,
                     XMLEvent event,
                     String msg,
                     Object oldValue,
                     Object newValue)Construct a notification object. | 
| Modifier and Type | Method and Description | 
|---|---|
| XMLEvent | getEvent()Return the event associated with the notification, if any. | 
| Exception | getException()Return the exception associated with an exception notification. | 
| String | getMessage()The message associated with the exception, suitable for writing to a log. | 
| String | getNotificationType()The notification type. | 
| Object | getSource()Return the object initiating the notification. | 
| void | setSource(Object notificationSource)Respecifies the notification source. | 
| String | toString() | 
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationIdprotected final XMLEvent event
XMLEvent associated with the notification, if any.protected Exception exception
public static final String EXCEPTION
protected final String message
protected Object notificationSource
protected final String notificationType
public static final String UNRECOGNIZED
public XMLParserNotification(Object source, String notificationType, XMLEvent event, String msg, Object oldValue, Object newValue)
source - the object initiating the notification.notificationType - the notification type, such as EXCEPTION or UNRECOGNIZED.event - if an event is associated with the notification, that event. May be null.msg - a message from the notification source suitable for logging.oldValue - any old value associated with the notification. Not typically used.newValue - any new value associated with the notification. if this is an exception notification, the
                         exception that occurred is passed via this parameter. May be null.public XMLEvent getEvent()
public Exception getException()
public String getMessage()
public String getNotificationType()
EXCEPTION, 
UNRECOGNIZEDpublic Object getSource()
getSource in class EventObjectpublic void setSource(Object notificationSource)
notificationSource - the source to assign the exception.public String toString()
toString in class PropertyChangeEvent