|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xdoclet.template.TemplateTagHandler xdoclet.XDocletTagSupport xdoclet.modules.ejb.EjbTagsHandler
Field Summary | |
static String |
ALL
|
protected static String |
LOCAL_SUFFIX
|
static String |
SERVICE_ENDPOINT
|
static String |
SERVICE_ENDPOINT_SUFFIX
|
Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
Constructor Summary | |
EjbTagsHandler()
|
Method Summary | |
String |
beanType()
Returns Bean type : "Entity", "Session" or "Message Driven". |
static String |
choosePackage(String packageName,
String packagePattern,
String subtask)
Returns modified package name for a package name. |
String |
concreteFullClassName()
Returns the full-qualified name of the current class's concrete class. |
String |
ejbExternalRefName()
Returns the name of EJB ref. |
String |
ejbName(Properties attributes)
Returns the name of current EJB bean. |
static String |
ejbRefName()
Returns the name of EJB ref. |
static String |
ejbRefName(xjavadoc.XTag tag,
xjavadoc.XClass clazz)
Returns the name of EJB ref. |
protected String |
extendsFromFor(xjavadoc.XClass clazz,
String tagName,
String type,
String extendsParamName,
String defaultBaseClassName)
Returns the name of the class pk/etc class extends. |
void |
forAllBeans(String template)
Evaluates the body block for each EJBean derived from one of the three EJB types: EntityBean, SessionBean or MessageDrivenBean. |
protected String |
getDependentClassFor(xjavadoc.XClass clazz,
String type)
sub-classes which deal with patternized class names return a reasonable value |
protected String |
getDependentClassTagName()
Gets the DependentClassTagName attribute of the EjbTagsHandler object |
static xjavadoc.XClass |
getEjb(String name)
Returns the class with the specified ejb name |
static String |
getEjbIdFor(xjavadoc.XClass clazz)
|
static String |
getEjbNameFor(xjavadoc.XClass clazz)
Returns the EJB name of the clazz by seaching for ejb:bean's name parameter. |
static String |
getEjbSpec()
Returns the EJB specification version used. |
static String |
getShortEjbNameFor(xjavadoc.XClass clazz)
Returns short version of the EJB name of the clazz. |
protected boolean |
hasTransaction(xjavadoc.XDoc doc)
Returns true if class/method denoted by doc has ejb:transaction tag, false otherwise. |
String |
id()
Returns unique id for current ejb. |
void |
ifIsAConcreteEJBean(String template,
Properties attributes)
Evaluates the body block if current bean is a concrete bean meaning the generate parameter of ejb:bean is either not specified or equals to "true", otherwise the bean is just an abstract base class bean not meant to be used as a EJBean but serve as the base for other EJBeans. |
void |
ifLocalEjb(String template)
|
void |
ifNotLocalEjb(String template)
|
void |
ifNotRemoteEjb(String template)
|
void |
ifNotServiceEndpointEjb(String template)
|
void |
ifRemoteEjb(String template)
|
void |
ifServiceEndpointEjb(String template)
|
static boolean |
isAConcreteEJBean(xjavadoc.XClass clazz)
Gets the AConcreteEJBean attribute of the EjbTagsHandler class |
static boolean |
isEjb(xjavadoc.XClass clazz)
Returns true of clazz is an EJB (derived from an EJB type), false otherwise. |
static boolean |
isLocalEjb(xjavadoc.XClass clazz)
|
static boolean |
isOnlyLocalEjb(xjavadoc.XClass clazz)
Returns true if clazz is only a local EJB by looking at ejb:bean's view-type parameter. |
static boolean |
isOnlyRemoteEjb(xjavadoc.XClass clazz)
Returns true if clazz is only a remote EJB by looking at ejb:bean's view-type parameter. |
static boolean |
isOnlyServiceEndpointEjb(xjavadoc.XClass clazz)
Returns true if clazz is only a service endpoint EJB by looking at ejb:bean's view-type parameter. |
static boolean |
isRemoteEjb(xjavadoc.XClass clazz)
|
static boolean |
isServiceEndpointEjb(xjavadoc.XClass clazz)
|
protected static String |
prefixWithEjbSlash(String ejbName)
Replace "." by "/" and add "ejb/" to the parameter. |
String |
shortEjbName()
Returns short version of ejbName(). |
protected boolean |
shouldTraverseSuperclassForDependentClass(xjavadoc.XClass clazz,
String tagName)
Describe what the method does |
String |
symbolicClassName()
Returns the symbolic name of the current class. |
Methods inherited from class xdoclet.template.TemplateTagHandler |
getXJavaDoc, setXJavaDoc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String SERVICE_ENDPOINT
public static final String ALL
public static final String SERVICE_ENDPOINT_SUFFIX
protected static final String LOCAL_SUFFIX
Constructor Detail |
public EjbTagsHandler()
Method Detail |
public static boolean isAConcreteEJBean(xjavadoc.XClass clazz) throws XDocletException
clazz
- Describe what the parameter does
XDocletException
public static String getEjbNameFor(xjavadoc.XClass clazz)
clazz
- The EJB bean class for which we want the EJB name
ejbName(java.util.Properties)
public static String getShortEjbNameFor(xjavadoc.XClass clazz)
clazz
- the class we want its short EJB name
shortEjbName()
public static String getEjbIdFor(xjavadoc.XClass clazz)
clazz
- Description of Parameter
public static String getEjbSpec()
public static boolean isLocalEjb(xjavadoc.XClass clazz) throws XDocletException
XDocletException
public static boolean isRemoteEjb(xjavadoc.XClass clazz) throws XDocletException
XDocletException
public static boolean isServiceEndpointEjb(xjavadoc.XClass clazz) throws XDocletException
XDocletException
public static boolean isOnlyLocalEjb(xjavadoc.XClass clazz) throws XDocletException
clazz
- Description of Parameter
XDocletException
public static boolean isOnlyRemoteEjb(xjavadoc.XClass clazz) throws XDocletException
clazz
- Description of Parameter
XDocletException
public static boolean isOnlyServiceEndpointEjb(xjavadoc.XClass clazz) throws XDocletException
clazz
- Description of Parameter
XDocletException
public static xjavadoc.XClass getEjb(String name) throws XDocletException
name
-
XDocletException
public static boolean isEjb(xjavadoc.XClass clazz) throws XDocletException
clazz
- Description of Parameter
XDocletException
public static String choosePackage(String packageName, String packagePattern, String subtask)
packageName
- The name of the package name the new package name will be derived frompackagePattern
- The package pattern to use. Can be nullsubtask
-
public static String ejbRefName() throws XDocletException
XDocletException
public static String ejbRefName(xjavadoc.XTag tag, xjavadoc.XClass clazz) throws XDocletException
tag
- clazz
-
XDocletException
protected static String prefixWithEjbSlash(String ejbName)
ejbName
- The string to parse
public String ejbName(Properties attributes) throws XDocletException
attributes
- The attributes of the template tag
XDocletException
getEjbNameFor(xjavadoc.XClass)
public String ejbExternalRefName() throws XDocletException
XDocletException
public String symbolicClassName() throws XDocletException
XDocletException
shortEjbName()
public String shortEjbName() throws XDocletException
XDocletException
getShortEjbNameFor(xjavadoc.XClass)
public void forAllBeans(String template) throws XDocletException
template
- The body of the block tag
XDocletException
EntityTagsHandler.isEntity(xjavadoc.XClass)
,
SessionTagsHandler.isSession(xjavadoc.XClass)
,
MdbTagsHandler.isMessageDriven(xjavadoc.XClass)
public void ifIsAConcreteEJBean(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public String beanType() throws XDocletException
XDocletException
EntityTagsHandler.isEntity(xjavadoc.XClass)
,
SessionTagsHandler.isSession(xjavadoc.XClass)
,
MdbTagsHandler.isMessageDriven(xjavadoc.XClass)
public String concreteFullClassName() throws XDocletException
XDocletException
SessionTagsHandler.sessionClass()
,
BmpTagsHandler.entityBmpClass()
,
CmpTagsHandler.entityCmpClass()
,
MdbTagsHandler.messageDrivenClass()
public String id() throws XDocletException
XDocletException
public void ifLocalEjb(String template) throws XDocletException
template
- Description of Parameter
XDocletException
public void ifRemoteEjb(String template) throws XDocletException
template
- Description of Parameter
XDocletException
public void ifServiceEndpointEjb(String template) throws XDocletException
template
- Description of Parameter
XDocletException
public void ifNotLocalEjb(String template) throws XDocletException
template
-
XDocletException
public void ifNotRemoteEjb(String template) throws XDocletException
template
-
XDocletException
public void ifNotServiceEndpointEjb(String template) throws XDocletException
template
-
XDocletException
protected String getDependentClassFor(xjavadoc.XClass clazz, String type) throws XDocletException
clazz
- the classtype
- type value used for view-type of remote/local
XDocletException
protected String getDependentClassTagName()
protected boolean hasTransaction(xjavadoc.XDoc doc) throws XDocletException
doc
- Description of Parameter
XDocletException
protected String extendsFromFor(xjavadoc.XClass clazz, String tagName, String type, String extendsParamName, String defaultBaseClassName) throws XDocletException
clazz
- the classtagName
- name of the tag (ejb:bean for example, used for getting generate parameter)type
- type value used for view type of remote/localextendsParamName
- extends parameter name (is "extends" for ejb:bean but is "local-extends" for local)defaultBaseClassName
- default base class name, returned when not deriving from another base class
XDocletException
protected boolean shouldTraverseSuperclassForDependentClass(xjavadoc.XClass clazz, String tagName) throws XDocletException
clazz
- Describe what the parameter doestagName
- Describe what the parameter does
XDocletException
|
http://xdoclet.sourceforge.net/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |