public class PropertiesSourceProcessor extends BaseSourceProcessor
applyLangMergerPluginPattern, attributeNamePattern, bndContentDirPattern, emptyCollectionPattern, getterUtilGetPattern, javaSourceInsideJSPTagPattern, jsonObjectPutBlockPattern, jsonObjectPutPattern, languageKeyPattern, mergeLangPattern, PORTAL_MAX_DIR_LEVEL, portalSource, principalExceptionPattern, sbAppendPattern, sbAppendWithStartingSpacePattern, sessionKeyPattern, singleLengthStringPattern, sourceFormatterArgs, stringUtilReplacePattern, taglibSessionKeyPattern| Constructor and Description |
|---|
PropertiesSourceProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDuplicateLanguageKey(java.lang.String fileName,
java.lang.String line) |
protected void |
checkLanguageProperties(java.lang.String fileName) |
protected void |
checkMaxLineLength(java.lang.String line,
java.lang.String fileName,
int lineCount) |
protected java.lang.String |
doFormat(java.io.File file,
java.lang.String fileName,
java.lang.String absolutePath,
java.lang.String content) |
protected java.util.List<java.lang.String> |
doGetFileNames() |
protected void |
formatDuplicateLanguageKeys() |
protected void |
formatPortalProperties(java.lang.String fileName,
java.lang.String content) |
protected java.lang.String |
formatPortletProperties(java.lang.String fileName,
java.lang.String content) |
protected java.lang.String |
formatProperties(java.lang.String fileName,
java.lang.String content) |
protected void |
formatSourceFormatterProperties(java.lang.String fileName,
java.lang.String content) |
protected java.lang.String |
getCategoryName(java.lang.String line,
java.lang.String[][] categoryPrefixAndNameArray) |
protected java.lang.String[][] |
getCategoryPrefixAndNameArray() |
java.lang.String[] |
getIncludes() |
protected java.lang.String |
getPortalPortalProperties() |
protected void |
populateLanguagePropertiesMap() |
protected void |
postFormat() |
protected void |
removeDuplicateKeys(java.lang.String fileName,
java.util.Set<java.lang.String> lines) |
adjustLevel, checkEmptyCollection, checkGetterUtilGet, checkIfClauseParentheses, checkInefficientStringMethods, checkLanguageKeys, checkOrder, checkPrincipalException, checkPropertyUtils, checkResourceUtil, checkStringUtilReplace, checkUTF8, fixCompatClassImports, fixCopyright, fixIncorrectParameterTypeForLanguageUtil, fixSessionKey, format, format, format, formatAttributes, formatEmptyArray, formatIncorrectSyntax, formatJavaTerms, formatJSONObject, formatStringBundler, formatTagAttributeType, formatWhitespace, formatWhitespace, getAbsolutePath, getAnnotationsExclusions, getBNDFileLanguageProperties, getBNDFileLocationAndContentTuple, getCompatClassNamesMap, getContent, getCustomCopyright, getErrorMessages, getFile, getFileNames, getFileNames, getFileNames, getFileNames, getFirstSourceMismatchException, getImmutableFieldTypes, getLanguageKeys, getLeadingTabCount, getLevel, getLevel, getLevel, getLevel, getLine, getLineCount, getLineLength, getLineStartPos, getMainReleaseVersion, getModifiedFileNames, getModuleLangDirNames, getModuleLangLanguageProperties, getModuleLanguageProperties, getParameterList, getProperty, getPropertyList, getRunOutsidePortalExcludes, hasMissingParentheses, hasRedundantParentheses, hasRedundantParentheses, isAttributName, isExcludedPath, isExcludedPath, isExcludedPath, isModulesFile, preFormat, printError, processErrorMessage, processFormattedFile, readXML, replacePrimitiveWrapperInstantiation, setSourceFormatterArgs, sortHTMLAttributes, splitParameters, stripQuotes, stripQuotes, stripRedundantParentheses, trimContent, trimLinepublic java.lang.String[] getIncludes()
protected void addDuplicateLanguageKey(java.lang.String fileName,
java.lang.String line)
protected void checkLanguageProperties(java.lang.String fileName)
throws java.lang.Exception
java.lang.Exceptionprotected void checkMaxLineLength(java.lang.String line,
java.lang.String fileName,
int lineCount)
protected java.lang.String doFormat(java.io.File file,
java.lang.String fileName,
java.lang.String absolutePath,
java.lang.String content)
throws java.lang.Exception
doFormat in class BaseSourceProcessorjava.lang.Exceptionprotected java.util.List<java.lang.String> doGetFileNames()
throws java.lang.Exception
doGetFileNames in class BaseSourceProcessorjava.lang.Exceptionprotected void formatDuplicateLanguageKeys()
throws java.lang.Exception
java.lang.Exceptionprotected void formatPortalProperties(java.lang.String fileName,
java.lang.String content)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String formatPortletProperties(java.lang.String fileName,
java.lang.String content)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String formatProperties(java.lang.String fileName,
java.lang.String content)
throws java.lang.Exception
java.lang.Exceptionprotected void formatSourceFormatterProperties(java.lang.String fileName,
java.lang.String content)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getCategoryName(java.lang.String line,
java.lang.String[][] categoryPrefixAndNameArray)
protected java.lang.String[][] getCategoryPrefixAndNameArray()
protected java.lang.String getPortalPortalProperties()
throws java.lang.Exception
java.lang.Exceptionprotected void populateLanguagePropertiesMap()
throws java.lang.Exception
java.lang.Exceptionprotected void postFormat()
throws java.lang.Exception
postFormat in class BaseSourceProcessorjava.lang.Exceptionprotected void removeDuplicateKeys(java.lang.String fileName,
java.util.Set<java.lang.String> lines)
throws java.lang.Exception
java.lang.Exception