Save This Page
Home » spring-framework-2.5.4 » org.springframework » context » support » [javadoc | source]
org.springframework.context.support
public class: DefaultMessageSourceResolvable [javadoc | source]
java.lang.Object
   org.springframework.context.support.DefaultMessageSourceResolvable

All Implemented Interfaces:
    MessageSourceResolvable, Serializable

Direct Known Subclasses:
    FieldError, ObjectError

Default implementation of the MessageSourceResolvable interface. Offers an easy way to store all the necessary values needed to resolve a message via a org.springframework.context.MessageSource .
Constructor:
 public DefaultMessageSourceResolvable(String code) 
    Create a new DefaultMessageSourceResolvable.
    Parameters:
    code - the code to be used to resolve this message
 public DefaultMessageSourceResolvable(String[] codes) 
    Create a new DefaultMessageSourceResolvable.
    Parameters:
    codes - the codes to be used to resolve this message
 public DefaultMessageSourceResolvable(MessageSourceResolvable resolvable) 
    Copy constructor: Create a new instance from another resolvable.
    Parameters:
    resolvable - the resolvable to copy from
 public DefaultMessageSourceResolvable(String[] codes,
    String defaultMessage) 
    Create a new DefaultMessageSourceResolvable.
    Parameters:
    codes - the codes to be used to resolve this message
    defaultMessage - the default message to be used to resolve this message
 public DefaultMessageSourceResolvable(String[] codes,
    Object[] arguments) 
    Create a new DefaultMessageSourceResolvable.
    Parameters:
    codes - the codes to be used to resolve this message
    arguments - the array of arguments to be used to resolve this message
 public DefaultMessageSourceResolvable(String[] codes,
    Object[] arguments,
    String defaultMessage) 
    Create a new DefaultMessageSourceResolvable.
    Parameters:
    codes - the codes to be used to resolve this message
    arguments - the array of arguments to be used to resolve this message
    defaultMessage - the default message to be used to resolve this message
Method from org.springframework.context.support.DefaultMessageSourceResolvable Summary:
equals,   getArguments,   getCode,   getCodes,   getDefaultMessage,   hashCode,   resolvableToString,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.context.support.DefaultMessageSourceResolvable Detail:
 public boolean equals(Object other) 
 public Object[] getArguments() 
 public String getCode() 
    Return the default code of this resolvable, that is, the last one in the codes array.
 public String[] getCodes() 
 public String getDefaultMessage() 
 public int hashCode() 
 protected final String resolvableToString() 
    Build a default String representation for this MessageSourceResolvable: including codes, arguments, and default message.
 public String toString() 
    Default implementation exposes the attributes of this MessageSourceResolvable. To be overridden in more specific subclasses, potentially including the resolvable content through resolvableToString().