com.atlassian.bamboo.migration
Class MapperUtil

java.lang.Object
  extended by com.atlassian.bamboo.migration.MapperUtil

public class MapperUtil
extends java.lang.Object


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
MapperUtil()
           
 
Method Summary
static void addElementIfNotBlank(org.dom4j.Element element, java.lang.String elementName, boolean value)
           
static void addElementIfNotBlank(org.dom4j.Element element, java.lang.String elementName, int value)
           
static void addElementIfNotBlank(org.dom4j.Element element, java.lang.String elementName, long value)
           
static void addElementIfNotBlank(org.dom4j.Element element, java.lang.String elementName, java.lang.String value)
           
static void exportDefaults(java.lang.Object object, org.dom4j.Element element)
           
static void exportDefaults(org.codehaus.staxmate.out.SMOutputElement outputElement, java.lang.Object object)
           
static void importDefaults(java.lang.Object object, org.codehaus.staxmate.in.SMInputCursor inputCursor)
           
static java.util.Date parseDateElement(org.dom4j.Element element)
           
static java.util.Date parseDateElement(java.lang.String dateString)
           
static 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
 

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

MapperUtil

public MapperUtil()
Method Detail

addElementIfNotBlank

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

addElementIfNotBlank

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

addElementIfNotBlank

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

addElementIfNotBlank

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

exportDefaults

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

exportDefaults

public static void exportDefaults(@NotNull
                                  org.codehaus.staxmate.out.SMOutputElement outputElement,
                                  @Nullable
                                  java.lang.Object object)
                           throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

populateDefaults

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

importDefaults

public static void importDefaults(@Nullable
                                  java.lang.Object object,
                                  @NotNull
                                  org.codehaus.staxmate.in.SMInputCursor inputCursor)
                           throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

parseDateElement

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

parseDateElement

@Nullable
public static java.util.Date parseDateElement(@Nullable
                                                       java.lang.String dateString)


Copyright © 2010 Atlassian. All Rights Reserved.