org.eclipse.modisco.jee.ejbjar.EjbJar30
Interface MethodType


public interface MethodType

A representation of the model object 'Method Type'. EJBNAME * This style is used to refer to all the methods of the specified enterprise bean's business, home, component, and/or web service endpoint interfaces. 2. EJBNAME METHOD This style is used to refer to the specified method of the specified enterprise bean. If there are multiple methods with the same overloaded name, the element of this style refers to all the methods with the overloaded name. 3. EJBNAME METHOD PARAM-1 PARAM-2 ... PARAM-n This style is used to refer to a single method within a set of methods with an overloaded name. PARAM-1 through PARAM-n are the fully-qualified Java types of the method's input parameters (if the method has no input arguments, the method-params element contains no method-param elements). Arrays are specified by the array element's type, followed by one or more pair of square brackets (e.g. int[][]). If there are multiple methods with the same overloaded name, this style refers to all of the overloaded methods. Examples: Style 1: The following method element refers to all the methods of the EmployeeService bean's business, home, component, and/or web service endpoint interfaces: EmployeeService * Style 2: The following method element refers to all the create methods of the EmployeeService bean's home interface(s). EmployeeService create Style 3: The following method element refers to the create(String firstName, String LastName) method of the EmployeeService bean's home interface(s). EmployeeService create java.lang.String java.lang.String The following example illustrates a Style 3 element with more complex parameter types. The method foobar(char s, int i, int[] iar, mypackage.MyClass mycl, mypackage.MyClass[][] myclaar) would be specified as: EmployeeService foobar char int int[] mypackage.MyClass mypackage.MyClass[][] The optional method-intf element can be used when it becomes necessary to differentiate between a method that is multiply defined across the enterprise bean's business, home, component, and/or web service endpoint interfaces with the same name and signature. However, if the same method is a method of both the local business interface, and the local component interface, the same attribute applies to the method for both interfaces. Likewise, if the same method is a method of both the remote business interface and the remote component interface, the same attribute applies to the method for both interfaces. For example, the method element EmployeeService Remote create java.lang.String java.lang.String can be used to differentiate the create(String, String) method defined in the remote interface from the create(String, String) method defined in the remote home interface, which would be defined as EmployeeService Home create java.lang.String java.lang.String and the create method that is defined in the local home interface which would be defined as EmployeeService LocalHome create java.lang.String java.lang.String The method-intf element can be used with all three Styles of the method element usage. For example, the following method element example could be used to refer to all the methods of the EmployeeService bean's remote home interface and the remote business interface. EmployeeService Home * ]]>

The following features are supported:

See Also:
EjbJar30Package.getMethodType()
Generated:
Model:
extendedMetaData="name='methodType' kind='elementOnly'"

Method Summary
  getDescription()
          Returns the value of the 'Description' containment reference list.
 EjbNameType getEjbName()
          Returns the value of the 'Ejb Name' containment reference.
 java.lang.String getId()
          Returns the value of the 'Id' attribute.
 MethodIntfType getMethodIntf()
          Returns the value of the 'Method Intf' containment reference.
 MethodNameType getMethodName()
          Returns the value of the 'Method Name' containment reference.
 MethodParamsType getMethodParams()
          Returns the value of the 'Method Params' containment reference.
 void setEjbName(EjbNameType value)
          Sets the value of the 'Ejb Name' containment reference.
 void setId(java.lang.String value)
          Sets the value of the 'Id' attribute.
 void setMethodIntf(MethodIntfType value)
          Sets the value of the 'Method Intf' containment reference.
 void setMethodName(MethodNameType value)
          Sets the value of the 'Method Name' containment reference.
 void setMethodParams(MethodParamsType value)
          Sets the value of the 'Method Params' containment reference.
 

Method Detail

getDescription

 getDescription()
Returns the value of the 'Description' containment reference list. The list contents are of type DescriptionType.

If the meaning of the 'Description' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Description' containment reference list.
See Also:
EjbJar30Package.getMethodType_Description()
Generated:
Model:
containment="true" extendedMetaData="kind='element' name='description' namespace='http://java.sun.com/xml/ns/javaee'"

getEjbName

EjbNameType getEjbName()
Returns the value of the 'Ejb Name' containment reference.

If the meaning of the 'Ejb Name' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Ejb Name' containment reference.
See Also:
setEjbName(EjbNameType), EjbJar30Package.getMethodType_EjbName()
Generated:
Model:
containment="true" required="true" extendedMetaData="kind='element' name='ejb-name' namespace='http://java.sun.com/xml/ns/javaee'"

setEjbName

void setEjbName(EjbNameType value)
Sets the value of the 'Ejb Name' containment reference.

Parameters:
value - the new value of the 'Ejb Name' containment reference.
See Also:
getEjbName()
Generated:

getMethodIntf

MethodIntfType getMethodIntf()
Returns the value of the 'Method Intf' containment reference.

If the meaning of the 'Method Intf' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Method Intf' containment reference.
See Also:
setMethodIntf(MethodIntfType), EjbJar30Package.getMethodType_MethodIntf()
Generated:
Model:
containment="true" extendedMetaData="kind='element' name='method-intf' namespace='http://java.sun.com/xml/ns/javaee'"

setMethodIntf

void setMethodIntf(MethodIntfType value)
Sets the value of the 'Method Intf' containment reference.

Parameters:
value - the new value of the 'Method Intf' containment reference.
See Also:
getMethodIntf()
Generated:

getMethodName

MethodNameType getMethodName()
Returns the value of the 'Method Name' containment reference.

If the meaning of the 'Method Name' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Method Name' containment reference.
See Also:
setMethodName(MethodNameType), EjbJar30Package.getMethodType_MethodName()
Generated:
Model:
containment="true" required="true" extendedMetaData="kind='element' name='method-name' namespace='http://java.sun.com/xml/ns/javaee'"

setMethodName

void setMethodName(MethodNameType value)
Sets the value of the 'Method Name' containment reference.

Parameters:
value - the new value of the 'Method Name' containment reference.
See Also:
getMethodName()
Generated:

getMethodParams

MethodParamsType getMethodParams()
Returns the value of the 'Method Params' containment reference.

If the meaning of the 'Method Params' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Method Params' containment reference.
See Also:
setMethodParams(MethodParamsType), EjbJar30Package.getMethodType_MethodParams()
Generated:
Model:
containment="true" extendedMetaData="kind='element' name='method-params' namespace='http://java.sun.com/xml/ns/javaee'"

setMethodParams

void setMethodParams(MethodParamsType value)
Sets the value of the 'Method Params' containment reference.

Parameters:
value - the new value of the 'Method Params' containment reference.
See Also:
getMethodParams()
Generated:

getId

java.lang.String getId()
Returns the value of the 'Id' attribute.

If the meaning of the 'Id' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Id' attribute.
See Also:
setId(String), EjbJar30Package.getMethodType_Id()
Generated:
Model:
id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" extendedMetaData="kind='attribute' name='id'"

setId

void setId(java.lang.String value)
Sets the value of the 'Id' attribute.

Parameters:
value - the new value of the 'Id' attribute.
See Also:
getId()
Generated: