Class XMLTemplateSerializer
java.lang.Object
org.nuxeo.template.serializer.executors.XMLTemplateSerializer
- All Implemented Interfaces:
TemplateSerializer
TemplateInput parameters are stored in the DocumentModel as a single String Property via XML
Serialization. This class contains the Serialization/Deserialization logic.- Since:
- 11.1
- Author:
- Tiry ([email protected]), bjalon ([email protected])
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(String xml) Transform String to a List of TemplateInput.protected voiddoSerialization(org.dom4j.Element field, TemplateInput param) protected TemplateInputextractTemplateInputFromXMLNode(org.dom4j.Element node) protected BooleangetIsAutoloopFromXMLNode(org.dom4j.Element elem) protected BooleangetIsReadonlyFromXMLNode(org.dom4j.Element elem) protected StringgetNameFromXMLNode(org.dom4j.Element elem) protected InputTypegetTypeFromXMLNode(org.dom4j.Element elem) serialize(List<TemplateInput> params) Transform the List of TemplateInput to String.
-
Field Details
-
XML_NAMESPACE
- See Also:
-
XML_NAMESPACE_PREFIX
- See Also:
-
ns
public static final org.dom4j.Namespace ns -
fieldsTag
public static final org.dom4j.QName fieldsTag -
fieldTag
public static final org.dom4j.QName fieldTag -
DATE_FORMAT
- See Also:
-
-
Constructor Details
-
XMLTemplateSerializer
public XMLTemplateSerializer()
-
-
Method Details
-
deserialize
Description copied from interface:TemplateSerializerTransform String to a List of TemplateInput. TemplateInput represent a field that will be finally added into the context of the file rendition. Please for more information look the documentation ofTemplateSerializerService- Specified by:
deserializein interfaceTemplateSerializer- Parameters:
xml- String containing a list of fields' description serialized- Returns:
- the serialized content
-
extractTemplateInputFromXMLNode
-
getIsReadonlyFromXMLNode
-
getIsAutoloopFromXMLNode
-
getNameFromXMLNode
-
getTypeFromXMLNode
-
serialize
Description copied from interface:TemplateSerializerTransform the List of TemplateInput to String. Used to store a rendition context in the Document TemplateBased. Please for more information look the documentation ofTemplateSerializerService- Specified by:
serializein interfaceTemplateSerializer
-
doSerialization
-