|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cmis.interopserver.services.cap.CAPAlertTranslator
public class CAPAlertTranslator
This class also provides utility methods for converting data formats
| Field Summary | |
|---|---|
(package private) static java.util.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
CAPAlertTranslator()
|
|
| Method Summary | |
|---|---|
org.cmis.interopserver.beans.cap.Alert |
alertBeanToAlert(org.cmis.client.app.alerts.model.AlertBean abean)
Conversion routines to convert an AlertBean to an Alert to send to Web services |
gov.noaa.nws.hazcollect.cap.CAPAlert |
alertBeanToCAPAlert(org.cmis.client.app.alerts.model.AlertBean alertBean)
t. |
gov.noaa.nws.hazcollect.cap.CAPAlertInfo |
alertInfoBeanToCapAlertInfo(org.cmis.client.app.alerts.model.AlertInfoBean infoBean)
Creates an CAPAlertInfo from a AlertInfoBean object Modified by C. |
java.lang.String |
alertToXML(org.cmis.interopserver.beans.cap.Alert alert)
|
java.lang.String |
alertToXML(org.cmis.interopserver.beans.capv2.Alert alert)
|
org.cmis.client.app.alerts.model.AlertInfoBean |
capAlertInfoToAlertInfoBean(CAPAlertInfo capAlertInfo)
Creates an AlertInfoBean from a CAPAlertInfo object |
org.cmis.client.app.alerts.model.AlertBean |
capAlertToAlertBean(CAPAlert capAlert)
Creates an AlertBean from a CAPAlert object |
java.lang.String |
capAlertToXML(CAPAlert capAlert)
|
static java.sql.Timestamp |
iso8601StringToTimestamp(java.lang.String dateString)
Creates a Timestamp from a String that is a date in iso8601 format. |
static void |
main(java.lang.String[] args)
|
java.util.Calendar |
timeStampToCalendar(java.sql.Timestamp date)
|
java.lang.String |
timestampToIso8601String(java.util.Date dt)
Converts Timestamp to an ISO8601 Date String |
CAPAlert |
XMLToCAPAlert(org.w3c.dom.Document capDoc)
Creates a CAPAlert object from the given XML document |
CAPAlert |
XMLToCAPAlert(java.io.InputStream stream)
Creates a CAPAlertObject from the given XML document The Documnet must follow the CAP standard. |
gov.noaa.nws.hazcollect.cap.CAPAlert |
XMLToNWMEAlert(java.io.InputStream stream)
Creates a NWEM CAPAlertObject from the given XML document The Documnet must follow the CAP standard. |
gov.noaa.nws.hazcollect.cap.CAPAlert |
XMLToNWMECAPAlert(org.w3c.dom.Document capDoc)
Creates a CAPAlert object from the given XML document |
static void |
XXmain(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static java.util.logging.Logger log
| Constructor Detail |
|---|
public CAPAlertTranslator()
| Method Detail |
|---|
public CAPAlert XMLToCAPAlert(java.io.InputStream stream)
throws java.io.IOException
stream - CAP XML Document
java.io.IOException - if the Document was unreadable
public gov.noaa.nws.hazcollect.cap.CAPAlert XMLToNWMEAlert(java.io.InputStream stream)
throws java.io.IOException
stream - CAP XML Document
java.io.IOException - if the Document was unreadable
public gov.noaa.nws.hazcollect.cap.CAPAlert XMLToNWMECAPAlert(org.w3c.dom.Document capDoc)
throws java.io.IOException
capDoc -
java.io.IOException
public CAPAlert XMLToCAPAlert(org.w3c.dom.Document capDoc)
throws java.io.IOException
capDoc -
java.io.IOException
public java.lang.String alertToXML(org.cmis.interopserver.beans.cap.Alert alert)
throws java.io.IOException
java.io.IOException
public java.lang.String alertToXML(org.cmis.interopserver.beans.capv2.Alert alert)
throws java.io.IOException
java.io.IOException
public java.lang.String capAlertToXML(CAPAlert capAlert)
throws java.io.IOException
java.io.IOExceptionpublic org.cmis.client.app.alerts.model.AlertBean capAlertToAlertBean(CAPAlert capAlert)
capAlert -
public org.cmis.client.app.alerts.model.AlertInfoBean capAlertInfoToAlertInfoBean(CAPAlertInfo capAlertInfo)
capAlertInfo -
public static java.sql.Timestamp iso8601StringToTimestamp(java.lang.String dateString)
If the String is not in the correct format a null value will be returned.
dateString -
public static void main(java.lang.String[] args)
public static void XXmain(java.lang.String[] args)
public gov.noaa.nws.hazcollect.cap.CAPAlert alertBeanToCAPAlert(org.cmis.client.app.alerts.model.AlertBean alertBean)
public gov.noaa.nws.hazcollect.cap.CAPAlertInfo alertInfoBeanToCapAlertInfo(org.cmis.client.app.alerts.model.AlertInfoBean infoBean)
capAlertInfo - todo put in fix
public java.lang.String timestampToIso8601String(java.util.Date dt)
ts - Timestamp
public org.cmis.interopserver.beans.cap.Alert alertBeanToAlert(org.cmis.client.app.alerts.model.AlertBean abean)
public java.util.Calendar timeStampToCalendar(java.sql.Timestamp date)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||