Interface TextHandler

All Superinterfaces:
FaceletHandler

public interface TextHandler extends FaceletHandler

An interface that allows other code to identify FaceletHandlers that may provide text (String) content.

Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing implementations of this interface.
    Returns the literal String value of the contained text.
    Returns the resolved literal String value of the contained text after evaluating EL.
  • Method Details

    • getText

      String getText()

      Returns the literal String value of the contained text.

      Returns:
      the literal String value of the contained text
    • getText

      String getText(FaceletContext ctx)

      Returns the resolved literal String value of the contained text after evaluating EL.

      Parameters:
      ctx - the FaceletContext for this view execution
      Returns:
      the resolved literal String value of the contained text after evaluating EL
    • apply

      default void apply(FaceletContext ctx, UIComponent parent) throws IOException

      The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing implementations of this interface.

      Specified by:
      apply in interface FaceletHandler
      Parameters:
      ctx - the current FaceletContext instance for this execution
      parent - the parent UIComponent to operate upon
      Throws:
      IOException - if unable to load relativePath