Java Doc for EjbTagsHandler.java in  » Workflow-Engines » obe-1.0 » xdoclet » modules » ejb » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » obe 1.0 » xdoclet.modules.ejb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


xdoclet.modules.ejb.EjbTagsHandler

All known Subclasses:   xdoclet.modules.ejb.home.HomeTagsHandler,  xdoclet.modules.ejb.intf.InterfaceTagsHandler,
EjbTagsHandler
public class EjbTagsHandler extends XDocletTagSupport (Code)

author:
   Ara Abrahamian (ara_e@email.com)
author:
   Adrian Price
version:
   $Revision: 1.1 $


Field Summary
final protected static  StringLOCAL_SUFFIX
    


Method Summary
public  StringbeanType()
     Returns Bean type : "Entity", "Session" or "Message Driven".
public static  StringchoosePackage(String packageName, String packagePattern, String subtask)
     Returns modified package name for a package name.
public  StringconcreteFullClassName()
     Returns the full-qualified name of the current class's concrete class.
public  StringejbExternalRefName()
     Returns the name of EJB ref.
public  StringejbName(Properties attributes)
     Returns the name of current EJB bean.
public static  StringejbRefName()
     Returns the name of EJB ref.
protected  StringextendsFromFor(XClass clazz, String tagName, String type, String extendsParamName, String defaultBaseClassName)
     Returns the name of the class pk/etc class extends.
public  voidforAllBeans(String template)
     Evaluates the body block for each EJBean derived from one of the three EJB types: EntityBean, SessionBean or MessageDrivenBean.
protected  StringgetDependentClassFor(XClass clazz, String type)
    
protected  StringgetDependentClassTagName()
    
public static  XClassgetEjb(String name)
    
public static  StringgetEjbIdFor(XClass clazz)
    
public static  StringgetEjbNameFor(XClass clazz)
     Returns the EJB name of the clazz by seaching for ejb:bean's name parameter.
public static  StringgetEjbSpec()
     Returns the EJB specification version used.
protected  StringgetInterfaceMethodName(String name)
     Returns the interface method name depending on its type.
public static  StringgetShortEjbNameFor(XClass clazz)
     Returns short version of the EJB name of the clazz.
protected  booleanhasTransaction(XDoc doc)
     Returns true if class/method denoted by doc has ejb:transaction tag, false otherwise.
public  Stringid()
     Returns unique id for current ejb.
