com.atlassian.confluence.validation
Interface MessageHolder
- All Known Implementing Classes:
- DefaultMessageHolder
public interface MessageHolder
An i18n- and character-escaping-agnostic collection of action and field error Message
s.
Provides a similar interface to ValidationAware
but with Message
s instead of Strings.
- Since:
- 4.2.3
hasErrors
boolean hasErrors()
addFieldError
void addFieldError(java.lang.String field,
java.lang.String messageKey)
addActionError
void addActionError(java.lang.String messageKey)
addActionError
void addActionError(java.lang.String messageKey,
java.lang.Object... args)
addActionWarning
void addActionWarning(java.lang.String messageKey,
java.lang.Object... args)
addActionInfo
void addActionInfo(java.lang.String messageKey,
java.lang.Object... args)
addActionSuccess
void addActionSuccess(java.lang.String messageKey,
java.lang.Object... args)
getActionErrors
java.util.List<Message> getActionErrors()
getActionWarnings
java.util.List<Message> getActionWarnings()
getActionInfos
java.util.List<Message> getActionInfos()
getActionSuccesses
java.util.List<Message> getActionSuccesses()
getFieldErrors
java.util.Map<java.lang.String,java.util.List<Message>> getFieldErrors()
Copyright © 2003-2014 Atlassian. All Rights Reserved.