Package com.atlassian.bamboo.fieldvalue
Interface ConfigObjectConverter
-
public interface ConfigObjectConverterInterface to define an object that converts aHierarchicalConfigurationobjects to and from an arbitrary type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.commons.configuration.HierarchicalConfigurationfromObjectToConfig(Object o)Converts the object to aHierarchicalConfigurationClassgetClassToConvert()Returns the class that this converter can convertObjecttoObject(org.apache.commons.configuration.HierarchicalConfiguration fieldValueItems, Object object)Converts aHierarchicalConfigurationto 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 aHierarchicalConfigurationto 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
-
-