## EjbIntf

Implemented in class xdoclet.modules.ejb.intf.InterfaceTagsHandler.

- Block Tags
- Content Tags

### Block Tags:

#### ifIsNotInterfaceMethod (block template)

Evaluate the body block if the current method is not an EJB local or remote interface method.

interface | The type of interface to check for the methods validity in. Can be either "local" or "remote".

#### ifIsInterfaceMethod (block template)

Evaluate the body block if the current method is an EJB local or remote interface method.

interface | The type of interface to check for the methods validity in. Can be either "local" or "remote".
[superclasses] | Traverse superclasses too. With false value used in remote/local. Default is True.

#### forAllInterfaceViewTypes (block template)

Evaluates the body block for each view-type of current method. Sets currentMethodViewType internal variable of tag handler class, used by nested methodIntf.

#### ifIsInterfaceMethod (block template)

Evaluates the body block if ejb:interface-method defined for current method.

#### ifCurrentMethodViewTypeEquals (block template)

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.

paramName |

#### forAllClassTagIntf (block template)

Evaluates the body for all interfaces which are compatible to the view-type which is set on the current class tag. The body of this tag is also evaluated once, if no view-type attribute is set on the current class tag.

paramName | The param name for the view-type on the current class tag.

#### ifHasClassTagIntf (block template)

Evaluates the body if a current interface is available inside a forAllClassTagIntf block

#### forAllBeans (block template)

Evaluates the body block for each EJBean derived from one of the three EJB types: EntityBean, SessionBean or MessageDrivenBean.

#### ifIsAConcreteEJBean (block template)

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.

#### ifLocalEjb (block template)

#### ifRemoteEjb (block template)

#### ifServiceEndpointEjb (block template)

#### ifNotLocalEjb (block template)

#### ifNotRemoteEjb (block template)

#### ifNotServiceEndpointEjb (block template)

### Content templates:

#### componentInterface (content template)

Returns the full qualified local or remote interface name for the bean, depending on the value of type parameter.

type | Specifies the type of component interface. Valid Values = {remote,local}

#### methodIntf (content template)

Returns "Remote" is current method has ejb:remote-method defined, "Home" otherwise.

#### interfaceMethodName (content template)

Returns interface method name for the current interface method.

#### beanClassNameFromInterfaceName (content template)

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.

#### extendsFrom (content template)

Returns the name of the class home interface extends.

#### classTagIntf (content template)

Returns the current interface inside a forAllClassTagIntf block

#### ejbRefName (content template)

Returns the name of EJB ref.

#### ejbRefName (content template)

Returns the name of EJB ref.

#### ejbName (content template)

Returns the name of current EJB bean.

[prefixWithEjbSlash] | Specifies whether to prefix it with ejb/ or not. False by default. Valid Values = {true,false}

#### ejbExternalRefName (content template)

Returns the name of EJB ref.

#### symbolicClassName (content template)

Returns the symbolic name of the current class. For an EJBean it's the value of ejb:bean's name parameter.

#### shortEjbName (content template)

Returns short version of ejbName(). Example: "foo.bar.MyBean" ->"MyBean", "foo/bar/MyBean" ->"MyBean"

#### beanType (content template)

Returns Bean type : "Entity", "Session" or "Message Driven".

#### concreteFullClassName (content template)

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.

#### id (content template)

Returns unique id for current ejb.