|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.fieldvalue.DefaultFieldValueItemHolder
public class DefaultFieldValueItemHolder
Field Summary |
---|
Fields inherited from interface com.atlassian.bamboo.fieldvalue.FieldValueItemHolder |
---|
DEFAULT_INT_VALUE, DEFAULT_ROW |
Constructor Summary | |
---|---|
DefaultFieldValueItemHolder()
|
|
DefaultFieldValueItemHolder(java.util.List fieldValueItems)
|
Method Summary | |
---|---|
void |
addFieldValueItems(java.lang.String keyField,
FieldValueItemHolder fieldValueItemHolder)
This method appends of the current holder with passed holder. |
FilteredMap |
asFilteredMap(java.lang.String prefix)
Returns the current object represented as a series of key value pairs, if the FieldValueItem 's key begins
with the passed prefix. |
java.util.List |
asList()
Returns the current object representation as a list of FieldValueItemHolder objects |
boolean |
getBoolean(java.lang.String key)
|
FieldValueItem |
getFieldItemValue(java.lang.String key,
java.lang.Integer row)
|
int |
getInt(java.lang.String key)
Returns the value as a int, using the DEFAULT_ROW as the row |
java.util.List |
getListOfStrings(java.lang.String key)
Gets all of the matching keys as a List of String s |
java.lang.String |
getString(java.lang.String key)
Gets a string value for the passsed key, using the DEFAULT_ROW as the row. |
java.lang.String |
getString(java.lang.String key,
java.lang.Integer row)
Gets a string value for the passsed key and row |
void |
setFieldValueItem(FieldValueItem fieldValueItem)
Adds a FieldValueItem to the list. |
void |
setFieldValueItem(java.lang.String key,
boolean value)
Adds a simple FieldValueItem for with the given keys. |
void |
setFieldValueItem(java.lang.String key,
int value)
Adds a simple FieldValueItem for with the given keys. |
void |
setFieldValueItem(java.lang.String key,
java.lang.String value,
int row)
|
void |
setFieldValueItems(FieldValueItemHolder fieldValueItemHolder)
Sets the values of the passed holder into the current object. |
void |
setFieldValueItems(java.util.List fieldValueItems)
|
void |
setFieldValueItems(java.util.Map params)
Sets the values of the passed holder into the current object. |
void |
setFieldValueItems(java.lang.String key,
java.util.List values)
Sets a list of strings given a key |
void |
setProperty(java.lang.String key,
java.lang.String value)
Adds a simple FieldValueItem for with the given keys. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFieldValueItemHolder()
public DefaultFieldValueItemHolder(java.util.List fieldValueItems)
Method Detail |
---|
public void setFieldValueItem(FieldValueItem fieldValueItem)
FieldValueItemHolder
FieldValueItem
to the list. Overrodes if exists.
setFieldValueItem
in interface FieldValueItemHolder
fieldValueItem
- - must not be nullpublic void setProperty(java.lang.String key, java.lang.String value)
FieldValueItemHolder
FieldValueItem
for with the given keys. This will over-ride field if the
property already exists.
setProperty
in interface FieldValueItemHolder
key
- - must not be nullvalue
- - can be nullpublic void setFieldValueItem(java.lang.String key, java.lang.String value, int row)
public void setFieldValueItem(java.lang.String key, int value)
FieldValueItemHolder
FieldValueItem
for with the given keys. This will over-ride field if the
property already exists. This will still store the int as a string
setFieldValueItem
in interface FieldValueItemHolder
key
- - must not be nullpublic void setFieldValueItem(java.lang.String key, boolean value)
FieldValueItemHolder
FieldValueItem
for with the given keys. This will over-ride field if the
property already exists.
setFieldValueItem
in interface FieldValueItemHolder
key
- - must not be nullpublic void setFieldValueItems(FieldValueItemHolder fieldValueItemHolder)
FieldValueItemHolder
FieldValueItem
s
setFieldValueItems
in interface FieldValueItemHolder
fieldValueItemHolder
- - must not be nullpublic void setFieldValueItems(java.lang.String key, java.util.List values)
FieldValueItemHolder
setFieldValueItems
in interface FieldValueItemHolder
key
- not nullvalues
- List
of Strings. Nullablepublic void setFieldValueItems(java.util.List fieldValueItems)
public void setFieldValueItems(java.util.Map params)
FieldValueItemHolder
FieldValueItem
s
setFieldValueItems
in interface FieldValueItemHolder
params
- - Map must not be null. It must also have a String for a key and valuepublic void addFieldValueItems(java.lang.String keyField, FieldValueItemHolder fieldValueItemHolder)
FieldValueItemHolder
addFieldValueItems
in interface FieldValueItemHolder
public java.util.List asList()
FieldValueItemHolder
asList
in interface FieldValueItemHolder
List
of FieldValueItemHolder
s. Never null.public FilteredMap asFilteredMap(java.lang.String prefix)
FieldValueItemHolder
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 added
asFilteredMap
in interface FieldValueItemHolder
prefix
- - must not be null
FilteredMap
filtered by the prefix. Empty map if no mataches.public java.lang.String getString(java.lang.String key)
FieldValueItemHolder
DEFAULT_ROW
as the row.
getString
in interface FieldValueItemHolder
key
- must not be null
public int getInt(java.lang.String key)
FieldValueItemHolder
DEFAULT_ROW
as the row
getInt
in interface FieldValueItemHolder
key
- must not be null
DEFAULT_INT_VALUE
if no key existspublic boolean getBoolean(java.lang.String key)
getBoolean
in interface FieldValueItemHolder
public java.lang.String getString(java.lang.String key, java.lang.Integer row)
FieldValueItemHolder
getString
in interface FieldValueItemHolder
key
- must not be nullrow
- must not be null
public java.util.List getListOfStrings(java.lang.String key)
FieldValueItemHolder
List
of String
s
getListOfStrings
in interface FieldValueItemHolder
List
of String
s. Mepty if no valuespublic FieldValueItem getFieldItemValue(java.lang.String key, java.lang.Integer row)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |