public interface FieldValueItemHolder
FieldValueItem
objectsModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INT_VALUE |
static Integer |
DEFAULT_ROW |
Modifier and Type | Method and Description |
---|---|
void |
addFieldValueItems(String keyField,
FieldValueItemHolder fieldValueItemHolder)
This method appends of the current holder with passed holder.
|
FilteredMap |
asFilteredMap(String prefix)
Returns the current object represented as a series of key value pairs, if the
FieldValueItem 's key begins
with the passed prefix. |
List |
asList()
Returns the current object representation as a list of FieldValueItemHolder objects
|
boolean |
getBoolean(String key) |
int |
getInt(String key)
Returns the value as a int, using the
DEFAULT_ROW as the row |
List |
getListOfStrings(String key)
|
String |
getString(String key)
Gets a string value for the passsed key, using the
DEFAULT_ROW as the row. |
String |
getString(String key,
Integer row)
Gets a string value for the passsed key and row
|
void |
setFieldValueItem(FieldValueItem fieldValueItem)
Adds a
FieldValueItem to the list. |
void |
setFieldValueItem(String key,
boolean value)
Adds a simple
FieldValueItem for with the given keys. |
void |
setFieldValueItem(String key,
int value)
Adds a simple
FieldValueItem for with the given keys. |
void |
setFieldValueItems(FieldValueItemHolder fieldValueItemHolder)
Sets the values of the passed holder into the current object.
|
void |
setFieldValueItems(Map params)
Sets the values of the passed holder into the current object.
|
void |
setFieldValueItems(String key,
List values)
Sets a list of strings given a key
|
void |
setProperty(String key,
String value)
Adds a simple
FieldValueItem for with the given keys. |
static final int DEFAULT_INT_VALUE
static final Integer DEFAULT_ROW
void setFieldValueItem(FieldValueItem fieldValueItem)
FieldValueItem
to the list. Overrodes if exists.fieldValueItem
- - must not be nullvoid setProperty(String key, String value)
FieldValueItem
for with the given keys. This will over-ride field if the
property already exists.key
- - must not be nullvalue
- - can be nullvoid setFieldValueItem(String key, int value)
FieldValueItem
for with the given keys. This will over-ride field if the
property already exists. This will still store the int as a stringkey
- - must not be nullvalue
- void setFieldValueItem(String key, boolean value)
FieldValueItem
for with the given keys. This will over-ride field if the
property already exists.key
- - must not be nullvalue
- void setFieldValueItems(FieldValueItemHolder fieldValueItemHolder)
FieldValueItem
sfieldValueItemHolder
- - must not be nullvoid setFieldValueItems(String key, List values)
key
- not nullvalues
- List
of Strings. Nullablevoid setFieldValueItems(Map params)
FieldValueItem
sparams
- - Map must not be null. It must also have a String for a key and valuevoid addFieldValueItems(String keyField, FieldValueItemHolder fieldValueItemHolder)
keyField
- fieldValueItemHolder
- String getString(String key)
DEFAULT_ROW
as the row.key
- must not be nullint getInt(String key)
DEFAULT_ROW
as the rowkey
- must not be nullDEFAULT_INT_VALUE
if no key existsNumberFormatException
- if the value cannot be parsed.boolean getBoolean(String key)
String getString(String key, Integer row)
key
- must not be nullrow
- must not be nullList asList()
List
of FieldValueItemHolder
s. Never null.FilteredMap asFilteredMap(String prefix)
FieldValueItem
's key begins
with the passed prefix. If there are multiple FieldValueItem
withe the same key, (ie. multiple rows) then
the actual value returned is unpredictable (so obviously should be avoided). Values that do not match the prefix
are not addedprefix
- - must not be nullFilteredMap
filtered by the prefix. Empty map if no mataches.Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.