com.atlassian.bamboo.fieldvalue
Class BuildDefinitionConverter

java.lang.Object
  extended by com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter

public class BuildDefinitionConverter
extends java.lang.Object

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 CLEAN_WORKING_DIRECTORY
           
static java.lang.String DEPENDENT_WILL_BE_TRIGGERED_BY
           
static java.lang.String DEPENDENT_WILL_TRIGGER
           
static java.lang.String INHERIT_REPOSITORY
           
static java.lang.String REPOSITORY_DEFINING_WORKING_DIRECTORY
           
static java.lang.String SELECTED_BUILD_STRATEGY
           
static java.lang.String SELECTED_BUILDER_KEY
           
 
Constructor Summary
BuildDefinitionConverter(BuildStrategyManager buildStrategyManager, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 BuildDefinition copyConfigurationToDefinition(org.apache.commons.configuration.HierarchicalConfiguration fromConfig, BuildDefinition buildDefinition)
          Copies the HierarchicalConfiguration items to the passed BuildDefinition object
 org.apache.commons.configuration.XMLConfiguration fromObject(PartialBuildDefinition buildDefinition)
           
 java.util.List<BuildDefinitionTransformerModuleDescriptor> getTransformerDescriptors()
           
static
<T extends OptionallyConvertibleFromConfig>
T
populate(org.apache.commons.configuration.HierarchicalConfiguration fromConfig, T optionallyConvertibleFromConfig)
           
 void setBuildStrategyToConfig(org.apache.commons.configuration.XMLConfiguration config, BuildStrategy buildStrategy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INHERIT_REPOSITORY

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

SELECTED_BUILD_STRATEGY

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

REPOSITORY_DEFINING_WORKING_DIRECTORY

public static final java.lang.String REPOSITORY_DEFINING_WORKING_DIRECTORY
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_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

CLEAN_WORKING_DIRECTORY

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

BuildDefinitionConverter

public BuildDefinitionConverter(@NotNull
                                BuildStrategyManager buildStrategyManager,
                                @NotNull
                                com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

fromObject

public org.apache.commons.configuration.XMLConfiguration fromObject(@NotNull
                                                                    PartialBuildDefinition buildDefinition)

setBuildStrategyToConfig

public void setBuildStrategyToConfig(@NotNull
                                     org.apache.commons.configuration.XMLConfiguration config,
                                     @Nullable
                                     BuildStrategy buildStrategy)

copyConfigurationToDefinition

@NotNull
public BuildDefinition copyConfigurationToDefinition(@NotNull
                                                             org.apache.commons.configuration.HierarchicalConfiguration fromConfig,
                                                             @NotNull
                                                             BuildDefinition buildDefinition)
Copies the HierarchicalConfiguration items to the passed BuildDefinition object

Parameters:
fromConfig -
buildDefinition -
Returns:

getTransformerDescriptors

public java.util.List<BuildDefinitionTransformerModuleDescriptor> getTransformerDescriptors()

populate

@Nullable
public static <T extends OptionallyConvertibleFromConfig> T populate(@NotNull
                                                                              org.apache.commons.configuration.HierarchicalConfiguration fromConfig,
                                                                              @NotNull
                                                                              T optionallyConvertibleFromConfig)


Copyright © 2012 Atlassian. All Rights Reserved.