java.lang.String/method-param>
/method-params>
/method>
- Since:
- 1.0
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
RIGHT_PAREN
static final java.lang.String RIGHT_PAREN
- See Also:
- Constant Field Values
LEFT_PAREN
static final java.lang.String LEFT_PAREN
- See Also:
- Constant Field Values
COMMA
static final java.lang.String COMMA
- See Also:
- Constant Field Values
addMethodParams
void addMethodParams(java.lang.String param)
applyZeroParams
void applyZeroParams()
- Set the params for this method element to an empty array, as opposed
to null.
equalSignature
boolean equalSignature(MethodElement anotherMethodElement)
- Return true if this MethodElement and @anotherMethodElement
have the same name, parameters, and type.
getMethodParams
java.util.List getMethodParams()
getMethods
Method[] getMethods()
- Answer a list of all the methods for which this method element applies. The following rules are used:
1) If the method element type is unspecified, the methods are obtained from the remote interface of the ejb;
If it is specified, then the appropriate interface is used
2) If the method name = "*", then all the PUBLIC methods for that interface are returned
3) If the method name is specified, and no method params are specified, then all public methods for the interface
having the same name are returned.
4) If the method name and params are specified, then a zero or one element array is returned, containing the one and only method
on the interface with the appropriate signature, if it exists
getMostSpecific
MethodElement getMostSpecific(MethodElement aMethodElement,
JavaClass aJavaClass)
- Return the MethodElement that is most specific.
getSignature
java.lang.String getSignature()
- Return the signature.
For example: setTwoParamMethod(java.lang.String, java.lang.String)
getTypeJavaClass
JavaClass getTypeJavaClass()
- Return the type cast to a JavaClass.
hasMethodParams
boolean hasMethodParams()
initializeFromSignature
void initializeFromSignature(java.lang.String aSignature)
- Parse @aSignature setting the name and the params.
A signature example: setTwoParamMethod(java.lang.String, java.lang.String)
isDefault
boolean isDefault()
isEquivalent
boolean isEquivalent(MethodElement anotherMethodElement)
- Return true if this MethodElement and @anotherMethodElement
represent the same exact methods.
isHome
boolean isHome()
isRemote
boolean isRemote()
isUnspecified
boolean isUnspecified()
isLocalHome
boolean isLocalHome()
isLocal
boolean isLocal()
isValid
boolean isValid()
- Return true if this MethodElement represents one or more
methods.
nameAndParamsEquals
boolean nameAndParamsEquals(Method aMethod)
- Return true if this MethodElement has the same basic signature as
removeMethodParams
void removeMethodParams(java.lang.String param)
represents
boolean represents(Method aMethod)
setIdToReadableString
void setIdToReadableString()
uniquelyIdentifies
boolean uniquelyIdentifies(Method aMethod)
- Return true if this MethodElement uniquely identifies
getName
java.lang.String getName()
- Returns:
- The value of the Name attribute
The method-name element contains a name of an enterprise bean method,
or the asterisk (*) character. The asterisk is used when the element
denotes all the methods of an enterprise bean's remote and home
interfaces.
setName
void setName(java.lang.String value)
- Parameters:
value
- The new value of the Name attribute
getParms
java.lang.String getParms()
- Returns:
- The value of the Parms attribute
The method-params element contains a list of the fully-qualified Java type
names of the method parameters. In the current implementation this is a space
delimitted String. A null string indicates a generic method element that can
apply to multiple methods with the same name. An empty string indicates a
method with zero parameters.
setParms
void setParms(java.lang.String value)
- Parameters:
value
- The new value of the Parms attribute
getType
MethodElementKind getType()
- Returns:
- The value of the Type attribute
setType
void setType(MethodElementKind value)
- Sets the value of the '
Type
' attribute.
- Parameters:
value
- the new value of the 'Type' attribute.- See Also:
MethodElementKind
,
isSetType()
,
unsetType()
,
getType()
unsetType
void unsetType()
- Unsets the value of the '
Type
' attribute.
- See Also:
isSetType()
,
getType()
,
setType(MethodElementKind)
isSetType
boolean isSetType()
- Returns whether the value of the '
Type
' attribute is set.
- Returns:
- whether the value of the 'Type' attribute is set.
- See Also:
unsetType()
,
getType()
,
setType(MethodElementKind)
getDescription
java.lang.String getDescription()
- Returns:
- The value of the Description attribute
The description element is used by the ejb-jar file producer to provide text
describing the parent element. The description element should include any
information that the ejb-jar file producer wants to provide to the consumer of
the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the
ejb-jar file consumer will display the description when processing the parent
element.
setDescription
void setDescription(java.lang.String value)
- Parameters:
value
- The new value of the Description attribute
getEnterpriseBean
EnterpriseBean getEnterpriseBean()
- Returns:
- The EnterpriseBean reference
setEnterpriseBean
void setEnterpriseBean(EnterpriseBean value)
- Parameters:
l
- The new value of the EnterpriseBean reference
getDescriptions
org.eclipse.emf.common.util.EList getDescriptions()
- Returns the value of the 'Descriptions' containment reference list.
The list contents are of type
Description
.
If the meaning of the 'Descriptions' containment reference list isn't clear,
there really should be more of a description here...
- Returns:
- the value of the 'Descriptions' containment reference list.
- See Also:
EjbPackage.getMethodElement_Descriptions()