Package org.alfresco.repo.dictionary
Class M2XML
java.lang.Object
org.alfresco.repo.dictionary.M2XML
Support translating model from and to XML
- Author:
- David Caruana
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Boolean
deserialiseBoolean
(String booleanString) static Date
deserialiseDate
(String date) Convert XML date (of the form yyyy-MM-dd) to Datestatic String
serialiseBoolean
(Boolean bool) static String
serialiseDate
(Date date) Convert date to XML date (of the form yyyy-MM-dd)
-
Constructor Details
-
M2XML
public M2XML()
-
-
Method Details
-
deserialiseDate
Convert XML date (of the form yyyy-MM-dd) to Date- Parameters:
date
- the xml representation of the date- Returns:
- the date
- Throws:
ParseException
-
serialiseDate
Convert date to XML date (of the form yyyy-MM-dd)- Parameters:
date
- the date- Returns:
- the xml representation of the date
-
deserialiseBoolean
- Throws:
ParseException
-
serialiseBoolean
-