Liferay 6.2.0-ce-m4

com.liferay.portlet.journal.util
Class JournalConverterUtil

java.lang.Object
  extended by com.liferay.portlet.journal.util.JournalConverterUtil

public class JournalConverterUtil
extends Object


Constructor Summary
JournalConverterUtil()
           
 
Method Summary
protected static void addDDMFields(Element dynamicElementElement, DDMStructure ddmStructure, Fields ddmFields, String defaultLocale)
           
protected static void addMetadataAttribute(Element metadataElement, String name, String value)
           
protected static int countFieldRepetition(Fields ddmFields, String fieldName, String parentFieldName, int parentOffset)
           
protected static String getAvailableLocales(Fields ddmFields)
           
static Fields getDDMFields(DDMStructure ddmStructure, String xml)
           
static String getDDMXSD(String journalXSD)
           
protected static Field getField(Element dynamicElementElement, DDMStructure ddmStructure, String defaultLocale)
           
protected static Serializable getFieldValue(String dataType, String type, Element dynamicContentElement)
           
static String getXML(DDMStructure ddmStructure, Fields ddmFields)
           
protected static void updateContentDynamicElement(Element dynamicElementElement, DDMStructure ddmStructure, Field ddmField, DDMFieldsCounter ddmFieldsCounter)
           
protected static void updateContentDynamicElement(Element dynamicElementElement, DDMStructure ddmStructure, Fields ddmFields, DDMFieldsCounter ddmFieldsCounter)
           
protected static void updateDynamicContentValue(Element dynamicContentElement, String fieldType, String fieldValue)
           
protected static void updateFieldsDisplay(Fields ddmFields, String fieldName)
           
protected static void updateXSDDynamicElement(Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalConverterUtil

public JournalConverterUtil()
Method Detail

getDDMFields

public static Fields getDDMFields(DDMStructure ddmStructure,
                                  String xml)
                           throws Exception
Throws:
Exception

getDDMXSD

public static String getDDMXSD(String journalXSD)
                        throws Exception
Throws:
Exception

getXML

public static String getXML(DDMStructure ddmStructure,
                            Fields ddmFields)
                     throws Exception
Throws:
Exception

addDDMFields

protected static void addDDMFields(Element dynamicElementElement,
                                   DDMStructure ddmStructure,
                                   Fields ddmFields,
                                   String defaultLocale)
                            throws Exception
Throws:
Exception

addMetadataAttribute

protected static void addMetadataAttribute(Element metadataElement,
                                           String name,
                                           String value)

countFieldRepetition

protected static int countFieldRepetition(Fields ddmFields,
                                          String fieldName,
                                          String parentFieldName,
                                          int parentOffset)
                                   throws Exception
Throws:
Exception

getAvailableLocales

protected static String getAvailableLocales(Fields ddmFields)

getField

protected static Field getField(Element dynamicElementElement,
                                DDMStructure ddmStructure,
                                String defaultLocale)
                         throws Exception
Throws:
Exception

getFieldValue

protected static Serializable getFieldValue(String dataType,
                                            String type,
                                            Element dynamicContentElement)
                                     throws Exception
Throws:
Exception

updateContentDynamicElement

protected static void updateContentDynamicElement(Element dynamicElementElement,
                                                  DDMStructure ddmStructure,
                                                  Field ddmField,
                                                  DDMFieldsCounter ddmFieldsCounter)
                                           throws Exception
Throws:
Exception

updateContentDynamicElement

protected static void updateContentDynamicElement(Element dynamicElementElement,
                                                  DDMStructure ddmStructure,
                                                  Fields ddmFields,
                                                  DDMFieldsCounter ddmFieldsCounter)
                                           throws Exception
Throws:
Exception

updateDynamicContentValue

protected static void updateDynamicContentValue(Element dynamicContentElement,
                                                String fieldType,
                                                String fieldValue)
                                         throws Exception
Throws:
Exception

updateFieldsDisplay

protected static void updateFieldsDisplay(Fields ddmFields,
                                          String fieldName)

updateXSDDynamicElement

protected static void updateXSDDynamicElement(Element element)

Liferay 6.2.0-ce-m4