Liferay 7.0-ce-m3

com.liferay.portal.tools.sourceformatter
Class PropertiesSourceProcessor

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

public class PropertiesSourceProcessor
extends BaseSourceProcessor


Field Summary
 
Fields inherited from class com.liferay.portal.tools.sourceformatter.BaseSourceProcessor
attributeNamePattern, BASEDIR, emptyCollectionPattern, fileUtil, languageKeyPattern, portalSource, saxReaderUtil, sessionKeyPattern, sourceFormatterHelper, taglibSessionKeyPattern
 
Constructor Summary
PropertiesSourceProcessor()
           
 
Method Summary
protected  String doFormat(File file, String fileName, String absolutePath, String content)
           
protected  void format()
           
protected  String formatPortalPortalProperties()
           
protected  void formatPortalProperties(String fileName, String content)
           
protected  String formatPortletProperties(String content)
           
protected  void formatSourceFormatterProperties(String fileName, String content)
           
 
Methods inherited from class com.liferay.portal.tools.sourceformatter.BaseSourceProcessor
checkEmptyCollection, checkIfClauseParentheses, checkInefficientStringMethods, checkLanguageKeys, checkStringBundler, fixCompatClassImports, fixCopyright, fixIncorrectParameterTypeForLanguageUtil, fixSessionKey, format, format, format, format, formatJavaTerms, formatTagAttributeType, getAbsolutePath, getAnnotationsExclusions, getCompatClassNamesMap, getContent, getCustomCopyright, getErrorMessages, getFile, getFileNames, getFileNames, getFirstSourceMismatchException, getImmutableFieldTypes, getLanguageKeys, getLanguageProperties, getMainReleaseVersion, getProperty, getPropertyList, hasMissingParentheses, hasRedundantParentheses, hasRedundantParentheses, isAttributName, isExcluded, isExcluded, isExcluded, isRunsOutsidePortal, processErrorMessage, processFormattedFile, replacePrimitiveWrapperInstantiation, sortAttributes, stripLine, stripQuotes, stripRedundantParentheses, trimContent, trimLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesSourceProcessor

public PropertiesSourceProcessor()
Method Detail

doFormat

protected String doFormat(File file,
                          String fileName,
                          String absolutePath,
                          String content)
                   throws Exception
Specified by:
doFormat in class BaseSourceProcessor
Throws:
Exception

format

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

formatPortalPortalProperties

protected String formatPortalPortalProperties()
                                       throws Exception
Throws:
Exception

formatPortalProperties

protected void formatPortalProperties(String fileName,
                                      String content)
                               throws Exception
Throws:
Exception

formatPortletProperties

protected String formatPortletProperties(String content)

formatSourceFormatterProperties

protected void formatSourceFormatterProperties(String fileName,
                                               String content)
                                        throws Exception
Throws:
Exception

Liferay 7.0-ce-m3