|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--xdoclet.template.TemplateTagHandler
|
+--xdoclet.XDocletTagSupport
|
+--xdoclet.ejb.tags.EjbTagsHandler
| Field Summary | |
protected static java.lang.String |
LOCAL_SUFFIX
|
| Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
| Constructor Summary | |
EjbTagsHandler()
|
|
| Method Summary | |
java.lang.String |
beanType()
Returns Bean type : "Entity", "Session" or "Message Driven". |
protected static java.lang.String |
choosePackage(java.lang.String packageName,
java.lang.String package_pattern,
java.lang.String for_subtask)
Returns modified package name for a package name. |
java.lang.String |
concreteFullClassName()
Returns the full-qualified name of the current class's concrete class. |
java.lang.String |
ejbExternalRefName()
Returns the name of EJB ref. |
java.lang.String |
ejbName(java.util.Properties attributes)
Returns the name of current EJB bean. |
java.lang.String |
ejbRefName()
Returns the name of EJB ref. |
protected java.lang.String |
extendsFromFor(com.sun.javadoc.ClassDoc clazz,
java.lang.String tag_name,
java.lang.String type,
java.lang.String extends_param_name,
java.lang.String default_base_class_name)
Returns the name of the class pk/etc class extends. |
void |
forAllBeans(java.lang.String template)
Evaluates the body block for each EJBean derived from one of the three EJB types: EntityBean, SessionBean or MessageDrivenBean. |
protected java.lang.String |
getDependentClassFor(com.sun.javadoc.ClassDoc clazz,
java.lang.String type)
sub-classes which deal with patternized class names return a reasonable value |
protected java.lang.String |
getDependentClassTagName()
|
static java.lang.String |
getEjbIdFor(com.sun.javadoc.ClassDoc clazz)
|
static java.lang.String |
getEjbNameFor(com.sun.javadoc.ClassDoc clazz)
Returns the EJB name of the clazz by seaching for ejb:bean's name parameter. |
static java.lang.String |
getEjbSpec()
Returns the EJB specification version used. |
static java.lang.String |
getShortEjbNameFor(com.sun.javadoc.ClassDoc clazz)
Returns short version of the EJB name of the clazz. |
protected boolean |
hasPermission(com.sun.javadoc.Doc doc)
Returns true if class/method denoted by doc has ejb:permission tag, false otherwise. |
protected boolean |
hasTransaction(com.sun.javadoc.Doc doc)
Returns true if class/method denoted by doc has ejb:transaction tag, false otherwise. |
java.lang.String |
id()
Returns unique id for current ejb. |
void |
ifIsAConcreteEJBean(java.lang.String template,
java.util.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(java.lang.String template)
|
void |
ifNotLocalEjb(java.lang.String template)
|
void |
ifNotRemoteEjb(java.lang.String template)
|
void |
ifRemoteEjb(java.lang.String template)
|
static boolean |
isAConcreteEJBean(com.sun.javadoc.ClassDoc clazz)
|
protected boolean |
isEjb(com.sun.javadoc.ClassDoc clazz)
Returns true of clazz is an EJB (derived from an EJB type), false otherwise. |
static boolean |
isLocalEjb(com.sun.javadoc.ClassDoc clazz)
|
static boolean |
isOnlyLocalEjb(com.sun.javadoc.ClassDoc clazz)
Returns true if clazz is only a local EJB by looking at ejb:bean's view-type parameter. |
static boolean |
isOnlyRemoteEjb(com.sun.javadoc.ClassDoc clazz)
Returns true if clazz is only a remote EJB by looking at ejb:bean's view-type parameter. |
static boolean |
isRemoteEjb(com.sun.javadoc.ClassDoc clazz)
|
protected java.lang.String |
prefixWithEjbSlash(java.lang.String ejb_name)
|
java.lang.String |
shortEjbName()
Returns short version of ejbName(). |
protected boolean |
shouldTraverseSuperclassForDependentClass(com.sun.javadoc.ClassDoc clazz,
java.lang.String tag_name)
|
java.lang.String |
symbolicClassName()
Returns the symbolic name of the current class. |
| Methods inherited from class xdoclet.template.TemplateTagHandler |
generate, getContext, getEngine, getParser, setContext, setEngine, setParser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String LOCAL_SUFFIX
| Constructor Detail |
public EjbTagsHandler()
| Method Detail |
public static boolean isAConcreteEJBean(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
public static java.lang.String getEjbNameFor(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - The EJB bean class for which we want the EJB
nameXDocletException - Description of ExceptionejbName(java.util.Properties)
public static java.lang.String getShortEjbNameFor(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - the class we want its short EJB nameXDocletException - Description of ExceptionshortEjbName()
public static java.lang.String getEjbIdFor(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - Description of ParameterXDocletException - Description of Exceptionpublic static java.lang.String getEjbSpec()
public static boolean isLocalEjb(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
public static boolean isRemoteEjb(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
public static boolean isOnlyLocalEjb(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - Description of ParameterXDocletException - Description of Exception
public static boolean isOnlyRemoteEjb(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - Description of ParameterXDocletException - Description of Exception
protected static java.lang.String choosePackage(java.lang.String packageName,
java.lang.String package_pattern,
java.lang.String for_subtask)
throws XDocletException
packageName - The name of the package name the new package
name will be derived frompackage_pattern - The package pattern to use. Can be nullfor_subtask - XDocletException - Description of Exception
public java.lang.String ejbName(java.util.Properties attributes)
throws XDocletException
attributes - The attributes of the template tagXDocletException - Description of ExceptiongetEjbNameFor(com.sun.javadoc.ClassDoc)
public java.lang.String ejbRefName()
throws XDocletException
XDocletException - Description of Exception
public java.lang.String ejbExternalRefName()
throws XDocletException
XDocletException - Description of Exception
public java.lang.String symbolicClassName()
throws XDocletException
XDocletException - Description of ExceptionshortEjbName()
public java.lang.String shortEjbName()
throws XDocletException
XDocletException - Description of ExceptiongetShortEjbNameFor(com.sun.javadoc.ClassDoc)
public void forAllBeans(java.lang.String template)
throws XDocletException
template - The body of the block tagXDocletException - Description of ExceptionEntityTagsHandler.isEntity(com.sun.javadoc.ClassDoc),
SessionTagsHandler.isSession(com.sun.javadoc.ClassDoc),
MdbTagsHandler.isMessageDriven(com.sun.javadoc.ClassDoc)
public void ifIsAConcreteEJBean(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of Exception
public java.lang.String beanType()
throws XDocletException
XDocletException - Description of ExceptionEntityTagsHandler.isEntity(com.sun.javadoc.ClassDoc),
SessionTagsHandler.isSession(com.sun.javadoc.ClassDoc),
MdbTagsHandler.isMessageDriven(com.sun.javadoc.ClassDoc)
public java.lang.String concreteFullClassName()
throws XDocletException
XDocletException - Description of ExceptionSessionTagsHandler.sessionClass(),
BmpTagsHandler.entityBmpClass(),
CmpTagsHandler.entityCmpClass(),
MdbTagsHandler.messageDrivenClass()
public java.lang.String id()
throws XDocletException
XDocletException - Description of Exception
public void ifLocalEjb(java.lang.String template)
throws XDocletException
template - Description of ParameterXDocletException - Description of Exception
public void ifRemoteEjb(java.lang.String template)
throws XDocletException
template - Description of ParameterXDocletException - Description of Exception
public void ifNotLocalEjb(java.lang.String template)
throws XDocletException
template - XDocletException -
public void ifNotRemoteEjb(java.lang.String template)
throws XDocletException
template - XDocletException -
protected boolean isEjb(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - Description of ParameterXDocletException - Description of Exception
protected java.lang.String getDependentClassFor(com.sun.javadoc.ClassDoc clazz,
java.lang.String type)
throws XDocletException
clazz - the classtype - type value used for view-type of remote/localXDocletException - protected java.lang.String getDependentClassTagName()
protected java.lang.String prefixWithEjbSlash(java.lang.String ejb_name)
protected boolean hasPermission(com.sun.javadoc.Doc doc)
throws XDocletException
doc - Description of ParameterXDocletException - Description of Exception
protected boolean hasTransaction(com.sun.javadoc.Doc doc)
throws XDocletException
doc - Description of ParameterXDocletException - Description of Exception
protected java.lang.String extendsFromFor(com.sun.javadoc.ClassDoc clazz,
java.lang.String tag_name,
java.lang.String type,
java.lang.String extends_param_name,
java.lang.String default_base_class_name)
throws XDocletException
clazz - the classtag_name - name of the tag (ejb:bean for example, used
for getting generate parameter)type - type value used for view type of
remote/localextends_param_name - extends parameter name (is "extends" for
ejb:bean but is "local-extends" for local)default_base_class_name - default base class name, returned when not
deriving from another base classXDocletException -
protected boolean shouldTraverseSuperclassForDependentClass(com.sun.javadoc.ClassDoc clazz,
java.lang.String tag_name)
throws XDocletException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||