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.HierarchicalConfigurationConverts the object to aHierarchicalConfigurationReturns the class that this converter can convertConverts aHierarchicalConfigurationto 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 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
-