Class MethodElement
- java.lang.Object
-
- org.apache.openejb.jee.was.v6.ejb.MethodElement
-
- Direct Known Subclasses:
QueryMethod
public class MethodElement extends Object
The method element is used to denote a method of an enterprise bean's home or remote interface, or a set of methods. The ejb-name element must be the name of one of the enterprise beans in declared in the deployment descriptor; the optional method-intf element allows to distinguish between a method with the same signature that is defined in both the home and remote interface; the method-name element specifies the method name; and the optional method-params elements identify a single method among multiple methods with an overloaded method name. There are three possible styles of the method element syntax: 1. This style is used to refer to all the methods of the specified enterprise bean's home and remote interfaces. 2.EJBNAME * > 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 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[][]). Used in: method-permission and container-transaction Examples: Style 1: The following method element refers to all the methods of the EmployeeService bean's home and remote interfaces: Style 2: The following method element refers to all the create methods of the EmployeeService bean's home interface:EmployeeService * Style 3: The following method element refers to the create(String firstName, String LastName) method of the EmployeeService bean's home interface.EmployeeService create 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 create java.lang.String java.lang.String The optional method-intf element can be used when it becomes necessary to differentiate between a method defined in the home interface and a method with the same name and signature that is defined in the remote interface. For example, the method elementEmployeeService foobar char int int[] mypackage.MyClass mypackage.MyClass[][] can be used to differentiate the create(String, String) method defined in the remote interface from the create(String, String) method defined in the home interface, which would be defined asEmployeeService Remote create java.lang.String java.lang.String Java class for MethodElement complex type. The following schema fragment specifies the expected content contained within this class.EmployeeService Home create java.lang.String java.lang.String <complexType name="MethodElement"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice> <choice maxOccurs="unbounded" minOccurs="0"> <element name="enterpriseBean" type="{ejb.xmi}EnterpriseBean"/> </choice> <choice maxOccurs="unbounded" minOccurs="0"> <element name="descriptions" type="{common.xmi}Description"/> </choice> <choice maxOccurs="unbounded" minOccurs="0"> <element ref="{http://www.omg.org/XMI}Extension"/> </choice> </choice> <attGroup ref="{http://www.omg.org/XMI}ObjectAttribs"/> <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="enterpriseBean" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="parms" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="type" type="{ejb.xmi}MethodElementKind" /> <attribute ref="{http://www.omg.org/XMI}id"/> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected List<Description>descriptionsprotected StringenterpriseBeanprotected List<EnterpriseBean>enterpriseBeansprotected List<Extension>extensionsprotected Stringhrefprotected Stringidprotected Objectidrefprotected Stringlabelprotected MethodElementEnummethodElementTypeprotected Stringnameprotected Stringparmsprotected QNametypeprotected Stringuuidprotected Stringversion
-
Constructor Summary
Constructors Constructor Description MethodElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Gets the value of the description property.List<Description>getDescriptions()Gets the value of the descriptions property.StringgetEnterpriseBean()Gets the value of the enterpriseBean property.List<EnterpriseBean>getEnterpriseBeans()Gets the value of the enterpriseBeans property.List<Extension>getExtensions()Gets the value of the extensions property.StringgetHref()Gets the value of the href property.StringgetId()Gets the value of the id property.ObjectgetIdref()Gets the value of the idref property.StringgetLabel()Gets the value of the label property.MethodElementEnumgetMethodElementType()Gets the value of the methodElementType property.StringgetName()Gets the value of the name property.StringgetParms()Gets the value of the parms property.QNamegetType()Gets the value of the type property.StringgetUuid()Gets the value of the uuid property.StringgetVersion()Gets the value of the version property.voidsetDescription(String value)Sets the value of the description property.voidsetEnterpriseBean(String value)Sets the value of the enterpriseBean property.voidsetHref(String value)Sets the value of the href property.voidsetId(String value)Sets the value of the id property.voidsetIdref(Object value)Sets the value of the idref property.voidsetLabel(String value)Sets the value of the label property.voidsetMethodElementType(MethodElementEnum value)Sets the value of the methodElementType property.voidsetName(String value)Sets the value of the name property.voidsetParms(String value)Sets the value of the parms property.voidsetType(QName value)Sets the value of the type property.voidsetUuid(String value)Sets the value of the uuid property.voidsetVersion(String value)Sets the value of the version property.
-
-
-
Field Detail
-
enterpriseBeans
protected List<EnterpriseBean> enterpriseBeans
-
descriptions
protected List<Description> descriptions
-
description
protected String description
-
enterpriseBean
protected String enterpriseBean
-
name
protected String name
-
parms
protected String parms
-
methodElementType
protected MethodElementEnum methodElementType
-
id
protected String id
-
type
protected QName type
-
version
protected String version
-
href
protected String href
-
idref
protected Object idref
-
label
protected String label
-
uuid
protected String uuid
-
-
Method Detail
-
getEnterpriseBeans
public List<EnterpriseBean> getEnterpriseBeans()
Gets the value of the enterpriseBeans property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not asetmethod for the enterpriseBeans property. For example, to add a new item, do as follows:getEnterpriseBeans().add(newItem);
Objects of the following type(s) are allowed in the listEnterpriseBean
-
getDescriptions
public List<Description> getDescriptions()
Gets the value of the descriptions property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not asetmethod for the descriptions property. For example, to add a new item, do as follows:getDescriptions().add(newItem);
Objects of the following type(s) are allowed in the listDescription
-
getExtensions
public List<Extension> getExtensions()
Gets the value of the extensions property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not asetmethod for the extensions property. For example, to add a new item, do as follows:getExtensions().add(newItem);
Objects of the following type(s) are allowed in the listExtension
-
getDescription
public String getDescription()
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Sets the value of the description property.- Parameters:
value- allowed object isString
-
getEnterpriseBean
public String getEnterpriseBean()
Gets the value of the enterpriseBean property.- Returns:
- possible object is
String
-
setEnterpriseBean
public void setEnterpriseBean(String value)
Sets the value of the enterpriseBean property.- Parameters:
value- allowed object isString
-
getName
public String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getParms
public String getParms()
Gets the value of the parms property.- Returns:
- possible object is
String
-
setParms
public void setParms(String value)
Sets the value of the parms property.- Parameters:
value- allowed object isString
-
getMethodElementType
public MethodElementEnum getMethodElementType()
Gets the value of the methodElementType property.- Returns:
- possible object is
MethodElementEnum
-
setMethodElementType
public void setMethodElementType(MethodElementEnum value)
Sets the value of the methodElementType property.- Parameters:
value- allowed object isMethodElementEnum
-
setId
public void setId(String value)
Sets the value of the id property.- Parameters:
value- allowed object isString
-
getType
public QName getType()
Gets the value of the type property.- Returns:
- possible object is
QName
-
setType
public void setType(QName value)
Sets the value of the type property.- Parameters:
value- allowed object isQName
-
getVersion
public String getVersion()
Gets the value of the version property.- Returns:
- possible object is
String
-
setVersion
public void setVersion(String value)
Sets the value of the version property.- Parameters:
value- allowed object isString
-
getHref
public String getHref()
Gets the value of the href property.- Returns:
- possible object is
String
-
setHref
public void setHref(String value)
Sets the value of the href property.- Parameters:
value- allowed object isString
-
getIdref
public Object getIdref()
Gets the value of the idref property.- Returns:
- possible object is
Object
-
setIdref
public void setIdref(Object value)
Sets the value of the idref property.- Parameters:
value- allowed object isObject
-
getLabel
public String getLabel()
Gets the value of the label property.- Returns:
- possible object is
String
-
setLabel
public void setLabel(String value)
Sets the value of the label property.- Parameters:
value- allowed object isString
-
getUuid
public String getUuid()
Gets the value of the uuid property.- Returns:
- possible object is
String
-
-