|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxdoclet.template.TemplateTagHandler
xdoclet.XDocletTagSupport
xdoclet.modules.ejb.EjbTagsHandler
xdoclet.modules.ejb.intf.InterfaceTagsHandler
Field Summary | |
static String |
SERVICE_ENDPOINT_EXTENDS_PARAM
|
static String |
SERVICE_ENDPOINT_INTERFACE
|
Fields inherited from class xdoclet.modules.ejb.EjbTagsHandler |
ALL, LOCAL_SUFFIX, SERVICE_ENDPOINT, SERVICE_ENDPOINT_SUFFIX |
Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
Constructor Summary | |
InterfaceTagsHandler()
|
Method Summary | |
String |
beanClassNameFromInterfaceName(Properties attributes)
Returns the bean implementation class name for the interface name specified as the return type of current method or the method specified by parameter interface if any. |
String |
classTagIntf()
Returns the current interface inside a forAllClassTagIntf block |
String |
componentInterface(Properties attributes)
Returns the full qualified local or remote interface name for the bean, depending on the value of type parameter. |
String |
extendsFrom(Properties attributes)
Returns the name of the class home interface extends. |
void |
forAllClassTagIntf(String template,
Properties attributes)
Evaluates the body for all interfaces which are compatible to the view-type which is set on the current class tag. |
void |
forAllInterfaceViewTypes(String template,
Properties attributes)
Evaluates the body block for each view-type of current method. |
protected String |
fromInterfaceToBean(String value)
Loops over all classes and if value equals to local or remote or service-endpoint interface name of an EJBean full qualified name of that EJB is returned. |
static String |
getBeanClassNameFromInterfaceNameFor(String return_type)
Gets the BeanClassNameFromInterfaceNameFor attribute of the InterfaceTagsHandler class |
static String |
getComponentInterface(String type,
xjavadoc.XClass clazz)
Return the fully qualified name of the component interface of type specified. |
protected String |
getDependentClassFor(xjavadoc.XClass clazz,
String type)
Gets the DependentClassFor attribute of the InterfaceTagsHandler object |
protected String |
getInterfaceMethodName(String name)
Returns the interface method name depending on its type. |
protected static String |
getLocalClassPattern()
Gets the LocalClassPattern attribute of the InterfaceTagsHandler class |
protected static String |
getRemoteClassPattern()
Gets the RemoteClassPattern attribute of the InterfaceTagsHandler class |
protected static String |
getServiceEndpointClassPattern()
Gets the LocalClassPattern attribute of the InterfaceTagsHandler class |
void |
ifCurrentMethodViewTypeEquals(String template,
Properties attributes)
Evaluates the body if the view-type of the current method is compatible with the value of the current method tag's parameter with the passed name. |
void |
ifHasClassTagIntf(String template)
Evaluates the body if a current interface is available inside a forAllClassTagIntf block |
void |
ifIsInterfaceMethod(String template)
Evaluates the body block if ejb:interface-method defined for current method. |
void |
ifIsInterfaceMethod(String template,
Properties attributes)
Evaluate the body block if the current method is an EJB local or remote interface method. |
void |
ifIsNotInterfaceMethod(String template,
Properties attributes)
Evaluate the body block if the current method is not an EJB local or remote interface method. |
String |
interfaceMethodName()
Returns interface method name for the current interface method. |
static boolean |
isComponentInterfaceMethod(xjavadoc.XMethod method)
Returns true if method is a component interface method, false otherwise. |
protected boolean |
isInterfaceMethod(String intFace)
Implements functionality required by ifIsInterfaceMethod(java.lang.String, java.util.Properties) and ifIsNotInterfaceMethod(java.lang.String, java.util.Properties) . |
static boolean |
isInterfaceMethod(xjavadoc.XMethod method)
Returns true if method is an interface method, false otherwise. |
static boolean |
isLocalMethod(xjavadoc.XMethod method)
Returns true if method is a local interface method by looking at view-type parameter. |
static boolean |
isRemoteMethod(xjavadoc.XMethod method)
Returns true if method is a remote interface method by looking at view-type parameter. |
static boolean |
isServiceEndpointMethod(xjavadoc.XMethod method)
Returns true if method is a local interface method by looking at view-type parameter. |
String |
methodIntf(Properties attributes)
Returns "Remote" is current method has ejb:remote-method defined, "Home" otherwise. |
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_INTERFACE
public static final String SERVICE_ENDPOINT_EXTENDS_PARAM
Constructor Detail |
public InterfaceTagsHandler()
Method Detail |
public static String getComponentInterface(String type, xjavadoc.XClass clazz) throws XDocletException
ejb:interface
class level tag. Relevant parameters for the ejb:interface
tag are:
type
- Can be remote or local. Defaults to remote.clazz
- Description of Parameter
XDocletException
public static boolean isInterfaceMethod(xjavadoc.XMethod method)
method
- Description of Parameter
public static boolean isComponentInterfaceMethod(xjavadoc.XMethod method)
method
- Description of Parameter
public static String getBeanClassNameFromInterfaceNameFor(String return_type) throws XDocletException
return_type
- Describe what the parameter does
XDocletException
public static boolean isRemoteMethod(xjavadoc.XMethod method) throws XDocletException
method
- Description of Parameter
XDocletException
public static boolean isLocalMethod(xjavadoc.XMethod method) throws XDocletException
method
- Description of Parameter
XDocletException
public static boolean isServiceEndpointMethod(xjavadoc.XMethod method) throws XDocletException
method
- Description of Parameter
XDocletException
protected static String getRemoteClassPattern()
protected static String getLocalClassPattern()
protected static String getServiceEndpointClassPattern()
public String componentInterface(Properties attributes) throws XDocletException
attributes
- The attributes of the template tag
XDocletException
public void ifIsNotInterfaceMethod(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public void ifIsInterfaceMethod(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public void forAllInterfaceViewTypes(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public void ifIsInterfaceMethod(String template) throws XDocletException
template
- The body of the block tag
XDocletException
isInterfaceMethod(xjavadoc.XMethod)
public String methodIntf(Properties attributes) throws XDocletException
attributes
- The attributes of the template tag
XDocletException
isRemoteMethod(xjavadoc.XMethod)
public String interfaceMethodName() throws XDocletException
XDocletException
getInterfaceMethodName(java.lang.String)
public String beanClassNameFromInterfaceName(Properties attributes) throws XDocletException
attributes
-
XDocletException
public String extendsFrom(Properties attributes) throws XDocletException
attributes
-
XDocletException
public void ifCurrentMethodViewTypeEquals(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
- Description of Exceptionpublic void forAllClassTagIntf(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
- Description of Exceptionpublic String classTagIntf() throws XDocletException
XDocletException
- Description of ExceptionforAllClassTagIntf(String, Properties)
public void ifHasClassTagIntf(String template) throws XDocletException
template
- The body of the block tag
XDocletException
- Description of ExceptionforAllClassTagIntf(String, Properties)
protected boolean isInterfaceMethod(String intFace) throws XDocletException
ifIsInterfaceMethod(java.lang.String, java.util.Properties)
and ifIsNotInterfaceMethod(java.lang.String, java.util.Properties)
. To
determine what interfaces the method should appear in, check the first for a view-type
parameter to
the method level ejb:interface-method
tag. If that is absent use the view-type
tag from
ejb:bean
.
intFace
- The type of interface to test the method for.
XDocletException
protected String getInterfaceMethodName(String name) throws XDocletException
name
- Description of Parameter
XDocletException
protected String getDependentClassFor(xjavadoc.XClass clazz, String type) throws XDocletException
getDependentClassFor
in class EjbTagsHandler
clazz
- Describe what the parameter doestype
- Describe what the parameter does
XDocletException
protected String fromInterfaceToBean(String value) throws XDocletException
value
- Description of Parameter
XDocletException
|
http://xdoclet.sourceforge.net/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |