com.puppycrawl.tools.checkstyle.checks.j2ee

Class EntityBeanCheck

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.
String
getVersion()
Determines the EJB version.
void
setPersistence(String aOption)
Set the persistence option to enforce.
void
setVersion(String aVersion)
Sets the EJB version.
void
visitToken(DetailAST aAST)

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, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter

getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setSeverity

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean

configure, contextualize, finishLocalSetup, getConfiguration, setupChild

Constructor Details

EntityBeanCheck

public EntityBeanCheck()
Creates a new EntityBeanCheck instance.

Method Details

getPersistenceOption

public PersistenceOption getPersistenceOption()
Returns the set PersistenceOption.

Returns:
the set PersistenceOption


getVersion

public String getVersion()
Determines the EJB version.

Returns:
the EJB version.


setPersistence

public void setPersistence(String aOption)
            throws ConversionException
Set the persistence option to enforce.

Parameters:
aOption - string to decode option from


setVersion

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

Parameters:
aVersion - the EJB version.


visitToken

public void visitToken(DetailAST aAST)
Overrides:
visitToken in interface Check

See Also:
Check