Class Messages

java.lang.Object
org.openxava.util.Messages
All Implemented Interfaces:
Serializable

public class Messages extends Object implements Serializable
Set of messages.

Uses XavaResources for doing i18n.

Author:
Javier Paniza
See Also:
  • Constructor Details

    • Messages

      public Messages()
  • Method Details

    • contains

      public boolean contains(String idMessage)
    • remove

      public void remove(String idMessage)
    • removeAll

      public void removeAll()
    • clearAndClose

      public void clearAndClose()
      Clear all error message and does not accept any more messages.

      If you call to add after call to this method then no exception will throw but the message will not be added.

    • add

      public void add(String idMessage, Object... ids)
    • add

      public void add(Messages.Type type, String idMessage, Object... ids)
    • contains

      public boolean contains()
    • isEmpty

      public boolean isEmpty()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • add

      public void add(Messages messages)
    • getStrings

      public Collection getStrings()
      List of all message texts translated using the default locale.
    • getStrings

      public Collection getStrings(javax.servlet.ServletRequest request)
      List of all message texts translated using the locale of the request.
    • getStrings

      public Collection getStrings(Locale locale)
      List of all message texts translated using the indicated locale.
    • getMessagesStrings

      public Collection getMessagesStrings(javax.servlet.ServletRequest request)
    • getWarningsStrings

      public Collection getWarningsStrings(javax.servlet.ServletRequest request)
    • getInfosStrings

      public Collection getInfosStrings(javax.servlet.ServletRequest request)
    • getIds

      public Collection getIds()
      List of all ids of the messages
      Returns:
    • memberHas

      public boolean memberHas(MetaMember m)
    • getMembers

      public Collection getMembers()
      Qualified names of the members affected for this errors.