Package org.apache.ofbiz.base.util
Class MessageString
java.lang.Object
org.apache.ofbiz.base.util.MessageString
- All Implemented Interfaces:
Serializable
Contains extra information about Messages
- See Also:
-
Constructor Summary
ConstructorDescriptionMessageString
(String message, String fieldName, boolean isError) MessageString
(String message, String fieldName, String propertyResource, String propertyName, Locale locale, boolean isError) MessageString
(String message, String fieldName, String toFieldName, Throwable sourceError) MessageString
(String message, Throwable sourceError) -
Method Summary
Modifier and TypeMethodDescriptiongetMessagesForField
(String fieldName, boolean convertToStrings, List<Object> messageStringList) getMessagesForField
(String fieldName1, String fieldName2, String fieldName3, String fieldName4, boolean convertToStrings, List<Object> messageStringList) boolean
isError()
boolean
isForField
(String fieldName) Is for field boolean.void
setError
(boolean isError) void
setFieldName
(String fieldName) void
void
setMessage
(String message) void
setPropertyName
(String propertyName) void
setPropertyResource
(String propertyResource) void
setSourceError
(Throwable sourceError) void
setToFieldName
(String toFieldName) toString()
-
Constructor Details
-
MessageString
public MessageString(String message, String fieldName, String propertyResource, String propertyName, Locale locale, boolean isError) - Parameters:
message
-fieldName
-locale
-propertyResource
-propertyName
-
-
MessageString
- Parameters:
message
-fieldName
-
-
MessageString
- Parameters:
message
-fieldName
-toFieldName
-sourceError
-
-
MessageString
- Parameters:
message
-sourceError
-
-
-
Method Details
-
getMessagesForField
-
getMessagesForField
-
getFieldName
- Returns:
- Returns the fieldName.
-
setFieldName
- Parameters:
fieldName
- The fieldName to set.
-
isForField
Is for field boolean.- Parameters:
fieldName
- the field name- Returns:
- the boolean
-
getMessage
- Returns:
- Returns the message.
-
setMessage
- Parameters:
message
- The message to set.
-
getSourceError
- Returns:
- Returns the sourceError.
-
setSourceError
- Parameters:
sourceError
- The sourceError to set.
-
getToFieldName
- Returns:
- Returns the toFieldName.
-
setToFieldName
- Parameters:
toFieldName
- The toFieldName to set.
-
getLocale
- Returns:
- Returns the locale.
-
setLocale
- Parameters:
locale
- The locale to set.
-
getPropertyName
- Returns:
- Returns the propertyName.
-
setPropertyName
- Parameters:
propertyName
- The propertyName to set.
-
getPropertyResource
- Returns:
- Returns the propertyResource.
-
setPropertyResource
- 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
-