org.apache.maven.jalopy
Class JalopyBean

java.lang.Object
  extended by org.apache.maven.jalopy.JalopyBean

public class JalopyBean
extends Object

A bean to format all source files according to code conventions.

Version:
$Id: JalopyBean.java 531612 2007-04-23 21:28:38Z ltheussl $
Author:
jruiz@exist.com, Emmanuel Venisse, Lukas Theussl

Constructor Summary
JalopyBean()
           
 
Method Summary
 void execute()
          The main method: starts formatting of source files.
 File getConvention()
          Returns the convention property.
 String getFileFormat()
          Returns the fileFormat property.
 String getHistoryPolicy()
          Returns the historyPolicy property.
 File getSourceDirectory()
          Returns the sourceDirectory property.
 String getSrcExcludesPattern()
          Returns the srcExcludesPattern property.
 String getSrcIncludesPattern()
          Returns the srcIncludesPattern property.
 String getTestExcludesPattern()
          Returns the testExcludesPattern property.
 String getTestIncludesPattern()
          Returns the testIncludesPattern property.
 File getTestSourceDirectory()
          Returns the testSourceDirectory property.
 boolean isBackup()
          Returns the backup property.
 boolean isFailOnError()
          Returns the failOnError property.
 boolean isForce()
          Returns the force property.
 boolean isInspect()
          Returns the inspect property.
 void setBackup(boolean newbackup)
          Sets the backup property.
 void setConvention(File newconvention)
          Sets the convention property.
 void setFailOnError(boolean newfailOnError)
          Sets the failOnError property.
 void setFileFormat(String newfileFormat)
          Sets the fileFormat property.
 void setForce(boolean newforce)
          Sets the force property.
 void setHistoryPolicy(String newhistoryPolicy)
          Sets the historyPolicy property.
 void setInspect(boolean newinspect)
          Sets the inspect property.
 void setSourceDirectory(File newsourceDirectory)
          Sets the sourceDirectory property.
 void setSrcExcludesPattern(String newsrcExcludesPattern)
          Sets the srcExcludesPattern property.
 void setSrcIncludesPattern(String newsrcIncludesPattern)
          Sets the srcIncludesPattern property.
 void setTestExcludesPattern(String newtestExcludesPattern)
          Sets the testExcludesPattern property.
 void setTestIncludesPattern(String newtestIncludesPattern)
          Sets the testIncludesPattern property.
 void setTestSourceDirectory(File newtestSourceDirectory)
          Sets the testSourceDirectory property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JalopyBean

public JalopyBean()
Method Detail

execute

public void execute()
             throws Exception
The main method: starts formatting of source files.

Throws:
Exception - Exception

getFileFormat

public String getFileFormat()
Returns the fileFormat property.

Returns:
String

setFileFormat

public void setFileFormat(String newfileFormat)
Sets the fileFormat property.

Parameters:
newfileFormat - The new property

isFailOnError

public boolean isFailOnError()
Returns the failOnError property.

Returns:
boolean

setFailOnError

public void setFailOnError(boolean newfailOnError)
Sets the failOnError property.

Parameters:
newfailOnError - The new property

isInspect

public boolean isInspect()
Returns the inspect property.

Returns:
boolean

setInspect

public void setInspect(boolean newinspect)
Sets the inspect property.

Parameters:
newinspect - The new property

isBackup

public boolean isBackup()
Returns the backup property.

Returns:
boolean

setBackup

public void setBackup(boolean newbackup)
Sets the backup property.

Parameters:
newbackup - The new property

isForce

public boolean isForce()
Returns the force property.

Returns:
boolean

setForce

public void setForce(boolean newforce)
Sets the force property.

Parameters:
newforce - The new property

getSourceDirectory

public File getSourceDirectory()
Returns the sourceDirectory property.

Returns:
File

setSourceDirectory

public void setSourceDirectory(File newsourceDirectory)
Sets the sourceDirectory property.

Parameters:
newsourceDirectory - The new property

getSrcIncludesPattern

public String getSrcIncludesPattern()
Returns the srcIncludesPattern property.

Returns:
String

setSrcIncludesPattern

public void setSrcIncludesPattern(String newsrcIncludesPattern)
Sets the srcIncludesPattern property.

Parameters:
newsrcIncludesPattern - The new property

getSrcExcludesPattern

public String getSrcExcludesPattern()
Returns the srcExcludesPattern property.

Returns:
String

setSrcExcludesPattern

public void setSrcExcludesPattern(String newsrcExcludesPattern)
Sets the srcExcludesPattern property.

Parameters:
newsrcExcludesPattern - The new property

getHistoryPolicy

public String getHistoryPolicy()
Returns the historyPolicy property.

Returns:
String

setHistoryPolicy

public void setHistoryPolicy(String newhistoryPolicy)
Sets the historyPolicy property.

Parameters:
newhistoryPolicy - The new property

getConvention

public File getConvention()
Returns the convention property.

Returns:
File

setConvention

public void setConvention(File newconvention)
Sets the convention property.

Parameters:
newconvention - The new property

getTestSourceDirectory

public File getTestSourceDirectory()
Returns the testSourceDirectory property.

Returns:
File

setTestSourceDirectory

public void setTestSourceDirectory(File newtestSourceDirectory)
Sets the testSourceDirectory property.

Parameters:
newtestSourceDirectory - The new property

getTestIncludesPattern

public String getTestIncludesPattern()
Returns the testIncludesPattern property.

Returns:
String

setTestIncludesPattern

public void setTestIncludesPattern(String newtestIncludesPattern)
Sets the testIncludesPattern property.

Parameters:
newtestIncludesPattern - The new property

getTestExcludesPattern

public String getTestExcludesPattern()
Returns the testExcludesPattern property.

Returns:
String

setTestExcludesPattern

public void setTestExcludesPattern(String newtestExcludesPattern)
Sets the testExcludesPattern property.

Parameters:
newtestExcludesPattern - The new property


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.