Interface PlainTextField

All Superinterfaces:
CanBeCustomField, CanRender<Renderer<? extends Renderer<?>>>, Field, ScalarField<Text>
All Known Subinterfaces:
CodeField, RichTextField, UpdatablePlainTextField, UpdatableRichTextField

public interface PlainTextField extends ScalarField<Text>, CanBeCustomField
Since:
3.9.0
  • Method Details

    • asPlainText

      @NotNull String asPlainText()
      Returns the value as plain text string. Returns empty string when null is in persistence. Returned value is trimmed. It is recommended to use Field.render() when the value is to be used as part of some html, because that will ensure future compatibility when the given field is changed to RichTextField Never throws exception when user cannot read the field, or the object is unresolvable.