com.atlassian.bamboo.migration
Class MapperUtil
java.lang.Object
com.atlassian.bamboo.migration.MapperUtil
public class MapperUtil
- extends Object
Method Summary |
static void |
addElementIfNotBlank(org.dom4j.Element element,
String elementName,
boolean value)
|
static void |
addElementIfNotBlank(org.dom4j.Element element,
String elementName,
int value)
|
static void |
addElementIfNotBlank(org.dom4j.Element element,
String elementName,
long value)
|
static void |
addElementIfNotBlank(org.dom4j.Element element,
String elementName,
String value)
|
static
|
createFakeObject(Class<T> objectClass,
org.codehaus.staxmate.in.SMInputCursor inputCursor)
|
static void |
exportDefaults(Object object,
org.dom4j.Element element)
|
static void |
exportDefaults(org.codehaus.staxmate.out.SMOutputElement outputElement,
Object object)
|
static
<T> com.google.common.base.Function<T,Void> |
|
exportXmlFunction(BambooStAXMappingHelperAbstractImpl<T> mapper,
org.codehaus.staxmate.out.SMOutputElement rootElement,
ExportDetailsBean exportDetailsBean)
|
static void |
importDefaults(Object object,
org.codehaus.staxmate.in.SMInputCursor inputCursor)
|
static boolean |
matchesElement(BambooStAXMappingHelperAbstractImpl mapper,
String elementName)
|
static boolean |
matchesElement(BambooStAXMappingListHelperAbstractImpl mapper,
String elementName)
|
static Date |
parseDateElement(org.dom4j.Element element)
|
static Date |
parseDateElement(org.codehaus.staxmate.in.SMInputCursor inputCursor)
|
static Date |
parseDateElement(String dateString)
|
static void |
populateDefaults(Object object,
org.dom4j.Element element)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GENERIC_XML_ID
public static final String GENERIC_XML_ID
- See Also:
- Constant Field Values
GENERIC_XML_CREATIONDATE
public static final String GENERIC_XML_CREATIONDATE
- See Also:
- Constant Field Values
GENERIC_XML_MODIFICATIONDATE
public static final String GENERIC_XML_MODIFICATIONDATE
- See Also:
- Constant Field Values
MapperUtil
public MapperUtil()
addElementIfNotBlank
public static void addElementIfNotBlank(@NotNull
org.dom4j.Element element,
@NotNull
String elementName,
String value)
addElementIfNotBlank
public static void addElementIfNotBlank(@NotNull
org.dom4j.Element element,
@NotNull
String elementName,
boolean value)
addElementIfNotBlank
public static void addElementIfNotBlank(@NotNull
org.dom4j.Element element,
@NotNull
String elementName,
int value)
addElementIfNotBlank
public static void addElementIfNotBlank(@NotNull
org.dom4j.Element element,
@NotNull
String elementName,
long value)
exportDefaults
public static void exportDefaults(Object object,
org.dom4j.Element element)
throws IllegalArgumentException,
ParseException
- Parameters:
object
- element
-
- Throws:
IllegalArgumentException
ParseException
exportDefaults
public static void exportDefaults(@NotNull
org.codehaus.staxmate.out.SMOutputElement outputElement,
@Nullable
Object object)
throws XMLStreamException
- Throws:
XMLStreamException
populateDefaults
public static void populateDefaults(Object object,
org.dom4j.Element element)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
importDefaults
public static void importDefaults(@Nullable
Object object,
@NotNull
org.codehaus.staxmate.in.SMInputCursor inputCursor)
throws XMLStreamException
- Throws:
XMLStreamException
parseDateElement
@Nullable
public static Date parseDateElement(org.dom4j.Element element)
parseDateElement
@Nullable
public static Date parseDateElement(org.codehaus.staxmate.in.SMInputCursor inputCursor)
throws XMLStreamException
- Throws:
XMLStreamException
createFakeObject
public static <T extends BambooEntityObject> T createFakeObject(@NotNull
Class<T> objectClass,
@NotNull
org.codehaus.staxmate.in.SMInputCursor inputCursor)
throws XMLStreamException,
IllegalAccessException,
InstantiationException
- Throws:
XMLStreamException
IllegalAccessException
InstantiationException
parseDateElement
@Nullable
public static Date parseDateElement(@Nullable
String dateString)
matchesElement
public static boolean matchesElement(@NotNull
BambooStAXMappingHelperAbstractImpl mapper,
@NotNull
String elementName)
throws XMLStreamException
- Throws:
XMLStreamException
matchesElement
public static boolean matchesElement(@NotNull
BambooStAXMappingListHelperAbstractImpl mapper,
@NotNull
String elementName)
throws XMLStreamException
- Throws:
XMLStreamException
exportXmlFunction
public static <T> com.google.common.base.Function<T,Void> exportXmlFunction(@NotNull
BambooStAXMappingHelperAbstractImpl<T> mapper,
@NotNull
org.codehaus.staxmate.out.SMOutputElement rootElement,
ExportDetailsBean exportDetailsBean)
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.