public class XMLSerializer extends Object
TemplateInput
parameters are stored in the DocumentModel
as a single String Property via XML
Serialization. This class contains the Serialization/Deserialization logic.Modifier and Type | Field and Description |
---|---|
static SimpleDateFormat |
dateFormat |
static org.dom4j.QName |
fieldsTag |
static org.dom4j.QName |
fieldTag |
protected static org.apache.commons.logging.Log |
log |
static org.dom4j.Namespace |
ns |
static String |
XML_NAMESPACE |
static String |
XML_NAMESPACE_PREFIX |
Constructor and Description |
---|
XMLSerializer() |
Modifier and Type | Method and Description |
---|---|
static List<TemplateInput> |
readFromXml(String xml) |
static String |
serialize(List<TemplateInput> params) |
protected static final org.apache.commons.logging.Log log
public static final String XML_NAMESPACE
public static final String XML_NAMESPACE_PREFIX
public static final org.dom4j.Namespace ns
public static final org.dom4j.QName fieldsTag
public static final org.dom4j.QName fieldTag
public static final SimpleDateFormat dateFormat
public XMLSerializer()
public static String serialize(List<TemplateInput> params)
public static List<TemplateInput> readFromXml(String xml) throws org.dom4j.DocumentException
org.dom4j.DocumentException
Copyright © 2015 Nuxeo SA. All rights reserved.