public class MapperUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GENERIC_XML_CREATIONDATE |
static String |
GENERIC_XML_ID |
static String |
GENERIC_XML_MODIFICATIONDATE |
static String |
GENERIC_XML_OID |
Constructor and Description |
---|
MapperUtil() |
Modifier and Type | Method and Description |
---|---|
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 <T extends com.atlassian.core.bean.EntityObject> |
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> Consumer<T> |
exportXmlConsumer(BambooStAXMappingHelperAbstractImpl<T> mapper,
org.codehaus.staxmate.out.SMOutputElement rootElement,
ExportDetailsBean exportDetailsBean) |
static <T> Consumer<T> |
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) |
public static final String GENERIC_XML_ID
public static final String GENERIC_XML_OID
public static final String GENERIC_XML_CREATIONDATE
public static final String GENERIC_XML_MODIFICATIONDATE
public static void addElementIfNotBlank(@NotNull org.dom4j.Element element, @NotNull String elementName, String value)
public static void addElementIfNotBlank(@NotNull org.dom4j.Element element, @NotNull String elementName, boolean value)
public static void addElementIfNotBlank(@NotNull org.dom4j.Element element, @NotNull String elementName, int value)
public static void addElementIfNotBlank(@NotNull org.dom4j.Element element, @NotNull String elementName, long value)
public static void exportDefaults(Object object, org.dom4j.Element element) throws IllegalArgumentException, ParseException
object
- element
- IllegalArgumentException
ParseException
public static void exportDefaults(@NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @Nullable Object object) throws XMLStreamException
XMLStreamException
public static void populateDefaults(Object object, org.dom4j.Element element) throws IllegalArgumentException
IllegalArgumentException
public static void importDefaults(@Nullable Object object, @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor) throws XMLStreamException
XMLStreamException
@Nullable public static Date parseDateElement(org.dom4j.Element element)
@Nullable public static Date parseDateElement(org.codehaus.staxmate.in.SMInputCursor inputCursor) throws XMLStreamException
XMLStreamException
public static <T extends com.atlassian.core.bean.EntityObject> T createFakeObject(@NotNull Class<T> objectClass, @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor) throws XMLStreamException, IllegalAccessException, InstantiationException
public static boolean matchesElement(@NotNull BambooStAXMappingHelperAbstractImpl mapper, @NotNull String elementName) throws XMLStreamException
XMLStreamException
public static boolean matchesElement(@NotNull BambooStAXMappingListHelperAbstractImpl mapper, @NotNull String elementName) throws XMLStreamException
XMLStreamException
public static <T> Consumer<T> exportXmlFunction(@NotNull BambooStAXMappingHelperAbstractImpl<T> mapper, @NotNull org.codehaus.staxmate.out.SMOutputElement rootElement, ExportDetailsBean exportDetailsBean)
public static <T> Consumer<T> exportXmlConsumer(@NotNull BambooStAXMappingHelperAbstractImpl<T> mapper, @NotNull org.codehaus.staxmate.out.SMOutputElement rootElement, ExportDetailsBean exportDetailsBean)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.