org.apache.myfaces.extensions.validator.core.validation.message
Class DefaultFacesMessageFactory

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.core.validation.message.DefaultFacesMessageFactory
All Implemented Interfaces:
FacesMessageFactory
Direct Known Subclasses:
TrinidadFacesMessageFactory

public class DefaultFacesMessageFactory
extends Object
implements FacesMessageFactory

Since:
1.x.2

Constructor Summary
DefaultFacesMessageFactory()
           
 
Method Summary
 javax.faces.application.FacesMessage convert(javax.faces.application.FacesMessage facesMessage)
          Converts the facesMessage so that is implements the LabelMessage interface.
 javax.faces.application.FacesMessage create(javax.faces.application.FacesMessage.Severity severity, String summary, String detail)
          Create a LabelMessage implementing FacesMessage using the parameters as content.
protected  boolean isLabeledFacesMessage(javax.faces.application.FacesMessage facesMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFacesMessageFactory

public DefaultFacesMessageFactory()
Method Detail

convert

public javax.faces.application.FacesMessage convert(javax.faces.application.FacesMessage facesMessage)
Description copied from interface: FacesMessageFactory
Converts the facesMessage so that is implements the LabelMessage interface. If the parameter implements already the correct interface, it is returned without change.

Specified by:
convert in interface FacesMessageFactory
Parameters:
facesMessage - The facesMessage to convert
Returns:
A FacesMessage instance that also implements LabelMessage.

create

public javax.faces.application.FacesMessage create(javax.faces.application.FacesMessage.Severity severity,
                                                   String summary,
                                                   String detail)
Description copied from interface: FacesMessageFactory
Create a LabelMessage implementing FacesMessage using the parameters as content.

Specified by:
create in interface FacesMessageFactory
Parameters:
severity - Severity for the FacesMessage.
summary - summary text for the message.
detail - detail test for the message.
Returns:
A FacesMessage instance that also implements LabelMessage.

isLabeledFacesMessage

protected boolean isLabeledFacesMessage(javax.faces.application.FacesMessage facesMessage)


Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.