Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatamapping.io
Class DDMFormXSDSerializerImpl

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.io.DDMFormXSDSerializerImpl
All Implemented Interfaces:
DDMFormXSDSerializer

public class DDMFormXSDSerializerImpl
extends Object
implements DDMFormXSDSerializer


Constructor Summary
DDMFormXSDSerializerImpl()
           
 
Method Summary
protected  void addDynamicElementAttributes(DDMFormField ddmFormField, Element dynamicElementElement)
           
protected  void addDynamicElementElement(DDMFormField ddmFormField, Element element)
           
protected  void addDynamicElementElements(List<DDMFormField> ddmFormFields, Element element)
           
protected  void addMetadataElements(Map<Locale,Map<String,String>> metadataMap, Element dynamicElementElement)
           
protected  void addMetadataEntry(Map<String,String> entryMap, Element metadataElement)
           
protected  void addMetadataEntryValues(Map<Locale,Map<String,String>> ddmFormFieldMetadataMap, String entryName, LocalizedValue localizedValue)
           
protected  Element addOptionDynamicElement(String optionValue, Element dynamicElement)
           
protected  void addOptionsDynamicElements(DDMFormFieldOptions ddmFormFieldOptions, Element dynamicElementElement)
           
protected  String getAvailableLanguagesIds(DDMForm ddmForm)
           
protected  Map<Locale,Map<String,String>> getDDMFormFieldMetadataMap(DDMFormField ddmFormField)
           
protected  Map<Locale,Map<String,String>> getOptionLabelsMap(LocalizedValue optionLabels)
           
 String serialize(DDMForm ddmForm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMFormXSDSerializerImpl

public DDMFormXSDSerializerImpl()
Method Detail

serialize

public String serialize(DDMForm ddmForm)
Specified by:
serialize in interface DDMFormXSDSerializer

addDynamicElementAttributes

protected void addDynamicElementAttributes(DDMFormField ddmFormField,
                                           Element dynamicElementElement)

addDynamicElementElement

protected void addDynamicElementElement(DDMFormField ddmFormField,
                                        Element element)

addDynamicElementElements

protected void addDynamicElementElements(List<DDMFormField> ddmFormFields,
                                         Element element)

addMetadataElements

protected void addMetadataElements(Map<Locale,Map<String,String>> metadataMap,
                                   Element dynamicElementElement)

addMetadataEntry

protected void addMetadataEntry(Map<String,String> entryMap,
                                Element metadataElement)

addMetadataEntryValues

protected void addMetadataEntryValues(Map<Locale,Map<String,String>> ddmFormFieldMetadataMap,
                                      String entryName,
                                      LocalizedValue localizedValue)

addOptionDynamicElement

protected Element addOptionDynamicElement(String optionValue,
                                          Element dynamicElement)

addOptionsDynamicElements

protected void addOptionsDynamicElements(DDMFormFieldOptions ddmFormFieldOptions,
                                         Element dynamicElementElement)

getAvailableLanguagesIds

protected String getAvailableLanguagesIds(DDMForm ddmForm)

getDDMFormFieldMetadataMap

protected Map<Locale,Map<String,String>> getDDMFormFieldMetadataMap(DDMFormField ddmFormField)

getOptionLabelsMap

protected Map<Locale,Map<String,String>> getOptionLabelsMap(LocalizedValue optionLabels)

Liferay 7.0-ce-m3