|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
java.beans.PropertyChangeEvent
gov.nasa.worldwind.util.xml.XMLParserNotification
public class XMLParserNotification
This class identifies the type and data content of notifications from parsers and parser contexts. Notifications are sent to inform of important occurrences that occur during parsing, such as exceptions and unrecognized element types.
XMLEventParserContext.setNotificationListener(XMLParserNotificationListener),
XMLParserNotificationListener,
Serialized Form| Field Summary | |
|---|---|
protected XMLEvent |
event
The XMLEvent associated with the notification, if any. |
protected Exception |
exception
For exception notifications, the exception that occurred. |
static String |
EXCEPTION
A notification type indicating that an exception occurred during parsing. |
protected String |
message
The message sent from the object sending the notification. |
protected Object |
notificationSource
The object initiating the notification. |
protected String |
notificationType
Indicates the cause of the notification. |
static String |
UNRECOGNIZED
A notification type indicating that a parser encounter an element it did not recognize. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
XMLParserNotification(Object source,
String notificationType,
XMLEvent event,
String msg,
Object oldValue,
Object newValue)
Construct a notification object. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.beans.PropertyChangeEvent |
|---|
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 EventObject
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||