Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatamapping.util
Class DDMXMLUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.util.DDMXMLUtil

public class DDMXMLUtil
extends Object


Constructor Summary
DDMXMLUtil()
           
 
Method Summary
static String formatXML(Document document)
           
static String formatXML(String xml)
           
static DDMXML getDDMXML()
           
static Fields getFields(DDMStructure structure, String xml)
           
static Fields getFields(DDMStructure structure, XPath xPath, String xml, List<String> fieldNames)
           
static String getXML(Document document, Fields fields)
           
static String getXML(Fields fields)
           
 void setDDMXML(DDMXML ddmXML)
           
static String updateXMLDefaultLocale(String xml, Locale contentDefaultLocale, Locale contentNewDefaultLocale)
           
static String validateXML(String xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMXMLUtil

public DDMXMLUtil()
Method Detail

formatXML

public static String formatXML(Document document)

formatXML

public static String formatXML(String xml)

getDDMXML

public static DDMXML getDDMXML()

getFields

public static Fields getFields(DDMStructure structure,
                               String xml)
                        throws PortalException
Throws:
PortalException

getFields

public static Fields getFields(DDMStructure structure,
                               XPath xPath,
                               String xml,
                               List<String> fieldNames)
                        throws PortalException
Throws:
PortalException

getXML

public static String getXML(Document document,
                            Fields fields)

getXML

public static String getXML(Fields fields)

updateXMLDefaultLocale

public static String updateXMLDefaultLocale(String xml,
                                            Locale contentDefaultLocale,
                                            Locale contentNewDefaultLocale)

validateXML

public static String validateXML(String xml)
                          throws PortalException
Throws:
PortalException

setDDMXML

public void setDDMXML(DDMXML ddmXML)

Liferay 7.0-ce-m3