com.puppycrawl.tools.checkstyle.checks.j2ee
Class EntityBeanCheck

java.lang.Object
  extended by com.puppycrawl.tools.checkstyle.api.AutomaticBean
      extended by com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
          extended by com.puppycrawl.tools.checkstyle.api.Check
              extended by com.puppycrawl.tools.checkstyle.checks.j2ee.AbstractJ2eeCheck
                  extended by com.puppycrawl.tools.checkstyle.checks.j2ee.AbstractBeanCheck
                      extended by com.puppycrawl.tools.checkstyle.checks.j2ee.EntityBeanCheck
All Implemented Interfaces:
Configurable, Contextualizable

public class EntityBeanCheck
extends AbstractBeanCheck

Checks that an EntityBean implementation satisfies EntityBean requirements. Such as:

Author:
Rick Giles

Constructor Summary
EntityBeanCheck()
          Creates a new EntityBeanCheck instance.
 
Method Summary
 PersistenceOption getPersistenceOption()
          Returns the set PersistenceOption.
 java.lang.String getVersion()
          Determines the EJB version.
 void setPersistence(java.lang.String aOption)
          Set the persistence option to enforce.
 void setVersion(java.lang.String aVersion)
          Sets the EJB version.
 void visitToken(DetailAST aAST)
          Called to process a token.
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.AbstractBeanCheck
checkBean, getDefaultTokens, getRequiredTokens
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.AbstractJ2eeCheck
getMethodChecker, log, logName, setMethodChecker
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, setId, setSeverity
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityBeanCheck

public EntityBeanCheck()
Creates a new EntityBeanCheck instance.

Method Detail

setPersistence

public void setPersistence(java.lang.String aOption)
                    throws org.apache.commons.beanutils.ConversionException
Set the persistence option to enforce.

Parameters:
aOption - string to decode option from
Throws:
org.apache.commons.beanutils.ConversionException - if unable to decode

getPersistenceOption

public PersistenceOption getPersistenceOption()
Returns the set PersistenceOption.

Returns:
the set PersistenceOption

setVersion

public void setVersion(java.lang.String aVersion)
Sets the EJB version.

Parameters:
aVersion - the EJB version.

getVersion

public java.lang.String getVersion()
Determines the EJB version.

Returns:
the EJB version.

visitToken

public void visitToken(DetailAST aAST)
Called to process a token.

Overrides:
visitToken in class Check
Parameters:
aAST - the token to process

Back to the Checkstyle Home Page