Liferay 6.2-ce-ga5

com.liferay.portal.tools.sourceformatter
Class XMLSourceProcessor

java.lang.Object
  extended by com.liferay.portal.tools.sourceformatter.BaseSourceProcessor
      extended by com.liferay.portal.tools.sourceformatter.XMLSourceProcessor
All Implemented Interfaces:
SourceProcessor

public class XMLSourceProcessor
extends BaseSourceProcessor


Field Summary
 
Fields inherited from class com.liferay.portal.tools.sourceformatter.BaseSourceProcessor
BASEDIR, fileUtil, languageKeyPattern, MAIN_RELEASE_VERSION_6_1_0, MAIN_RELEASE_VERSION_6_2_0, mainReleaseVersion, portalSource, saxReaderUtil, sessionKeyPattern, sourceFormatterHelper, taglibSessionKeyPattern
 
Constructor Summary
XMLSourceProcessor()
           
 
Method Summary
protected  String fixAntXMLProjectName(String fileName, String content)
           
protected  void format()
           
protected  String formatAntXML(String fileName, String content)
           
protected  String formatDDLStructuresXML(String content)
           
protected  String formatFriendlyURLRoutesXML(String fileName, String content)
           
protected  String formatPortletXML(String content)
           
protected  void formatServiceXML(String fileName, String content)
           
protected  void formatStrutsConfigXML(String fileName, String content)
           
protected  void formatTilesDefsXML(String fileName, String content)
           
protected  String formatWebXML(String fileName, String content)
           
static String formatXML(String content)
           
 
Methods inherited from class com.liferay.portal.tools.sourceformatter.BaseSourceProcessor
checkIfClauseParentheses, checkInefficientStringMethods, checkLanguageKeys, checkStringBundler, fixCompatClassImports, fixCopyright, fixSessionKey, format, format, format, formatImports, getCompatClassNamesMap, getCopyright, getCustomCopyright, getErrorMessages, getExclusionsProperties, getFileNames, getFileNames, getLanguageKeys, getOldCopyright, hasMissingParentheses, hasRedundantParentheses, isAutoFix, processErrorMessage, replacePrimitiveWrapperInstantiation, stripQuotes, stripRedundantParentheses, stripTopLevelDirectories, trimContent, trimLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSourceProcessor

public XMLSourceProcessor()
Method Detail

formatXML

public static String formatXML(String content)

fixAntXMLProjectName

protected String fixAntXMLProjectName(String fileName,
                                      String content)

format

protected void format()
               throws Exception
Specified by:
format in class BaseSourceProcessor
Throws:
Exception

formatAntXML

protected String formatAntXML(String fileName,
                              String content)
                       throws DocumentException,
                              IOException
Throws:
DocumentException
IOException

formatDDLStructuresXML

protected String formatDDLStructuresXML(String content)
                                 throws DocumentException,
                                        IOException
Throws:
DocumentException
IOException

formatFriendlyURLRoutesXML

protected String formatFriendlyURLRoutesXML(String fileName,
                                            String content)
                                     throws DocumentException,
                                            IOException
Throws:
DocumentException
IOException

formatPortletXML

protected String formatPortletXML(String content)
                           throws DocumentException,
                                  IOException
Throws:
DocumentException
IOException

formatServiceXML

protected void formatServiceXML(String fileName,
                                String content)
                         throws DocumentException
Throws:
DocumentException

formatStrutsConfigXML

protected void formatStrutsConfigXML(String fileName,
                                     String content)
                              throws DocumentException
Throws:
DocumentException

formatTilesDefsXML

protected void formatTilesDefsXML(String fileName,
                                  String content)
                           throws DocumentException
Throws:
DocumentException

formatWebXML

protected String formatWebXML(String fileName,
                              String content)
                       throws IOException
Throws:
IOException

Liferay 6.2-ce-ga5