org.apache.myfaces.extensions.validator.core.factory
Interface FacesMessageFactory

All Known Implementing Classes:
DefaultFacesMessageFactory, TrinidadFacesMessageFactory

public interface FacesMessageFactory

Structure for a factory that creates FacesMessages that also implement the LabeledMessage interface. The LabelMessage interface adds label capabilities to the FacesMessage.

Since:
1.x.2

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.
 

Method Detail

convert

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

Parameters:
facesMessage - The facesMessage to convert
Returns:
A FacesMessage instance that also implements LabelMessage.

create

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.

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.


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