org.apache.struts2.impl
Class MessagesImpl

java.lang.Object
  extended by org.apache.struts2.impl.MessagesImpl
All Implemented Interfaces:
org.apache.struts2.Messages

public class MessagesImpl
extends Object
implements org.apache.struts2.Messages


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.struts2.Messages
org.apache.struts2.Messages.Severity
 
Field Summary
(package private)  Map<String,org.apache.struts2.Messages> fieldMap
           
(package private)  Map<org.apache.struts2.Messages.Severity,List<String>> severityMap
           
(package private)  TextProvider textProvider
           
 
Constructor Summary
MessagesImpl()
           
 
Method Summary
 void add(org.apache.struts2.Messages.Severity severity, String key)
           
 void add(org.apache.struts2.Messages.Severity severity, String key, String... arguments)
           
 void addError(String key)
           
 void addError(String key, String... arguments)
           
 void addInformation(String key)
           
 void addInformation(String key, String... arguments)
           
 void addWarning(String key)
           
 void addWarning(String key, String... arguments)
           
 org.apache.struts2.Messages forField(String fieldName)
           
 Map<String,org.apache.struts2.Messages> forFields()
           
 List<String> forSeverity(org.apache.struts2.Messages.Severity severity)
           
 List<String> getErrors()
           
 List<String> getInformation()
           
 Set<org.apache.struts2.Messages.Severity> getSeverities()
           
 List<String> getWarnings()
           
 boolean hasErrors()
           
 boolean hasInformation()
           
 boolean hasWarnings()
           
 boolean isEmpty()
           
 boolean isEmpty(org.apache.struts2.Messages.Severity severity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textProvider

final TextProvider textProvider

fieldMap

Map<String,org.apache.struts2.Messages> fieldMap

severityMap

Map<org.apache.struts2.Messages.Severity,List<String>> severityMap
Constructor Detail

MessagesImpl

public MessagesImpl()
Method Detail

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.