java.lang.String/method-param>
/method-params>
/method>
- Since:
- 1.0
RIGHT_PAREN
public static final java.lang.String RIGHT_PAREN
- See Also:
- Constant Field Values
LEFT_PAREN
public static final java.lang.String LEFT_PAREN
- See Also:
- Constant Field Values
COMMA
public static final java.lang.String COMMA
- See Also:
- Constant Field Values
addMethodParams
public void addMethodParams(java.lang.String param)
applyZeroParams
public void applyZeroParams()
- Set the params for this method element to an empty array, as opposed
to null.
equalSignature
public boolean equalSignature(MethodElement anotherMethodElement)
- Return true if this MethodElement and @anotherMethodElement
have the same name, parameters, and type.
getMethodParams
public java.util.List getMethodParams()
getMethods
public 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
public MethodElement getMostSpecific(MethodElement aMethodElement,
JavaClass aJavaClass)
- Return the MethodElement that is most specific.
getSignature
public java.lang.String getSignature()
- Return the signature.
For example: setTwoParamMethod(java.lang.String, java.lang.String)
getTypeJavaClass
public JavaClass getTypeJavaClass()
- Return the type cast to a JavaClass.
hasMethodParams
public boolean hasMethodParams()
initializeFromSignature
public 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
public boolean isDefault()
isEquivalent
public boolean isEquivalent(MethodElement anotherMethodElement)
- Return true if this MethodElement and @anotherMethodElement
represent the same exact methods.
isHome
public boolean isHome()
isRemote
public boolean isRemote()
isUnspecified
public boolean isUnspecified()
isLocalHome
public boolean isLocalHome()
isLocal
public boolean isLocal()
isValid
public boolean isValid()
- Return true if this MethodElement represents one or more
methods.
nameAndParamsEquals
public boolean nameAndParamsEquals(Method aMethod)
- Return true if this MethodElement has the same basic signature as
removeMethodParams
public void removeMethodParams(java.lang.String param)
represents
public boolean represents(Method aMethod)
setIdToReadableString
public void setIdToReadableString()
uniquelyIdentifies
public boolean uniquelyIdentifies(Method aMethod)
- Return true if this MethodElement uniquely identifies
getName
public 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
public void setName(java.lang.String value)
- Parameters:
value
- The new value of the Name attribute
getParms
public 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
public void setParms(java.lang.String value)
- Parameters:
value
- The new value of the Parms attribute
getType
public MethodElementKind getType()
- Returns:
- The value of the Type attribute
setType
public 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
public void unsetType()
- Unsets the value of the '
Type
' attribute.
- See Also:
isSetType()
,
getType()
,
setType(MethodElementKind)
isSetType
public 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
public 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
public void setDescription(java.lang.String value)
- Parameters:
value
- The new value of the Description attribute
getEnterpriseBean
public EnterpriseBean getEnterpriseBean()
- Returns:
- The EnterpriseBean reference
setEnterpriseBean
public void setEnterpriseBean(EnterpriseBean value)
getDescriptions
public 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()