com.liferay.portal.tools.sourceformatter
Class XMLSourceProcessor
java.lang.Object
com.liferay.portal.tools.sourceformatter.BaseSourceProcessor
com.liferay.portal.tools.sourceformatter.XMLSourceProcessor
- All Implemented Interfaces:
- SourceProcessor
public class XMLSourceProcessor
- extends BaseSourceProcessor
|
Method Summary |
protected void |
checkPoshiCharactersAfterDefinition(String fileName,
String content)
|
protected void |
checkPoshiCharactersBeforeDefinition(String fileName,
String content)
|
protected void |
checkServiceXMLExceptions(String fileName,
Element rootElement)
|
protected void |
checkServiceXMLFinders(String fileName,
Element entityElement,
String entityName)
|
protected void |
checkServiceXMLReferences(String fileName,
Element entityElement,
String entityName)
|
protected String |
doFormat(File file,
String fileName,
String absolutePath,
String content)
|
protected String |
fixAntXMLProjectName(String fileName,
String content)
|
protected String |
fixPoshiXMLElementWithNoChild(String content)
|
protected String |
fixPoshiXMLEndLines(String content)
|
protected String |
fixPoshiXMLEndLinesAfterClosingElement(String content)
|
protected String |
fixPoshiXMLEndLinesBeforeClosingElement(String content)
|
protected String |
fixPoshiXMLNumberOfTabs(String content)
|
protected void |
format()
|
protected String |
formatAntXML(String fileName,
String content)
|
protected void |
formatCustomSQLXML(String fileName,
String content)
|
protected String |
formatDDLStructuresXML(String content)
|
protected String |
formatFriendlyURLRoutesXML(String absolutePath,
String content)
|
protected String |
formatPortletXML(String fileName,
String absolutePath,
String content)
|
protected String |
formatPoshiXML(String fileName,
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)
|
protected List<String> |
getColumnNames(String fileName,
String entityName)
|
protected String |
getTablesContent(String fileName)
|
protected String |
sortPoshiAttributes(String fileName,
String content)
|
protected String |
sortPoshiCommands(String content)
|
protected String |
sortPoshiVariables(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 |
XMLSourceProcessor
public XMLSourceProcessor()
formatXML
public static String formatXML(String content)
checkPoshiCharactersAfterDefinition
protected void checkPoshiCharactersAfterDefinition(String fileName,
String content)
checkPoshiCharactersBeforeDefinition
protected void checkPoshiCharactersBeforeDefinition(String fileName,
String content)
checkServiceXMLExceptions
protected void checkServiceXMLExceptions(String fileName,
Element rootElement)
checkServiceXMLFinders
protected void checkServiceXMLFinders(String fileName,
Element entityElement,
String entityName)
throws Exception
- Throws:
Exception
checkServiceXMLReferences
protected void checkServiceXMLReferences(String fileName,
Element entityElement,
String entityName)
doFormat
protected String doFormat(File file,
String fileName,
String absolutePath,
String content)
throws Exception
- Specified by:
doFormat in class BaseSourceProcessor
- Throws:
Exception
fixAntXMLProjectName
protected String fixAntXMLProjectName(String fileName,
String content)
fixPoshiXMLElementWithNoChild
protected String fixPoshiXMLElementWithNoChild(String content)
fixPoshiXMLEndLines
protected String fixPoshiXMLEndLines(String content)
fixPoshiXMLEndLinesAfterClosingElement
protected String fixPoshiXMLEndLinesAfterClosingElement(String content)
fixPoshiXMLEndLinesBeforeClosingElement
protected String fixPoshiXMLEndLinesBeforeClosingElement(String content)
fixPoshiXMLNumberOfTabs
protected String fixPoshiXMLNumberOfTabs(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 Exception
- Throws:
Exception
formatCustomSQLXML
protected void formatCustomSQLXML(String fileName,
String content)
formatDDLStructuresXML
protected String formatDDLStructuresXML(String content)
throws Exception
- Throws:
Exception
formatFriendlyURLRoutesXML
protected String formatFriendlyURLRoutesXML(String absolutePath,
String content)
throws Exception
- Throws:
Exception
formatPortletXML
protected String formatPortletXML(String fileName,
String absolutePath,
String content)
throws Exception
- Throws:
Exception
formatPoshiXML
protected String formatPoshiXML(String fileName,
String content)
throws Exception
- Throws:
Exception
formatServiceXML
protected void formatServiceXML(String fileName,
String content)
throws Exception
- Throws:
Exception
formatStrutsConfigXML
protected void formatStrutsConfigXML(String fileName,
String content)
throws Exception
- Throws:
Exception
formatTilesDefsXML
protected void formatTilesDefsXML(String fileName,
String content)
throws Exception
- Throws:
Exception
formatWebXML
protected String formatWebXML(String fileName,
String content)
throws Exception
- Throws:
Exception
getColumnNames
protected List<String> getColumnNames(String fileName,
String entityName)
throws Exception
- Throws:
Exception
getTablesContent
protected String getTablesContent(String fileName)
throws Exception
- Throws:
Exception
sortPoshiAttributes
protected String sortPoshiAttributes(String fileName,
String content)
throws Exception
- Throws:
Exception
sortPoshiCommands
protected String sortPoshiCommands(String content)
sortPoshiVariables
protected String sortPoshiVariables(String content)