Package com.atlassian.bamboo.fieldvalue
Interface ConfigObjectConverter
public interface ConfigObjectConverter
Interface to define an object that converts a
HierarchicalConfiguration
objects to
and from an arbitrary type.-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.configuration.HierarchicalConfiguration
Converts the object to aHierarchicalConfiguration
Returns the class that this converter can convertConverts aHierarchicalConfiguration
to an Object
-
Method Details
-
getClassToConvert
Class getClassToConvert()Returns the class that this converter can convert- Returns:
- must not be null
-
fromObjectToConfig
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
-