public class PropertiesSourceProcessor extends BaseSourceProcessor
attributeNamePattern, bndContentDirPattern, emptyCollectionPattern, javaSourceInsideJSPTagPattern, languageKeyPattern, PORTAL_MAX_DIR_LEVEL, portalSource, principalExceptionPattern, sessionKeyPattern, sourceFormatterArgs, 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 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 java.lang.String |
formatPortalPortalProperties(java.lang.String fileName,
java.lang.String content) |
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 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) |
checkEmptyCollection, checkIfClauseParentheses, checkInefficientStringMethods, checkLanguageKeys, checkPrincipalException, checkResourceUtil, checkStringBundler, fixCompatClassImports, fixCopyright, fixIncorrectParameterTypeForLanguageUtil, fixSessionKey, format, format, format, formatIncorrectSyntax, formatJavaTerms, formatTagAttributeType, formatWhitespace, formatWhitespace, getAbsolutePath, getAnnotationsExclusions, getBNDFileLanguageProperties, getCompatClassNamesMap, getContent, getCustomCopyright, getErrorMessages, getFile, getFileNames, getFileNames, getFileNames, getFileNames, getFirstSourceMismatchException, getImmutableFieldTypes, getLanguageKeys, getLeadingTabCount, getMainReleaseVersion, getModifiedFileNames, getModuleLanguageProperties, getProperty, getPropertyList, getRunOutsidePortalExclusionPaths, hasMissingParentheses, hasRedundantParentheses, hasRedundantParentheses, isAttributName, isExcludedFile, isExcludedFile, isExcludedFile, isExcludedPath, isModulesFile, processErrorMessage, processFormattedFile, replacePrimitiveWrapperInstantiation, setSourceFormatterArgs, sortAttributes, sortHTMLAttributes, stripQuotes, stripRedundantParentheses, trimContent, trimLine
public 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.Exception
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 BaseSourceProcessor
java.lang.Exception
protected java.util.List<java.lang.String> doGetFileNames() throws java.lang.Exception
doGetFileNames
in class BaseSourceProcessor
java.lang.Exception
protected void formatDuplicateLanguageKeys() throws java.lang.Exception
java.lang.Exception
protected java.lang.String formatPortalPortalProperties(java.lang.String fileName, java.lang.String content) throws java.lang.Exception
java.lang.Exception
protected void formatPortalProperties(java.lang.String fileName, java.lang.String content) throws java.lang.Exception
java.lang.Exception
protected java.lang.String formatPortletProperties(java.lang.String fileName, java.lang.String content) throws java.lang.Exception
java.lang.Exception
protected void formatSourceFormatterProperties(java.lang.String fileName, java.lang.String content) throws java.lang.Exception
java.lang.Exception
protected 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.Exception
protected void populateLanguagePropertiesMap() throws java.lang.Exception
java.lang.Exception
protected void postFormat() throws java.lang.Exception
postFormat
in class BaseSourceProcessor
java.lang.Exception
protected void removeDuplicateKeys(java.lang.String fileName, java.util.Set<java.lang.String> lines) throws java.lang.Exception
java.lang.Exception