Package org.openxava.util
Class Messages
java.lang.Object
org.openxava.util.Messages
- All Implemented Interfaces:
Serializable
Set of messages.
Uses XavaResources for doing i18n.
- Author:
- Javier Paniza
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidadd(Messages.Type type, String idMessage, Object... ids) voidClear all error message and does not accept any more messages.booleancontains()booleangetIds()List of all ids of the messagesgetInfosStrings(javax.servlet.ServletRequest request) Qualified names of the members affected for this errors.getMessagesStrings(javax.servlet.ServletRequest request) List of all message texts translated using the default locale.getStrings(Locale locale) List of all message texts translated using the indicated locale.getStrings(javax.servlet.ServletRequest request) List of all message texts translated using the locale of the request.getWarningsStrings(javax.servlet.ServletRequest request) booleanisEmpty()booleanvoidvoidtoString()
-
Constructor Details
-
Messages
public Messages()
-
-
Method Details
-
contains
-
remove
-
removeAll
public void removeAll() -
clearAndClose
public void clearAndClose()Clear all error message and does not accept any more messages.If you call to
addafter call to this method then no exception will throw but the message will not be added. -
add
-
add
-
contains
public boolean contains() -
isEmpty
public boolean isEmpty() -
toString
-
add
-
getStrings
List of all message texts translated using the default locale. -
getStrings
List of all message texts translated using the locale of the request. -
getStrings
List of all message texts translated using the indicated locale. -
getMessagesStrings
-
getWarningsStrings
-
getInfosStrings
-
getIds
List of all ids of the messages- Returns:
-
memberHas
-
getMembers
Qualified names of the members affected for this errors.
-