com.atlassian.bamboo.fieldvalue
Class BuildDefinitionConverter

java.lang.Object
  extended by com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter
All Implemented Interfaces:
FieldValueObjectConverter

public class BuildDefinitionConverter
extends java.lang.Object
implements FieldValueObjectConverter

Converts a BuildDefinition to and from an XMLConfiguration


Field Summary
static java.lang.String BUILD_POLLING
           
static java.lang.String BUILD_TRIGGER_IP
           
static java.lang.String DEPENDENT_WILL_BE_TRIGGERED_BY
           
static java.lang.String DEPENDENT_WILL_TRIGGER
           
static java.lang.String SELECTED_BUILD_STRATEGY
           
static java.lang.String SELECTED_BUILDER_KEY
           
static java.lang.String SELECTED_BUILDER_LABEL
           
static java.lang.String SELECTED_REPOSITORY_KEY
           
 
Constructor Summary
BuildDefinitionConverter()
           
 
Method Summary
 org.apache.commons.configuration.HierarchicalConfiguration fromObject(java.lang.Object o)
          Converts the object to a FieldValueItemHolder of FieldValueItems
 java.lang.Class getClassToConvert()
          Returns the class that this converter can convert
 void setBuilderManager(BuilderManager builderManager)
           
 void setBuildStrategyManager(BuildStrategyManager buildStrategyManager)
           
 void setPluginManager(com.atlassian.plugin.PluginManager pluginManager)
           
 void setRepositoryManager(RepositoryManager repositoryManager)
           
 java.lang.Object toObject(org.apache.commons.configuration.HierarchicalConfiguration config, java.lang.Object object)
          Converts a FieldValueItemHolder of FieldValueItem to an Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECTED_REPOSITORY_KEY

public static final java.lang.String SELECTED_REPOSITORY_KEY
See Also:
Constant Field Values

SELECTED_BUILD_STRATEGY

public static final java.lang.String SELECTED_BUILD_STRATEGY
See Also:
Constant Field Values

BUILD_POLLING

public static final java.lang.String BUILD_POLLING
See Also:
Constant Field Values

BUILD_TRIGGER_IP

public static final java.lang.String BUILD_TRIGGER_IP
See Also:
Constant Field Values

SELECTED_BUILDER_LABEL

public static final java.lang.String SELECTED_BUILDER_LABEL
See Also:
Constant Field Values

SELECTED_BUILDER_KEY

public static final java.lang.String SELECTED_BUILDER_KEY
See Also:
Constant Field Values

DEPENDENT_WILL_TRIGGER

public static final java.lang.String DEPENDENT_WILL_TRIGGER
See Also:
Constant Field Values

DEPENDENT_WILL_BE_TRIGGERED_BY

public static final java.lang.String DEPENDENT_WILL_BE_TRIGGERED_BY
See Also:
Constant Field Values
Constructor Detail

BuildDefinitionConverter

public BuildDefinitionConverter()
Method Detail

getClassToConvert

public java.lang.Class getClassToConvert()
Description copied from interface: FieldValueObjectConverter
Returns the class that this converter can convert

Specified by:
getClassToConvert in interface FieldValueObjectConverter
Returns:
must not be null

fromObject

public org.apache.commons.configuration.HierarchicalConfiguration fromObject(java.lang.Object o)
Description copied from interface: FieldValueObjectConverter
Converts the object to a FieldValueItemHolder of FieldValueItems

Specified by:
fromObject in interface FieldValueObjectConverter
Parameters:
o - must not be null
Returns:
FieldValueItemHolder of FieldValueItem. Never null

toObject

public java.lang.Object toObject(org.apache.commons.configuration.HierarchicalConfiguration config,
                                 java.lang.Object object)
Description copied from interface: FieldValueObjectConverter
Converts a FieldValueItemHolder of FieldValueItem to an Object

Specified by:
toObject in interface FieldValueObjectConverter
object - - object to convert. Must not be null @return the object, with any values in the passed in the list set

setBuildStrategyManager

public void setBuildStrategyManager(BuildStrategyManager buildStrategyManager)

setRepositoryManager

public void setRepositoryManager(RepositoryManager repositoryManager)

setBuilderManager

public void setBuilderManager(BuilderManager builderManager)

setPluginManager

public void setPluginManager(com.atlassian.plugin.PluginManager pluginManager)


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.