Interface ScalarField<T>

All Superinterfaces:
CanRender<Renderer<? extends Renderer<?>>>, Field
All Known Subinterfaces:
ApprovalField, AttachmentBaseUrlField, AvatarField, BaselineCollectionField, CodeField, CommentBaseField<C>, CommentField, CurrencyField, DateField, DateOnlyField, DocumentField, DurationField, EnumOptionField, FieldReferenceField, FloatField, HyperlinkUriField, IconUrlField, IntegerField, LinkedResourcePositionField, LongField, ModelObjectField, ModelObjectReferenceField<T>, PlainTextField, PlanField, PlanningConstraintField, PlanWorkField, ProjectField, RichTextField, SpaceField, StringField, TestRunField, TestStepsField, TimeOnlyField, TimePointField, UpdatableCurrencyField, UpdatableDateField, UpdatableDateOnlyField, UpdatableDurationField, UpdatableEnumOptionField, UpdatableFieldReferenceField, UpdatableFloatField, UpdatableIntegerField, UpdatableLongField, UpdatableObjectReferenceField<T,R,S>, UpdatablePlainTextField, UpdatablePlanField, UpdatableProjectField, UpdatableRichTextField, UpdatableScalarField<T>, UpdatableStringField, UpdatableTestRunField, UpdatableTimeOnlyField, UpdatableTimePointField, UpdatableUrlField, UpdatableUserField, UpdatableWorkItemField, UrlField, UserField, WorkItemField

public interface ScalarField<T> extends Field
Since:
3.9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Throws exception when user has no permission to read this field or the object is unresolvable
    Returns the value if the user can read this field, the container object can be resolved, and does not contain an incompatible value (see CanBeCustomField.containsIncompatibleValue()), otherwise returns null.

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

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

    • get

      @Nullable T get()
      Throws exception when user has no permission to read this field or the object is unresolvable
      Returns:
      the value or null
    • getIfCan

      @Nullable T getIfCan()
      Returns the value if the user can read this field, the container object can be resolved, and does not contain an incompatible value (see CanBeCustomField.containsIncompatibleValue()), otherwise returns null. Never throws an exception when the user cannot read the field, the object is unresolvable, or the field contains an incompatible value.
      Returns:
      the value or null