Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.atlassian.bamboo.fieldvalue
Interface FieldValueObjectConverter

All Known Implementing Classes:
  BuildDefinitionConverter

    public interface FieldValueObjectConverter

Interface to define an object that converts a `List` of `FieldValueItem` objects to and from an arbitrary type.

Method Summary
`HierarchicalConfiguration` | `fromObject(Object o)` Converts the object to a `FieldValueItemHolder` of `FieldValueItem`s
`Class` | `getClassToConvert()` Returns the class that this converter can convert
`Object` | `toObject(HierarchicalConfiguration config, Object object)` Converts a `FieldValueItemHolder` of `FieldValueItem` to an Object

Method Detail

### getClassToConvert

    Class getClassToConvert()

  Returns the class that this converter can convert

  Returns:
    must not be null

### fromObject

    HierarchicalConfiguration fromObject(Object o)

  Converts the object to a `FieldValueItemHolder` of `FieldValueItem`s

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

### toObject

    Object toObject(HierarchicalConfiguration config,
                    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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Atlassian Software Systems. All Rights Reserved.