Liferay 6.2-ce-ga5

com.liferay.portlet.dynamicdatamapping.util
Class DDMXMLImpl

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.util.DDMXMLImpl
All Implemented Interfaces:
DDMXML

public class DDMXMLImpl
extends Object
implements DDMXML


Constructor Summary
DDMXMLImpl()
           
 
Method Summary
protected  void appendField(Element element, Field field)
           
protected  void fixElementsDefaultLocale(Element element, Locale contentDefaultLocale, Locale contentNewDefaultLocale)
           
 String formatXML(Document document)
           
 String formatXML(String xml)
           
protected  List<Node> getElementsByName(Document document, String name)
           
 Fields getFields(DDMStructure structure, String xml)
           
 Fields getFields(DDMStructure structure, XPath xPath, String xml, List<String> fieldNames)
           
 String getXML(Document document, Fields fields)
           
 String getXML(Fields fields)
           
 void setXMLSchema(XMLSchema xmlSchema)
           
protected  void updateField(Element dynamicContentElement, Serializable fieldValue)
           
 String updateXMLDefaultLocale(String xml, Locale contentDefaultLocale, Locale contentNewDefaultLocale)
           
 String validateXML(String xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMXMLImpl

public DDMXMLImpl()
Method Detail

formatXML

public String formatXML(Document document)
                 throws SystemException
Specified by:
formatXML in interface DDMXML
Throws:
SystemException

formatXML

public String formatXML(String xml)
                 throws SystemException
Specified by:
formatXML in interface DDMXML
Throws:
SystemException

getFields

public Fields getFields(DDMStructure structure,
                        String xml)
                 throws PortalException,
                        SystemException
Specified by:
getFields in interface DDMXML
Throws:
PortalException
SystemException

getFields

public Fields getFields(DDMStructure structure,
                        XPath xPath,
                        String xml,
                        List<String> fieldNames)
                 throws PortalException,
                        SystemException
Specified by:
getFields in interface DDMXML
Throws:
PortalException
SystemException

getXML

public String getXML(Document document,
                     Fields fields)
              throws SystemException
Specified by:
getXML in interface DDMXML
Throws:
SystemException

getXML

public String getXML(Fields fields)
              throws SystemException
Specified by:
getXML in interface DDMXML
Throws:
SystemException

setXMLSchema

public void setXMLSchema(XMLSchema xmlSchema)

updateXMLDefaultLocale

public String updateXMLDefaultLocale(String xml,
                                     Locale contentDefaultLocale,
                                     Locale contentNewDefaultLocale)
                              throws SystemException
Specified by:
updateXMLDefaultLocale in interface DDMXML
Throws:
SystemException

validateXML

public String validateXML(String xml)
                   throws PortalException
Specified by:
validateXML in interface DDMXML
Throws:
PortalException

appendField

protected void appendField(Element element,
                           Field field)

fixElementsDefaultLocale

protected void fixElementsDefaultLocale(Element element,
                                        Locale contentDefaultLocale,
                                        Locale contentNewDefaultLocale)

getElementsByName

protected List<Node> getElementsByName(Document document,
                                       String name)

updateField

protected void updateField(Element dynamicContentElement,
                           Serializable fieldValue)

Liferay 6.2-ce-ga5