Class CustomFieldImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.customfields.CustomFieldImpl
- All Implemented Interfaces:
ICustomField
- Direct Known Subclasses:
AutomaticProgressCustomFieldImpl
,CheckboxCustomFieldImpl
,CurrencyCustomFieldImpl
,DateCustomFieldImpl
,EmailCustomFieldImpl
,EmojiCustomFieldImpl
,LabelsCustomFieldImpl
,LocationCustomFieldImpl
,ManualProgressCustomFieldImpl
,NumberCustomFieldImpl
,PhoneCustomFieldImpl
,ShortTextCustomFieldImpl
,TasksCustomFieldImpl
,TextCustomFieldImpl
,URLCustomFieldImpl
,UsersCustomFieldImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns thisClickUp4j
instance.getId()
Returns the ID of the custom field.getName()
Returns the name of this Custom Field, which is displayed to the user.Returns when this custom field was created.getType()
Returns the type of this custom field.getValue()
Returns the value of this custom field.boolean
Whether this is a required field.
-
Constructor Details
-
CustomFieldImpl
-
-
Method Details
-
getId
Description copied from interface:ICustomField
Returns the ID of the custom field.- Specified by:
getId
in interfaceICustomField
- Returns:
- an ID of the custom field
-
getName
Description copied from interface:ICustomField
Returns the name of this Custom Field, which is displayed to the user.- Specified by:
getName
in interfaceICustomField
- Returns:
- the name of this Custom Field
-
getValue
Description copied from interface:ICustomField
Returns the value of this custom field.It's highly recommended to cast this value to the appropriate type, because it returns more appropriate data. For example, if the custom field is of type
CustomFieldType.TEXT
, you can cast the value toTextCustomField
, this class can be found usingCustomFieldType.getAssociatedClass()
.This will be null under the following circumstances:
- No value is specified.
- The task response did not contain a
value
. Notably when an individual task is retrieved.
- Specified by:
getValue
in interfaceICustomField
- Returns:
- the value of this custom field
-
getType
Description copied from interface:ICustomField
Returns the type of this custom field. This will be one ofCustomFieldType
.- Specified by:
getType
in interfaceICustomField
- Returns:
- the type of this custom field
-
getTimeCreated
Description copied from interface:ICustomField
Returns when this custom field was created.- Specified by:
getTimeCreated
in interfaceICustomField
- Returns:
- when this custom field was created
-
isRequired
public boolean isRequired()Description copied from interface:ICustomField
Whether this is a required field. Unlike the name implies,ICustomField.getValue()
may still benull
..This feature is exclusive to the Business plan or above, so this is likely to be
false
.- Specified by:
isRequired
in interfaceICustomField
- Returns:
- if this is a required custom field.
-
getClickUp4j
Description copied from interface:ICustomField
Returns thisClickUp4j
instance.- Specified by:
getClickUp4j
in interfaceICustomField
- Returns:
- this
ClickUp4j
instance
-