com.atlassian.bamboo.fieldvalue
Interface FieldValueObjectConverter

All Known Implementing Classes:
BuildDefinitionConverter

public interface FieldValueObjectConverter

Interface to define an object that converts a List of FieldValueItem objects to and from an arbitrary type.


Method Summary
 HierarchicalConfiguration fromObject(Object o)
          Converts the object to a FieldValueItemHolder of FieldValueItems
 Class getClassToConvert()
          Returns the class that this converter can convert
 Object toObject(HierarchicalConfiguration config, Object object)
          Converts a FieldValueItemHolder of FieldValueItem to an Object
 

Method Detail

getClassToConvert

Class getClassToConvert()
Returns the class that this converter can convert

Returns:
must not be null

fromObject

HierarchicalConfiguration fromObject(Object o)
Converts the object to a FieldValueItemHolder of FieldValueItems

Parameters:
o - must not be null
Returns:
FieldValueItemHolder of FieldValueItem. Never null
Throws:
IllegalArgumentException - if cannot convert type

toObject

Object toObject(HierarchicalConfiguration config,
                Object object)
Converts a FieldValueItemHolder of FieldValueItem to an Object

Parameters:
config -
object - - object to convert. Must not be null @return the object, with any values in the passed in the list set


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.