Package gov.usgs.earthquake.eids
Class EventAddonParser.EventAddon
- java.lang.Object
-
- gov.usgs.earthquake.eids.EventAddonParser.EventAddon
-
- Enclosing class:
- EventAddonParser
public static class EventAddonParser.EventAddon extends java.lang.Object
Data structure for event addon message. Also performs mapping onto EQMessage,Event, and ProductLink or Comment elements.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
action
actionjava.lang.String
description
descriptionjava.lang.String
email
emailjava.lang.String
eventid
event idjava.lang.String
fileName
fileNamejava.lang.String
link
linkjava.lang.String
submitter
Submitterjava.util.Date
submitTime
Submit timejava.lang.String
text
textjava.lang.String
type
typejava.lang.String
version
version
-
Constructor Summary
Constructors Constructor Description EventAddon()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description gov.usgs.ansseqmsg.Comment
getComment()
Parse eventaddon xml into a Comment.gov.usgs.ansseqmsg.EQMessage
getEQMessage()
gov.usgs.ansseqmsg.Event
getEvent()
gov.usgs.ansseqmsg.ProductLink
getProductLink()
Parse eventaddon xml into a ProductLink.
-
-
-
Field Detail
-
fileName
public java.lang.String fileName
fileName
-
submitter
public java.lang.String submitter
Submitter
-
submitTime
public java.util.Date submitTime
Submit time
-
email
public java.lang.String email
email
-
eventid
public java.lang.String eventid
event id
-
type
public java.lang.String type
type
-
version
public java.lang.String version
version
-
action
public java.lang.String action
action
-
description
public java.lang.String description
description
-
link
public java.lang.String link
link
-
text
public java.lang.String text
text
-
-
Method Detail
-
getProductLink
public gov.usgs.ansseqmsg.ProductLink getProductLink()
Parse eventaddon xml into a ProductLink.- Returns:
- null, if there is no link.
-
getComment
public gov.usgs.ansseqmsg.Comment getComment()
Parse eventaddon xml into a Comment.- Returns:
- null, if there is a link.
-
getEvent
public gov.usgs.ansseqmsg.Event getEvent()
- Returns:
- event
-
getEQMessage
public gov.usgs.ansseqmsg.EQMessage getEQMessage()
- Returns:
- EQMessage
-
-