Package org.apache.ofbiz.base.util
Class MessageString
- java.lang.Object
-
- org.apache.ofbiz.base.util.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
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
fieldName
protected boolean
isError
protected java.util.Locale
locale
protected java.lang.String
message
static java.lang.String
module
protected java.lang.String
propertyName
protected java.lang.String
propertyResource
protected java.lang.Throwable
sourceError
protected java.lang.String
toFieldName
-
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)
boolean
isForField(java.util.Set<java.lang.String> fieldNameSet)
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()
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
message
protected java.lang.String message
-
fieldName
protected java.lang.String fieldName
-
toFieldName
protected java.lang.String toFieldName
-
sourceError
protected java.lang.Throwable sourceError
-
locale
protected java.util.Locale locale
-
propertyResource
protected java.lang.String propertyResource
-
propertyName
protected java.lang.String propertyName
-
isError
protected boolean isError
-
-
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)
-
isForField
public boolean isForField(java.lang.String fieldName)
-
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 classjava.lang.Object
-
-