Class Ecfv5XmlHelper
java.lang.Object
edu.suffolk.litlab.efsp.server.utils.Ecfv5XmlHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringamountToString(AmountType amt) static BooleanconvertBool(boolean value) static DateTypeconvertCourtReserveDate(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 CourtTypeconvertCourtType(String courtId) static DateTypeconvertDate(LocalDate date) static DateTypeconvertDateTime(Instant inst, int fracSecondPrecision) Always returns datetimes that are UTC and with no milliseconds.static IdentificationTypestatic IdentificationTypestatic NormalizedStringconvertNormalized(String str) static DateTimestatic StringconvertString(String str) static TextTypeconvertText(String str) static <T> StringobjectToXmlStr(T toXml, Class<T> toXmlClazz) static <T> StringobjectToXmlStrOrError(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
-