Class Ecfv5XmlHelper
java.lang.Object
edu.suffolk.litlab.efspserver.services.Ecfv5XmlHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
amountToString
(AmountType amt) static Boolean
convertBool
(boolean value) static DateType
convertCourtReserveDate
(OffsetDateTime date, int fracSecondPrecision) Tyler requires that you "[respond] back with the same time stamp that the response provides to you" This is difficult given that we send that timestamp to DA and get it back, as a timestamp object that represents the same time, but might not be formatted the exact same.static CourtType
convertCourtType
(String courtId) static DateType
convertDate
(LocalDate date) static DateType
convertDateTime
(Instant inst, int fracSecondPrecision) Always returns datetimes that are UTC and with no milliseconds.static IdentificationType
static IdentificationType
static NormalizedString
convertNormalized
(String str) static DateTime
static String
convertString
(String str) static TextType
convertText
(String str) static <T> String
objectToXmlStr
(T toXml, Class<T> toXmlClazz) static <T> String
objectToXmlStrOrError
(T toXml, Class<T> toXmlClazz)
-
Constructor Details
-
Ecfv5XmlHelper
public Ecfv5XmlHelper()
-
-
Method Details
-
objectToXmlStrOrError
-
objectToXmlStr
public static <T> String objectToXmlStr(T toXml, Class<T> toXmlClazz) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
convertProxyDate
-
convertDate
-
convertDateTime
Always returns datetimes that are UTC and with no milliseconds. -
amountToString
-
convertCourtReserveDate
Tyler requires that you "[respond] back with the same time stamp that the response provides to you" This is difficult given that we send that timestamp to DA and get it back, as a timestamp object that represents the same time, but might not be formatted the exact same.We make an assumption here that all DA timestamps given to us from the Court look like: "2022-03-25T15:00:00.0Z"
- Parameters:
date
- The timestamp that we are trying to select, might be of arbitrary sub-second precisionfracSecondPrecision
- : only takes 0, 1, 2, 3, uses that many decimal places in the seconds- Returns:
- a DateType that has _only_ the tenths decimal place, so it serializes like "2022-03-25T15:00:00.0Z"
-
convertBool
-
convertCourtType
-
convertId
-
convertId
-
convertString
-
convertText
-
convertNormalized
-