public  voidifIsAConcreteEJBean(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.
public  voidifLocalEjb(String template)
    
public  voidifNotLocalEjb(String template)
    
public  voidifNotRemoteEjb(String template)
    
public  voidifRemoteEjb(String template)
    
public static  booleanisAConcreteEJBean(XClass clazz)
    
protected  booleanisEjb(XClass clazz)
     Returns true of clazz is an EJB (derived from an EJB type), false otherwise.
protected  booleanisInheritedIntfMethod(XClass clazz, XMethod method, String tagName, String type, String extendsParamName, String defaultBaseClassName)
    
protected  booleanisInheritedIntfMethod(XClass clazz, String methodNameWithSignature, String tagName, String type, String extendsParamName, String defaultBaseClassName)
     Checks whether the specified interface method is inherited from a super-interface.
Parameters:
  clazz - The class being processed.
Parameters:
  methodNameWithSignature - The normalized method name with parameters (i.e., comma-separated, no spaces,return type or parameter names).
Parameters:
  tagName - The tag name which indicates whether to check the home interface (ejb:home) or acomponent interface (ejb:interface).
Parameters:
  type - The interface type, "local" or "remote".
Parameters:
  extendsParamName - The name of the attribute that indicates the super-interface extended by the homeor component interface in question.
Parameters:
  defaultBaseClassName - The name of the default super-interface.
protected  booleanisIntfMethod(String tagName, String type)
    
public static  booleanisLocalEjb(XClass clazz)
    
public static  booleanisOnlyLocalEjb(XClass clazz)
     Returns true if clazz is only a local EJB by looking at ejb:bean's view-type parameter.
public static  booleanisOnlyRemoteEjb(XClass clazz)
     Returns true if clazz is only a remote EJB by looking at ejb:bean's view-type parameter.
public static  booleanisRemoteEjb(XClass clazz)
    
protected  StringnormalizeSignature(String signature)
     Strips any return type and parameter names from a method signature.
Parameters:
  signature - Method signature to normalize.
protected static  StringprefixWithEjbSlash(String ejbName)
     Replace "." by "/" and add "ejb/" to the parameter.
public  StringshortEjbName()
     Returns short version of ejbName().
protected  booleanshouldTraverseSuperclassForDependentClass(XClass clazz, String tagName)
    
public  StringsymbolicClassName()
     Returns the symbolic name of the current class.

Field Detail
LOCAL_SUFFIX
final protected static String LOCAL_SUFFIX(Code)





Method Detail
beanType
public String beanType() throws XDocletException(Code)
Returns Bean type : "Entity", "Session" or "Message Driven". "Entity", "Session" or "Message Driven".
exception:
  XDocletException -
See Also:   xdoclet.modules.ejb.entity.EntityTagsHandler.isEntity(xjavadoc.XClass)
See Also:   xdoclet.modules.ejb.session.SessionTagsHandler.isSession(xjavadoc.XClass)
See Also:   xdoclet.modules.ejb.mdb.MdbTagsHandler.isMessageDriven(xjavadoc.XClass)



choosePackage
public static String choosePackage(String packageName, String packagePattern, String subtask)(Code)
Returns modified package name for a package name. If package name ends with one of the toReplace Strings, then it's substituted by the replaceWith String. If packagePattern not null then it's roughly used.
Parameters:
  packageName - The name of the package name the new package name will be derived from
Parameters:
  packagePattern - The package pattern to use. Can be null
Parameters:
  subtask - Description of the Returned Value



concreteFullClassName
public String concreteFullClassName() throws XDocletException(Code)
Returns the full-qualified name of the current class's concrete class. This is the class that is generated and is derived from current class. The full-qualified name of the current class's concrete class
exception:
  XDocletException -
See Also:   xdoclet.modules.ejb.session.SessionTagsHandler.sessionClass
See Also:   xdoclet.modules.ejb.entity.BmpTagsHandler.entityBmpClass
See Also:   xdoclet.modules.ejb.entity.CmpTagsHandler.entityCmpClass
See Also:   xdoclet.modules.ejb.mdb.MdbTagsHandler.messageDrivenClass



ejbExternalRefName
public String ejbExternalRefName() throws XDocletException(Code)
Returns the name of EJB ref. The name of current EJB bean.
exception:
  XDocletException -



ejbName
public String ejbName(Properties attributes) throws XDocletException(Code)
Returns the name of current EJB bean.
Parameters:
  attributes - The attributes of the template tag The name of current EJB bean.
exception:
  XDocletException -
See Also:   EjbTagsHandler.getEjbNameFor(xjavadoc.XClass)



ejbRefName
public static String ejbRefName() throws XDocletException(Code)
Returns the name of EJB ref. The name of current EJB bean.
exception:
  XDocletException -



extendsFromFor
protected String extendsFromFor(XClass clazz, String tagName, String type, String extendsParamName, String defaultBaseClassName) throws XDocletException(Code)
Returns the name of the class pk/etc class extends.
Parameters:
  clazz - the class
Parameters:
  tagName - name of the tag (ejb:bean for example, used for getting generate parameter)
Parameters:
  type - type value used for view type of remote/local
Parameters:
  extendsParamName - extends parameter name (is "extends" for ejb:bean but is "local-extends" for local)
Parameters:
  defaultBaseClassName - default base class name, returned when not deriving from another base class correct value for the extends statement of a generated class
exception:
  XDocletException -



forAllBeans
public void forAllBeans(String template) throws XDocletException(Code)
Evaluates the body block for each EJBean derived from one of the three EJB types: EntityBean, SessionBean or MessageDrivenBean.
Parameters:
  template - The body of the block tag
exception:
  XDocletException -
See Also:   xdoclet.modules.ejb.entity.EntityTagsHandler.isEntity(xjavadoc.XClass)
See Also:   xdoclet.modules.ejb.session.SessionTagsHandler.isSession(xjavadoc.XClass)
See Also:   xdoclet.modules.ejb.mdb.MdbTagsHandler.isMessageDriven(xjavadoc.XClass)



getDependentClassFor
protected String getDependentClassFor(XClass clazz, String type) throws XDocletException(Code)
sub-classes which deal with patternized class names return a reasonable value
Parameters:
  clazz - the class
Parameters:
  type - type value used for view-type of remote/local dependent class name for the class and type
exception:
  XDocletException -



getDependentClassTagName
protected String getDependentClassTagName()(Code)
Gets the DependentClassTagName attribute of the EjbTagsHandler object The DependentClassTagName value



getEjb
public static XClass getEjb(String name) throws XDocletException(Code)
Returns the class with the specified ejb name
Parameters:
  name -
exception:
  XDocletException -



getEjbIdFor
public static String getEjbIdFor(XClass clazz)(Code)

Parameters:
  clazz - Description of Parameter a unique id for clazz



getEjbNameFor
public static String getEjbNameFor(XClass clazz)(Code)
Returns the EJB name of the clazz by seaching for ejb:bean's name parameter. If that is not found, it uses the class' name minus any suffix from the list in the 'ejbClassNameSuffix' config parameter ("Bean,EJB,Ejb" by default).
Parameters:
  clazz - The EJB bean class for which we want the EJB name The EjbName value
See Also:   EjbTagsHandler.ejbName(java.util.Properties)



getEjbSpec
public static String getEjbSpec()(Code)
Returns the EJB specification version used. The generated files will be compatible with the version specified. The Ejbspec value



getInterfaceMethodName
protected String getInterfaceMethodName(String name) throws XDocletException(Code)
Returns the interface method name depending on its type.
Parameters:
  name - Description of Parameter "create" if ejbCreate, "remote" if ejbRemove, find if ejbFind, home if ejbHome.
exception:
  XDocletException -



getShortEjbNameFor
public static String getShortEjbNameFor(XClass clazz)(Code)
Returns short version of the EJB name of the clazz.
Parameters:
  clazz - the class we want its short EJB name The shortEjbName value
See Also:   EjbTagsHandler.shortEjbName()



hasTransaction
protected boolean hasTransaction(XDoc doc) throws XDocletException(Code)
Returns true if class/method denoted by doc has ejb:transaction tag, false otherwise.
Parameters:
  doc - Description of Parameter Description of the Returned Value
exception:
  XDocletException -



id
public String id() throws XDocletException(Code)
Returns unique id for current ejb. Description of the Returned Value
exception:
  XDocletException -



ifIsAConcreteEJBean
public void ifIsAConcreteEJBean(String template, Properties attributes) throws XDocletException(Code)
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.
Parameters:
  template - The body of the block tag
Parameters:
  attributes - The attributes of the template tag
exception:
  XDocletException -



ifLocalEjb
public void ifLocalEjb(String template) throws XDocletException(Code)

Parameters:
  template - Description of Parameter
exception:
  XDocletException -



ifNotLocalEjb
public void ifNotLocalEjb(String template) throws XDocletException(Code)

Parameters:
  template -
exception:
  XDocletException -



ifNotRemoteEjb
public void ifNotRemoteEjb(String template) throws XDocletException(Code)

Parameters:
  template -
exception:
  XDocletException -



ifRemoteEjb
public void ifRemoteEjb(String template) throws XDocletException(Code)

Parameters:
  template - Description of Parameter
exception:
  XDocletException -



isAConcreteEJBean
public static boolean isAConcreteEJBean(XClass clazz) throws XDocletException(Code)
Gets the AConcreteEJBean attribute of the EjbTagsHandler class
Parameters:
  clazz - Describe what the parameter does The AConcreteEJBean value
exception:
  XDocletException -



isEjb
protected boolean isEjb(XClass clazz) throws XDocletException(Code)
Returns true of clazz is an EJB (derived from an EJB type), false otherwise.
Parameters:
  clazz - Description of Parameter The Ejb value
exception:
  XDocletException -



isInheritedIntfMethod
protected boolean isInheritedIntfMethod(XClass clazz, XMethod method, String tagName, String type, String extendsParamName, String defaultBaseClassName) throws XDocletException(Code)



isInheritedIntfMethod
protected boolean isInheritedIntfMethod(XClass clazz, String methodNameWithSignature, String tagName, String type, String extendsParamName, String defaultBaseClassName) throws XDocletException(Code)
Checks whether the specified interface method is inherited from a super-interface.
Parameters:
  clazz - The class being processed.
Parameters:
  methodNameWithSignature - The normalized method name with parameters (i.e., comma-separated, no spaces,return type or parameter names).
Parameters:
  tagName - The tag name which indicates whether to check the home interface (ejb:home) or acomponent interface (ejb:interface).
Parameters:
  type - The interface type, "local" or "remote".
Parameters:
  extendsParamName - The name of the attribute that indicates the super-interface extended by the homeor component interface in question.
Parameters:
  defaultBaseClassName - The name of the default super-interface. true if the specified method is defined in the super-interface,otherwise false.
throws:
  XDocletException -



isIntfMethod
protected boolean isIntfMethod(String tagName, String type) throws XDocletException(Code)



isLocalEjb
public static boolean isLocalEjb(XClass clazz) throws XDocletException(Code)



isOnlyLocalEjb
public static boolean isOnlyLocalEjb(XClass clazz) throws XDocletException(Code)
Returns true if clazz is only a local EJB by looking at ejb:bean's view-type parameter.
Parameters:
  clazz - Description of Parameter The OnlyLocalEjb value
exception:
  XDocletException -



isOnlyRemoteEjb
public static boolean isOnlyRemoteEjb(XClass clazz) throws XDocletException(Code)
Returns true if clazz is only a remote EJB by looking at ejb:bean's view-type parameter.
Parameters:
  clazz - Description of Parameter The OnlyRemoteEjb value
exception:
  XDocletException -



isRemoteEjb
public static boolean isRemoteEjb(XClass clazz) throws XDocletException(Code)



normalizeSignature
protected String normalizeSignature(String signature)(Code)
Strips any return type and parameter names from a method signature.
Parameters:
  signature - Method signature to normalize. Normalized signature.



prefixWithEjbSlash
protected static String prefixWithEjbSlash(String ejbName)(Code)
Replace "." by "/" and add "ejb/" to the parameter.
Parameters:
  ejbName - The string to parse The parsed String



shortEjbName
public String shortEjbName() throws XDocletException(Code)
Returns short version of ejbName(). Example: "foo.bar.MyBean" ->"MyBean", "foo/bar/MyBean" ->"MyBean" Description of the Returned Value
exception:
  XDocletException -
See Also:   EjbTagsHandler.getShortEjbNameFor(xjavadoc.XClass)



shouldTraverseSuperclassForDependentClass
protected boolean shouldTraverseSuperclassForDependentClass(XClass clazz, String tagName) throws XDocletException(Code)
Describe what the method does
Parameters:
  clazz - Describe what the parameter does
Parameters:
  tagName - Describe what the parameter does Describe the return value
exception:
  XDocletException -



symbolicClassName
public String symbolicClassName() throws XDocletException(Code)
Returns the symbolic name of the current class. For an EJBean it's the value of ejb:bean's name parameter. The symbolic name of the current class
exception:
  XDocletException -
See Also:   EjbTagsHandler.shortEjbName()



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.