com.zphinx.spine.message
Class MessageConfig

java.lang.Object
  extended by com.zphinx.spine.message.MessageConfig

public class MessageConfig
extends Object

MessageConfig contains static messages used by spine for configuration purposes. It also serves as a static resource where different message properties files are referenced.

It is called at initialization to persist message properties files which it saves in an arraylist of StringAttributeBeans obtained from getResourcesList()

Version:
$1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo

Field Summary
static String PROVIDER
          The prefix used to stamp any message resource file referenced by this object
 
Method Summary
static String getExceptionMessageFile()
          Gets the exceptionMessageFile
static String getMessageResourceFile()
          Gets this object's associated resource file normally com.zphinx.spine.resources.ConfigurationResources
static ArrayList<StringAttributeBean> getResourcesList()
          Gets the arrayList of resource properties files in use by this framework.
static String getSiteMessages()
          Gets the default or the last saved message properties file used by this frameworkwhich is saved by setSiteMessages(String)
static void setExceptionMessages(String exceptionMessageClass)
          Sets the exception messages
static void setMessageResourceFile(String messageResourceFile)
          Sets this object's associated message resource file
static void setResourcesList(ArrayList resourcesList)
          Sets the resources list, an array of StringAttributeBeans
static void setSiteMessages(String siteMessages)
          Adds a message properties file to this object.The last saved message properties file can be retrieved by getSiteMessages()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROVIDER

public static final String PROVIDER
The prefix used to stamp any message resource file referenced by this object

See Also:
Constant Field Values
Method Detail

getSiteMessages

public static String getSiteMessages()
Gets the default or the last saved message properties file used by this frameworkwhich is saved by setSiteMessages(String)

Returns:
Returns the siteMessages.

setSiteMessages

public static void setSiteMessages(String siteMessages)
Adds a message properties file to this object.The last saved message properties file can be retrieved by getSiteMessages()

Parameters:
siteMessages - The siteMessages to set.

getResourcesList

public static ArrayList<StringAttributeBean> getResourcesList()
Gets the arrayList of resource properties files in use by this framework.

Returns:
Returns the arrayList of resource properties files in use by this framework.

setResourcesList

public static void setResourcesList(ArrayList resourcesList)
Sets the resources list, an array of StringAttributeBeans

Parameters:
resourcesList - The resourcesList to set.

getMessageResourceFile

public static String getMessageResourceFile()
Gets this object's associated resource file normally com.zphinx.spine.resources.ConfigurationResources

Returns:
the messageResourceFile

setMessageResourceFile

public static void setMessageResourceFile(String messageResourceFile)
Sets this object's associated message resource file

Parameters:
messageResourceFile - the messageResourceFile to set

setExceptionMessages

public static void setExceptionMessages(String exceptionMessageClass)
Sets the exception messages

Parameters:
exceptionMessageClass - The String denoting the class of the ExceptionMessages to set

getExceptionMessageFile

public static String getExceptionMessageFile()
Gets the exceptionMessageFile

Returns:
The exceptionMessageFile