|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.customfields.view.CustomFieldParamsImpl
public class CustomFieldParamsImpl
Constructor Summary | |
---|---|
CustomFieldParamsImpl()
|
|
CustomFieldParamsImpl(CustomField customField)
|
|
CustomFieldParamsImpl(CustomField customField,
Object paramsObject)
|
Method Summary | |
---|---|
void |
addValue(Collection<String> values)
|
void |
addValue(String key,
Collection<String> values)
|
boolean |
contains(String key,
String value)
|
boolean |
containsKey(String key)
|
boolean |
equals(Object o)
|
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. |
int |
hashCode()
|
boolean |
isEmpty()
|
void |
put(String key,
Collection<String> value)
Put the values in. |
void |
remove(String key)
|
void |
setCustomField(CustomField customField)
|
String |
toString()
|
void |
transform(org.apache.commons.collections.Transformer transformer)
|
static void |
transformMultiMap(org.apache.commons.collections.Transformer transformer,
Map parameterMap)
|
void |
transformObjectsToStrings()
|
void |
transformStringsToObjects()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CustomFieldParamsImpl()
public CustomFieldParamsImpl(CustomField customField)
public CustomFieldParamsImpl(CustomField customField, Object paramsObject)
Method Detail |
---|
public Set<String> getAllKeys()
getAllKeys
in interface FieldParams
public CustomField getCustomField()
getCustomField
in interface CustomFieldParams
public void setCustomField(CustomField customField)
setCustomField
in interface CustomFieldParams
public Collection<String> getValuesForKey(@Nullable 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 Object getFirstValueForKey(@Nullable String key)
getFirstValueForKey
in interface FieldTransportParams
public Collection getValuesForNullKey()
CollectionParams
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 void addValue(String key, Collection<String> values)
public void addValue(Collection<String> values)
public void put(String key, Collection<String> value)
CollectionParams
put
in interface CollectionParams
key
- for mappingvalue
- a Collection of Strings.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
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 void transformStringsToObjects()
transformStringsToObjects
in interface CustomFieldParams
public static void transformMultiMap(org.apache.commons.collections.Transformer transformer, Map parameterMap)
public void transform(org.apache.commons.collections.Transformer transformer)
transform
in interface CustomFieldParams
public Object getFirstValueForNullKey()
getFirstValueForNullKey
in interface FieldTransportParams
public Map getKeysAndValues()
getKeysAndValues
in interface CustomFieldParams
getKeysAndValues
in interface FieldParams
public void remove(String key)
remove
in interface CustomFieldParams
public boolean containsKey(String key)
containsKey
in interface FieldParams
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |