Package org.javlo.helper
Class XMLManipulationHelper
- java.lang.Object
-
- org.javlo.helper.XMLManipulationHelper
-
public class XMLManipulationHelper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XMLManipulationHelper.BadXMLException
static class
XMLManipulationHelper.TagComparatorOnEndTag
static class
XMLManipulationHelper.TagComparatorOnStartTag
static class
XMLManipulationHelper.TagDescription
-
Field Summary
Fields Modifier and Type Field Description static String
AREA_PREFIX
static String
AREA_VIEW_CONTAINER
static String
AREA_VIEW_PREFIX
static String
HEADER_ZONE
-
Constructor Summary
Constructors Constructor Description XMLManipulationHelper()
-
Method Summary
-
-
-
Field Detail
-
AREA_PREFIX
public static final String AREA_PREFIX
- See Also:
- Constant Field Values
-
AREA_VIEW_PREFIX
public static final String AREA_VIEW_PREFIX
- See Also:
- Constant Field Values
-
AREA_VIEW_CONTAINER
public static final String AREA_VIEW_CONTAINER
- See Also:
- Constant Field Values
-
HEADER_ZONE
public static final String HEADER_ZONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
changeLink
public static String changeLink(String html, String linkPrefix) throws XMLManipulationHelper.BadXMLException
-
convertHTMLtoMail
public static int convertHTMLtoMail(File htmlFile, Template template, File jspFile) throws IOException, XMLManipulationHelper.BadXMLException
-
convertHTMLtoTemplate
public static int convertHTMLtoTemplate(GlobalContext globalContext, Template template, File htmlFile, File jspFile, Map<String,String> tagsID, List<String> areas, List<String> resources, List<TemplatePlugin> templatePlugins, List<String> ids, boolean isMailing, String fontIncluding) throws IOException, XMLManipulationHelper.BadXMLException
-
convertHTMLtoTemplate
public static int convertHTMLtoTemplate(GlobalContext globalContext, Template template, I18nAccess i18nAccess, File htmlFile, File jspFile, Map<String,String> tagsID, List<String> areas, List<String> resources, List<TemplatePlugin> templatePlugins, List<GenericMessage> messages, String fontIncluding) throws IOException, XMLManipulationHelper.BadXMLException
-
getAllParentName
public static List<String> getAllParentName(XMLManipulationHelper.TagDescription[] allTags, XMLManipulationHelper.TagDescription tag)
return all parents name as lowercase.- Parameters:
allTags
-tag
-- Returns:
-
getHTMLBody
public static String getHTMLBody(String html) throws XMLManipulationHelper.BadXMLException
-
getHTMLCleanedHead
public static String getHTMLCleanedHead(String html) throws XMLManipulationHelper.BadXMLException
-
searchAllTag
public static XMLManipulationHelper.TagDescription[] searchAllTag(String xml, boolean validation) throws XMLManipulationHelper.BadXMLException
-
searchChildren
public static List<XMLManipulationHelper.TagDescription> searchChildren(XMLManipulationHelper.TagDescription[] allTags, XMLManipulationHelper.TagDescription tag)
-
searchParent
public static XMLManipulationHelper.TagDescription searchParent(XMLManipulationHelper.TagDescription[] allTags, XMLManipulationHelper.TagDescription tag)
-
-