Class MessageString

  • All Implemented Interfaces:
    java.io.Serializable

    public class MessageString
    extends java.lang.Object
    implements java.io.Serializable
    Contains extra information about Messages
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageString​(java.lang.String message, java.lang.String fieldName, boolean isError)  
      MessageString​(java.lang.String message, java.lang.String fieldName, java.lang.String propertyResource, java.lang.String propertyName, java.util.Locale locale, boolean isError)  
      MessageString​(java.lang.String message, java.lang.String fieldName, java.lang.String toFieldName, java.lang.Throwable sourceError)  
      MessageString​(java.lang.String message, java.lang.Throwable sourceError)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFieldName()  
      java.util.Locale getLocale()  
      java.lang.String getMessage()  
      static java.util.List<java.lang.Object> getMessagesForField​(java.lang.String fieldName, boolean convertToStrings, java.util.List<java.lang.Object> messageStringList)  
      static java.util.List<java.lang.Object> getMessagesForField​(java.lang.String fieldName1, java.lang.String fieldName2, java.lang.String fieldName3, java.lang.String fieldName4, boolean convertToStrings, java.util.List<java.lang.Object> messageStringList)  
      static java.util.List<java.lang.Object> getMessagesForField​(java.util.Set<java.lang.String> fieldNameSet, boolean convertToStrings, java.util.List<java.lang.Object> messageStringList)  
      java.lang.String getPropertyName()  
      java.lang.String getPropertyResource()  
      java.lang.Throwable getSourceError()  
      java.lang.String getToFieldName()  
      boolean isError()  
      boolean isForField​(java.lang.String fieldName)
      Is for field boolean.
      boolean isForField​(java.util.Set<java.lang.String> fieldNameSet)
      Is for field boolean.
      void setError​(boolean isError)  
      void setFieldName​(java.lang.String fieldName)  
      void setLocale​(java.util.Locale locale)  
      void setMessage​(java.lang.String message)  
      void setPropertyName​(java.lang.String propertyName)  
      void setPropertyResource​(java.lang.String propertyResource)  
      void setSourceError​(java.lang.Throwable sourceError)  
      void setToFieldName​(java.lang.String toFieldName)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MessageString

        public MessageString​(java.lang.String message,
                             java.lang.String fieldName,
                             java.lang.String propertyResource,
                             java.lang.String propertyName,
                             java.util.Locale locale,
                             boolean isError)
        Parameters:
        message -
        fieldName -
        locale -
        propertyResource -
        propertyName -
      • MessageString

        public MessageString​(java.lang.String message,
                             java.lang.String fieldName,
                             boolean isError)
        Parameters:
        message -
        fieldName -
      • MessageString

        public MessageString​(java.lang.String message,
                             java.lang.String fieldName,
                             java.lang.String toFieldName,
                             java.lang.Throwable sourceError)
        Parameters:
        message -
        fieldName -
        toFieldName -
        sourceError -
      • MessageString

        public MessageString​(java.lang.String message,
                             java.lang.Throwable sourceError)
        Parameters:
        message -
        sourceError -
    • Method Detail

      • getMessagesForField

        public static java.util.List<java.lang.Object> getMessagesForField​(java.lang.String fieldName,
                                                                           boolean convertToStrings,
                                                                           java.util.List<java.lang.Object> messageStringList)
      • getMessagesForField

        public static java.util.List<java.lang.Object> getMessagesForField​(java.lang.String fieldName1,
                                                                           java.lang.String fieldName2,
                                                                           java.lang.String fieldName3,
                                                                           java.lang.String fieldName4,
                                                                           boolean convertToStrings,
                                                                           java.util.List<java.lang.Object> messageStringList)
      • getMessagesForField

        public static java.util.List<java.lang.Object> getMessagesForField​(java.util.Set<java.lang.String> fieldNameSet,
                                                                           boolean convertToStrings,
                                                                           java.util.List<java.lang.Object> messageStringList)
      • getFieldName

        public java.lang.String getFieldName()
        Returns:
        Returns the fieldName.
      • setFieldName

        public void setFieldName​(java.lang.String fieldName)
        Parameters:
        fieldName - The fieldName to set.
      • isForField

        public boolean isForField​(java.util.Set<java.lang.String> fieldNameSet)
        Is for field boolean.
        Parameters:
        fieldNameSet - the field name set
        Returns:
        the boolean
      • isForField

        public boolean isForField​(java.lang.String fieldName)
        Is for field boolean.
        Parameters:
        fieldName - the field name
        Returns:
        the boolean
      • getMessage

        public java.lang.String getMessage()
        Returns:
        Returns the message.
      • setMessage

        public void setMessage​(java.lang.String message)
        Parameters:
        message - The message to set.
      • getSourceError

        public java.lang.Throwable getSourceError()
        Returns:
        Returns the sourceError.
      • setSourceError

        public void setSourceError​(java.lang.Throwable sourceError)
        Parameters:
        sourceError - The sourceError to set.
      • getToFieldName

        public java.lang.String getToFieldName()
        Returns:
        Returns the toFieldName.
      • setToFieldName

        public void setToFieldName​(java.lang.String toFieldName)
        Parameters:
        toFieldName - The toFieldName to set.
      • getLocale

        public java.util.Locale getLocale()
        Returns:
        Returns the locale.
      • setLocale

        public void setLocale​(java.util.Locale locale)
        Parameters:
        locale - The locale to set.
      • getPropertyName

        public java.lang.String getPropertyName()
        Returns:
        Returns the propertyName.
      • setPropertyName

        public void setPropertyName​(java.lang.String propertyName)
        Parameters:
        propertyName - The propertyName to set.
      • getPropertyResource

        public java.lang.String getPropertyResource()
        Returns:
        Returns the propertyResource.
      • setPropertyResource

        public void setPropertyResource​(java.lang.String propertyResource)
        Parameters:
        propertyResource - The propertyResource to set.
      • isError

        public boolean isError()
        Returns:
        Returns the isError.
      • setError

        public void setError​(boolean isError)
        Parameters:
        isError - The isError to set.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object