Interface StringField

All Superinterfaces:
CanBeCustomField, CanRender<Renderer<? extends Renderer<?>>>, Field, ScalarField<String>
All Known Subinterfaces:
AttachmentBaseUrlField, AvatarField, FieldReferenceField, HyperlinkUriField, LinkedResourcePositionField, SpaceField, UpdatableFieldReferenceField, UpdatableStringField

public interface StringField extends ScalarField<String>, CanBeCustomField
Since:
3.9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Returns empty string when null is in persistence.
    Returns the value if user can read this field and the container object can be resolved, otherwise returns empty string.

    Methods inherited from interface com.polarion.alm.shared.api.model.fields.CanBeCustomField

    containsIncompatibleValue

    Methods inherited from interface com.polarion.alm.shared.api.model.fields.Field

    can, compareWith, description, id, is, label, render
  • Method Details

    • get

      @NotNull String get()
      Returns empty string when null is in persistence. Returned value is trimmed.
      Specified by:
      get in interface ScalarField<String>
      Returns:
      the value or null
    • getIfCan

      @NotNull String getIfCan()
      Returns the value if user can read this field and the container object can be resolved, otherwise returns empty string. Never throws exception when user cannot read the field, or the object is unresolvable. Returned value is trimmed.
      Specified by:
      getIfCan in interface ScalarField<String>
      Returns:
      the value or null