Class XMLTemplateSerializer

    • Field Detail

      • ns

        public static final org.dom4j.Namespace ns
      • fieldsTag

        public static final org.dom4j.QName fieldsTag
      • fieldTag

        public static final org.dom4j.QName fieldTag
    • Constructor Detail

      • XMLTemplateSerializer

        public XMLTemplateSerializer()
    • Method Detail

      • deserialize

        public List<TemplateInput> deserialize​(String xml)
        Description copied from interface: TemplateSerializer
        Transform 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 of TemplateSerializerService
        Specified by:
        deserialize in interface TemplateSerializer
        Parameters:
        xml - String containing a list of fields' description serialized
        Returns:
        the serialized content
      • extractTemplateInputFromXMLNode

        protected TemplateInput extractTemplateInputFromXMLNode​(org.dom4j.Element node)
      • getIsReadonlyFromXMLNode

        protected Boolean getIsReadonlyFromXMLNode​(org.dom4j.Element elem)
      • getIsAutoloopFromXMLNode

        protected Boolean getIsAutoloopFromXMLNode​(org.dom4j.Element elem)
      • getNameFromXMLNode

        protected String getNameFromXMLNode​(org.dom4j.Element elem)
      • getTypeFromXMLNode

        protected InputType getTypeFromXMLNode​(org.dom4j.Element elem)
      • doSerialization

        protected void doSerialization​(org.dom4j.Element field,
                                       TemplateInput param)