org.apache.struts2.impl
Class MessagesImpl
java.lang.Object
org.apache.struts2.impl.MessagesImpl
- All Implemented Interfaces:
- org.apache.struts2.Messages
public class MessagesImpl
- extends Object
- implements org.apache.struts2.Messages
Nested classes/interfaces inherited from interface org.apache.struts2.Messages |
org.apache.struts2.Messages.Severity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
textProvider
final TextProvider textProvider
fieldMap
Map<String,org.apache.struts2.Messages> fieldMap
severityMap
Map<org.apache.struts2.Messages.Severity,List<String>> severityMap
MessagesImpl
public MessagesImpl()
forField
public org.apache.struts2.Messages forField(String fieldName)
- Specified by:
forField
in interface org.apache.struts2.Messages
forFields
public Map<String,org.apache.struts2.Messages> forFields()
- Specified by:
forFields
in interface org.apache.struts2.Messages
addInformation
public void addInformation(String key)
- Specified by:
addInformation
in interface org.apache.struts2.Messages
addInformation
public void addInformation(String key,
String... arguments)
- Specified by:
addInformation
in interface org.apache.struts2.Messages
addWarning
public void addWarning(String key)
- Specified by:
addWarning
in interface org.apache.struts2.Messages
addWarning
public void addWarning(String key,
String... arguments)
- Specified by:
addWarning
in interface org.apache.struts2.Messages
addError
public void addError(String key)
- Specified by:
addError
in interface org.apache.struts2.Messages
addError
public void addError(String key,
String... arguments)
- Specified by:
addError
in interface org.apache.struts2.Messages
add
public void add(org.apache.struts2.Messages.Severity severity,
String key)
- Specified by:
add
in interface org.apache.struts2.Messages
add
public void add(org.apache.struts2.Messages.Severity severity,
String key,
String... arguments)
- Specified by:
add
in interface org.apache.struts2.Messages
getSeverities
public Set<org.apache.struts2.Messages.Severity> getSeverities()
- Specified by:
getSeverities
in interface org.apache.struts2.Messages
forSeverity
public List<String> forSeverity(org.apache.struts2.Messages.Severity severity)
- Specified by:
forSeverity
in interface org.apache.struts2.Messages
getErrors
public List<String> getErrors()
- Specified by:
getErrors
in interface org.apache.struts2.Messages
getWarnings
public List<String> getWarnings()
- Specified by:
getWarnings
in interface org.apache.struts2.Messages
getInformation
public List<String> getInformation()
- Specified by:
getInformation
in interface org.apache.struts2.Messages
hasErrors
public boolean hasErrors()
- Specified by:
hasErrors
in interface org.apache.struts2.Messages
hasWarnings
public boolean hasWarnings()
- Specified by:
hasWarnings
in interface org.apache.struts2.Messages
hasInformation
public boolean hasInformation()
- Specified by:
hasInformation
in interface org.apache.struts2.Messages
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface org.apache.struts2.Messages
isEmpty
public boolean isEmpty(org.apache.struts2.Messages.Severity severity)
- Specified by:
isEmpty
in interface org.apache.struts2.Messages
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.