public class NullCustomFieldParams extends Object implements CustomFieldParams
Constructor and Description |
---|
NullCustomFieldParams() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String key,
String value) |
boolean |
containsKey(String key) |
Set<String> |
getAllKeys() |
Collection |
getAllValues()
Return all values of all keys, flattened into a single collection.
|
CustomField |
getCustomField() |
Object |
getFirstValueForKey(String key) |
Object |
getFirstValueForNullKey() |
Map |
getKeysAndValues() |
String |
getQueryString() |
Collection<String> |
getValuesForKey(String key)
Return the values associated with the given
key in the parameters. |
Collection |
getValuesForNullKey()
Return the values of the custom field.
|
boolean |
isEmpty() |
void |
put(String key,
Collection<String> value)
Put the values in.
|
void |
remove(String key) |
void |
setCustomField(CustomField customField) |
void |
transform(org.apache.commons.collections.Transformer transformer) |
void |
transformObjectsToStrings() |
void |
transformStringsToObjects() |
public void put(String key, Collection<String> value)
CollectionParams
put
in interface CollectionParams
key
- for mappingvalue
- a Collection of Strings.public void remove(String key)
remove
in interface CustomFieldParams
public Set<String> getAllKeys()
getAllKeys
in interface FieldParams
public void transformStringsToObjects()
transformStringsToObjects
in interface CustomFieldParams
public void setCustomField(CustomField customField)
setCustomField
in interface CustomFieldParams
public CustomField getCustomField()
getCustomField
in interface CustomFieldParams
public Collection<String> getValuesForKey(String key)
CollectionParams
key
in the parameters.
Depending on the type of field, additional keys might be introduced in addition to the null key. JIRA might also add additional keys into the parameters. For example, issue id and project id might be passed into the parameters under separate keys during custom field validation.
getValuesForKey
in interface CollectionParams
public Collection getValuesForNullKey()
CollectionParams
The values associated with the null key represents the values of the custom field. For example, the user selected in a single user picker, or the list of users selected in a multiple user picker.
Note that unlike CollectionParams.getAllValues()
, this method does not return values associated with other non-null keys.
getValuesForNullKey
in interface CollectionParams
public Collection getAllValues()
CollectionParams
CollectionParams.getValuesForNullKey()
instead if, for example, you just need the values of the custom field.getAllValues
in interface CollectionParams
public String getQueryString()
getQueryString
in interface CustomFieldParams
public boolean isEmpty()
isEmpty
in interface FieldParams
public boolean contains(String key, String value)
contains
in interface CustomFieldParams
public void transformObjectsToStrings()
transformObjectsToStrings
in interface CustomFieldParams
public Object getFirstValueForNullKey()
getFirstValueForNullKey
in interface FieldTransportParams
public Map getKeysAndValues()
getKeysAndValues
in interface CustomFieldParams
getKeysAndValues
in interface FieldParams
public boolean containsKey(String key)
containsKey
in interface FieldParams
public Object getFirstValueForKey(String key)
getFirstValueForKey
in interface FieldTransportParams
public void transform(org.apache.commons.collections.Transformer transformer)
transform
in interface CustomFieldParams
Copyright © 2002-2021 Atlassian. All Rights Reserved.