Class MessageString

java.lang.Object
org.apache.ofbiz.base.util.MessageString
All Implemented Interfaces:
Serializable

public class MessageString extends Object implements Serializable
Contains extra information about Messages
See Also:
  • Constructor Details

    • MessageString

      public MessageString(String message, String fieldName, String propertyResource, String propertyName, Locale locale, boolean isError)
      Parameters:
      message -
      fieldName -
      locale -
      propertyResource -
      propertyName -
    • MessageString

      public MessageString(String message, String fieldName, boolean isError)
      Parameters:
      message -
      fieldName -
    • MessageString

      public MessageString(String message, String fieldName, String toFieldName, Throwable sourceError)
      Parameters:
      message -
      fieldName -
      toFieldName -
      sourceError -
    • MessageString

      public MessageString(String message, Throwable sourceError)
      Parameters:
      message -
      sourceError -
  • Method Details

    • getMessagesForField

      public static List<Object> getMessagesForField(String fieldName, boolean convertToStrings, List<Object> messageStringList)
    • getMessagesForField

      public static List<Object> getMessagesForField(String fieldName1, String fieldName2, String fieldName3, String fieldName4, boolean convertToStrings, List<Object> messageStringList)
    • getFieldName

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public void setPropertyResource(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 String toString()
      Overrides:
      toString in class Object