com.atlassian.bamboo.fieldvalue
Interface FieldValueObjectConverter

All Known Implementing Classes:
BuildDefinitionConverter

public interface FieldValueObjectConverter

Interface to define an object that converts a HierarchicalConfiguration object to and from an arbitrary type.


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

Method Detail

getClassToConvert

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

Returns:
must not be null

fromObject

org.apache.commons.configuration.HierarchicalConfiguration fromObject(java.lang.Object o)
Converts the object to a FieldValueItemHolder of FieldValueItems

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

toObject

java.lang.Object toObject(org.apache.commons.configuration.HierarchicalConfiguration config,
                          java.lang.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 © 2010 Atlassian. All Rights Reserved.