Interface ScalarField<T>
- 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
- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptionget()
Throws exception when user has no permission to read this field or the object is unresolvablegetIfCan()
Returns the value if the user can read this field, the container object can be resolved, and does not contain an incompatible value (seeCanBeCustomField.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
Throws exception when user has no permission to read this field or the object is unresolvable- Returns:
- the value or
null
-
getIfCan
Returns the value if the user can read this field, the container object can be resolved, and does not contain an incompatible value (seeCanBeCustomField.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
-