com.puppycrawl.tools.checkstyle.checks.j2ee
Class EntityBeanCheck
- Configurable, Contextualizable
public class EntityBeanCheck
Checks that an EntityBean implementation satisfies EntityBean
requirements. Such as:
- The class is defined as
public.
- The class cannot be defined as
final.
- It contains a
public constructor with no parameters.
- It must not define the
finalize method.
- Rick Giles
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setSeverity |
EntityBeanCheck
public EntityBeanCheck()
Creates a new EntityBeanCheck instance.
getPersistenceOption
public PersistenceOption getPersistenceOption()
Returns the set PersistenceOption.
- the set
PersistenceOption
getVersion
public String getVersion()
Determines the EJB version.
- the EJB version.
setPersistence
public void setPersistence(String aOption)
throws ConversionException Set the persistence option to enforce.
aOption - string to decode option from
setVersion
public void setVersion(String aVersion)
Sets the EJB version.
aVersion - the EJB version.