Package com.x2j.converter.utils
Class X2JMsgUtils
java.lang.Object
com.x2j.converter.utils.X2JMsgUtils
A single instance utility class that reads the error messages properties file
(both out-of-the-box and extended files) and returns the messages as and when
required.
-
Method Summary
Modifier and TypeMethodDescriptionstatic X2JMsgUtils
Returns the single instance of X2JMsgUtils.getMessage
(String code) Returns the message for the given code.getMsgs()
Returns all the messages.void
reset()
Reloads the messages object from the properties file.
-
Method Details
-
getInstance
Returns the single instance of X2JMsgUtils.- Returns:
- instance of X2JMsgUtils
-
reset
Reloads the messages object from the properties file.- Throws:
X2JException
- X2JException
-
getMessage
Returns the message for the given code.- Parameters:
code
- the message code- Returns:
- the message as defined/extended in the properties file
-
getMsgs
Returns all the messages.- Returns:
- the msgs
-