public class ReminderUtils extends Object
| Constructor and Description |
|---|
ReminderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ReminderDTO |
convertToReminderDTO(Reminder reminder)
Method used to convert Reminder to ReminderDTO wrapper.
|
static byte[] |
generateReminderXML(ReminderDTO reminderDTO)
Marshalling reminder object to byte array.
|
static void |
generateReminderXML(ReminderDTO reminderDTO,
String filePath)
Marshalling reminder object to XML file.
|
static ReminderDTO |
getReminder(File file)
Unmarshalling XML file to reminder object.
|
static ReminderDTO |
getReminder(InputStream is)
Method used to convert EHF Reminder XML file stream to EHF Reminder object
|
static ReminderDTO |
getReminder(String filePath)
Method used to convert EHF Reminder XML file to Reminder object
|
static boolean |
isValidLineExtensionAmount(ReminderDTO reminderDTO) |
public static void generateReminderXML(ReminderDTO reminderDTO, String filePath) throws JAXBException
JAXBExceptionpublic static byte[] generateReminderXML(ReminderDTO reminderDTO) throws JAXBException
JAXBExceptionpublic static ReminderDTO getReminder(File file) throws JAXBException
JAXBExceptionpublic static ReminderDTO getReminder(String filePath) throws JAXBException
JAXBExceptionpublic static ReminderDTO getReminder(InputStream is) throws JAXBException
JAXBExceptionpublic static ReminderDTO convertToReminderDTO(Reminder reminder)
public static boolean isValidLineExtensionAmount(ReminderDTO reminderDTO)
Copyright © 2021 Norwegian Agency for Public Management and eGovernment (Difi). All rights reserved.