Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatamapping.io
Class DDMFormJSONSerializerImpl

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.io.DDMFormJSONSerializerImpl
All Implemented Interfaces:
DDMFormJSONSerializer

public class DDMFormJSONSerializerImpl
extends Object
implements DDMFormJSONSerializer


Constructor Summary
DDMFormJSONSerializerImpl()
           
 
Method Summary
protected  void addAvailableLanguageIds(JSONObject jsonObject, Set<Locale> availableLocales)
           
protected  void addDefaultLanguageId(JSONObject jsonObject, Locale defaultLocale)
           
protected  void addFields(JSONObject jsonObject, List<DDMFormField> ddmFormFields)
           
protected  void addLocalizedProperty(JSONObject jsonObject, String propertyName, LocalizedValue localizedValue)
           
protected  void addNestedFields(JSONObject jsonObject, List<DDMFormField> nestedDDMFormFields)
           
protected  void addOptions(JSONObject jsonObject, DDMFormFieldOptions ddmFormFieldOptions)
           
protected  void addSimpleProperties(JSONObject jsonObject, DDMFormField ddmFormField)
           
 String serialize(DDMForm ddmForm)
           
protected  JSONArray toJSONArray(DDMFormFieldOptions ddmFormFieldOptions)
           
protected  JSONArray toJSONArray(List<DDMFormField> ddmFormFields)
           
protected  JSONObject toJSONObject(DDMFormField ddmFormField)
           
protected  JSONObject toJSONObject(LocalizedValue localizedValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMFormJSONSerializerImpl

public DDMFormJSONSerializerImpl()
Method Detail

serialize

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

addAvailableLanguageIds

protected void addAvailableLanguageIds(JSONObject jsonObject,
                                       Set<Locale> availableLocales)

addDefaultLanguageId

protected void addDefaultLanguageId(JSONObject jsonObject,
                                    Locale defaultLocale)

addFields

protected void addFields(JSONObject jsonObject,
                         List<DDMFormField> ddmFormFields)

addLocalizedProperty

protected void addLocalizedProperty(JSONObject jsonObject,
                                    String propertyName,
                                    LocalizedValue localizedValue)

addNestedFields

protected void addNestedFields(JSONObject jsonObject,
                               List<DDMFormField> nestedDDMFormFields)

addOptions

protected void addOptions(JSONObject jsonObject,
                          DDMFormFieldOptions ddmFormFieldOptions)

addSimpleProperties

protected void addSimpleProperties(JSONObject jsonObject,
                                   DDMFormField ddmFormField)

toJSONArray

protected JSONArray toJSONArray(DDMFormFieldOptions ddmFormFieldOptions)

toJSONArray

protected JSONArray toJSONArray(List<DDMFormField> ddmFormFields)

toJSONObject

protected JSONObject toJSONObject(DDMFormField ddmFormField)

toJSONObject

protected JSONObject toJSONObject(LocalizedValue localizedValue)

Liferay 7.0-ce-m3