public final class MultiSpeak extends Object
Modifier and Type | Field and Description |
---|---|
static Namespace |
SOAP_NAMESPACE |
Constructor and Description |
---|
MultiSpeak() |
Modifier and Type | Method and Description |
---|---|
static String |
findExensionItem(Element ext,
String extName)
Exensions to the Multispeak spec are passed in as
<exensionItem> values within a list. |
static DateTime |
fromMultispeakDate(String d)
helper method to convert returned xml datetime values to something more useable
|
static String |
printXML(Element xml)
This is a helper function for debugging purposes to print results
|
static String |
toMultispeakDate(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour)
helper method to convert a given date to a useable ISO date for xml calls
|
public static final Namespace SOAP_NAMESPACE
public static String printXML(Element xml)
xml
- the xml element to printpublic static DateTime fromMultispeakDate(String d)
d
- the datetime string as an ISO date (returned by Multispeak calls)public static String toMultispeakDate(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour)
year
- the year, ex 2020monthOfYear
- month of the year, 1-12dayOfMonth
- day of the month 1-XhourOfDay
- hour of the day 1-24minuteOfHour
- minute of the hour 1-59public static String findExensionItem(Element ext, String extName)
<exensionItem>
values within a list. This helper function takes the list and finds a given <extName>
node within the list and returns the valueext
- the element containing the list of extensionItem nodesextName
- the name of node to get the value fromCopyright © 2021 Eau Claire Energy Cooperative. All rights reserved.