fr.paris.lutece.plugins.dila.utils
Class XMLConvertor

java.lang.Object
  extended by fr.paris.lutece.plugins.dila.utils.XMLConvertor

public final class XMLConvertor
extends Object

XML convertor utility class


Method Summary
static String convertCardToXML(LocalCardDTO card, List<LocalCardChapterDTO> chapters)
          Convert a LocalCardDTO into xml string
static String convertFolderInXML(LocalFolderDTO folder, List<LocalFolderLinkDTO> links)
          Convert a LocalFolderDTO into xml string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertCardToXML

public static String convertCardToXML(LocalCardDTO card,
                                      List<LocalCardChapterDTO> chapters)
Convert a LocalCardDTO into xml string

Parameters:
card - the card to convert
chapters - list of LocalCardChapterDTO linked to the LocalCardDTO
Returns:
the formatted XML

convertFolderInXML

public static String convertFolderInXML(LocalFolderDTO folder,
                                        List<LocalFolderLinkDTO> links)
Convert a LocalFolderDTO into xml string

Parameters:
folder - the folder to convert
links - list of LocalFolderLinkDTO linked to the LocalFolderDTO
Returns:
the formatted XML


Copyright © 2014 Mairie de Paris. All Rights Reserved.