com.liferay.portlet.dynamicdatamapping.util
Class DDMXMLImpl
java.lang.Object
com.liferay.portlet.dynamicdatamapping.util.DDMXMLImpl
- All Implemented Interfaces:
- DDMXML
public class DDMXMLImpl
- extends Object
- implements DDMXML
|
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)
|
protected void |
updateField(Element dynamicContentElement,
Locale locale,
String fieldName,
Serializable fieldValue)
|
String |
updateXMLDefaultLocale(String xml,
Locale contentDefaultLocale,
Locale contentNewDefaultLocale)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDMXMLImpl
public DDMXMLImpl()
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
updateXMLDefaultLocale
public String updateXMLDefaultLocale(String xml,
Locale contentDefaultLocale,
Locale contentNewDefaultLocale)
throws SystemException
- Specified by:
updateXMLDefaultLocale in interface DDMXML
- Throws:
SystemException
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,
Locale locale,
String fieldName,
Serializable fieldValue)