com.atlassian.bamboo.migration
Class BambooMapper

java.lang.Object
  extended by com.atlassian.bamboo.migration.BambooMapper
All Implemented Interfaces:
Mapper
Direct Known Subclasses:
AclMapper, AuthorMapper, BandanaItemMapper, ElasticImageConfigurationMapper, ElasticInstanceScheduleMapper, GroupMapper, InstantMessagingServerMapper, JiraServerMapper, LabelMapper, MailServerMapper, PipelineMapper, ProjectDependencyMapper, ProjectMapper, ServerIDMapper, SharedCapabilityMapper, UserMapper

public abstract class BambooMapper
extends java.lang.Object
implements Mapper


Field Summary
static java.lang.String GENERIC_XML_CREATIONDATE
           
static java.lang.String GENERIC_XML_ID
           
static java.lang.String GENERIC_XML_MODIFICATIONDATE
           
 
Constructor Summary
BambooMapper()
           
 
Method Summary
protected  void addElementIfNotBlank(org.dom4j.Element element, java.lang.String elementName, boolean value)
           
protected  void addElementIfNotBlank(org.dom4j.Element element, java.lang.String elementName, int value)
           
protected  void addElementIfNotBlank(org.dom4j.Element element, java.lang.String elementName, long value)
           
protected  void addElementIfNotBlank(org.dom4j.Element element, java.lang.String elementName, java.lang.String value)
           
protected  void exportDefaults(java.lang.Object object, org.dom4j.Element element)
           
protected  java.lang.String getOptionalString(org.dom4j.Element element)
           
protected  boolean getOptionalValue(org.dom4j.Element element, java.lang.String elementName, boolean defaultValue)
           
protected  int getOptionalValue(org.dom4j.Element element, java.lang.String elementName, int defaultValue)
           
protected  java.lang.String getOptionalValue(org.dom4j.Element element, java.lang.String elementName, java.lang.String defaultValue)
           
protected static java.util.Date parseDateElement(org.dom4j.Element element)
           
protected  void populateDefaults(java.lang.Object object, org.dom4j.Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.migration.Mapper
exportXml, importXml
 

Field Detail

GENERIC_XML_ID

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

GENERIC_XML_CREATIONDATE

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

GENERIC_XML_MODIFICATIONDATE

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

BambooMapper

public BambooMapper()
Method Detail

getOptionalString

@Nullable
protected java.lang.String getOptionalString(org.dom4j.Element element)

populateDefaults

protected void populateDefaults(java.lang.Object object,
                                org.dom4j.Element element)
                         throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

parseDateElement

@Nullable
protected static java.util.Date parseDateElement(org.dom4j.Element element)

exportDefaults

protected void exportDefaults(java.lang.Object object,
                              org.dom4j.Element element)
                       throws java.lang.IllegalArgumentException,
                              java.text.ParseException
Throws:
java.lang.IllegalArgumentException
java.text.ParseException

addElementIfNotBlank

protected void addElementIfNotBlank(org.dom4j.Element element,
                                    java.lang.String elementName,
                                    java.lang.String value)

getOptionalValue

protected boolean getOptionalValue(@NotNull
                                   org.dom4j.Element element,
                                   @NotNull
                                   java.lang.String elementName,
                                   boolean defaultValue)

getOptionalValue

protected int getOptionalValue(@NotNull
                               org.dom4j.Element element,
                               @NotNull
                               java.lang.String elementName,
                               int defaultValue)

getOptionalValue

@Nullable
protected java.lang.String getOptionalValue(@NotNull
                                                     org.dom4j.Element element,
                                                     @NotNull
                                                     java.lang.String elementName,
                                                     @Nullable
                                                     java.lang.String defaultValue)

addElementIfNotBlank

protected void addElementIfNotBlank(@NotNull
                                    org.dom4j.Element element,
                                    @NotNull
                                    java.lang.String elementName,
                                    boolean value)

addElementIfNotBlank

protected void addElementIfNotBlank(@NotNull
                                    org.dom4j.Element element,
                                    @NotNull
                                    java.lang.String elementName,
                                    int value)

addElementIfNotBlank

protected void addElementIfNotBlank(@NotNull
                                    org.dom4j.Element element,
                                    @NotNull
                                    java.lang.String elementName,
                                    long value)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.