Package com.atlassian.bamboo.fieldvalue
Interface ConfigObjectConverter
-
public interface ConfigObjectConverter
Interface to define an object that converts aHierarchicalConfiguration
objects to and from an arbitrary type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.commons.configuration.HierarchicalConfiguration
fromObjectToConfig(Object o)
Converts the object to aHierarchicalConfiguration
Class
getClassToConvert()
Returns the class that this converter can convertObject
toObject(org.apache.commons.configuration.HierarchicalConfiguration fieldValueItems, Object object)
Converts aHierarchicalConfiguration
to an Object
-
-
-
Method Detail
-
getClassToConvert
Class getClassToConvert()
Returns the class that this converter can convert- Returns:
- must not be null
-
fromObjectToConfig
org.apache.commons.configuration.HierarchicalConfiguration fromObjectToConfig(Object o)
Converts the object to aHierarchicalConfiguration
- Parameters:
o
- must not be null- Returns:
HierarchicalConfiguration
. Never null- Throws:
IllegalArgumentException
- if cannot convert type
-
toObject
Object toObject(org.apache.commons.configuration.HierarchicalConfiguration fieldValueItems, Object object)
Converts aHierarchicalConfiguration
to an Object- Parameters:
fieldValueItems
- - must not be nullobject
- - object to convert. Must not be null- Returns:
- the object, with any values in the passed in the list set
-
-