org.jboss.metadata.ejb.spec
Class MethodMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions
          extended by org.jboss.metadata.ejb.spec.MethodMetaData
All Implemented Interfaces:
Serializable, Cloneable, IdMetaData

public class MethodMetaData
extends IdMetaDataImplWithDescriptions

MethodMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
MethodMetaData()
          Create a new MethodMetaData.
 
Method Summary
 String getEjbName()
          Get the ejbName.
 MethodInterfaceType getMethodIntf()
          Get the methodInterface.
 String getMethodName()
          Get the methodName.
 MethodParametersMetaData getMethodParams()
          Get the methodParams.
 boolean isHomeMethod()
          Whether this is a home method
 boolean isLocalHomeMethod()
          Whether this is a local home method
 boolean isLocalMethod()
          Whether this is a local method
 boolean isRemoteMethod()
          Whether this is a remote method
 boolean isServiceEndpointMethod()
          Whether this is a service endpoint method
 boolean matches(String methodName, String[] params, MethodInterfaceType interfaceType)
          Whether this matches
 void setEjbName(String ejbName)
          Set the ejbName.
 void setMethodIntf(MethodInterfaceType methodInterface)
          Set the methodInterface.
 void setMethodName(String methodName)
          Set the methodName.
 void setMethodParams(MethodParametersMetaData methodParams)
          Set the methodParams.
 String toString()
           
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions
getDescriptions, merge, setDescriptions
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, equals, getId, hashCode, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodMetaData

public MethodMetaData()
Create a new MethodMetaData.

Method Detail

getEjbName

public String getEjbName()
Get the ejbName.

Returns:
the ejbName.

setEjbName

public void setEjbName(String ejbName)
Set the ejbName.

Parameters:
ejbName - the ejbName.
Throws:
IllegalArgumentException - for a null ejbName

getMethodIntf

public MethodInterfaceType getMethodIntf()
Get the methodInterface.

Returns:
the methodInterface.

setMethodIntf

public void setMethodIntf(MethodInterfaceType methodInterface)
Set the methodInterface.

Parameters:
methodInterface - the methodInterface.
Throws:
IllegalArgumentException - for a null methodInterface

getMethodName

public String getMethodName()
Get the methodName.

Returns:
the methodName.

setMethodName

public void setMethodName(String methodName)
Set the methodName.

Parameters:
methodName - the methodName.
Throws:
IllegalArgumentException - for a null methodName

getMethodParams

public MethodParametersMetaData getMethodParams()
Get the methodParams.

Returns:
the methodParams.

setMethodParams

public void setMethodParams(MethodParametersMetaData methodParams)
Set the methodParams. TODO this should probably be done with XmlElementWrapper annotation instead of the JBossXmlChild...

Parameters:
methodParams - the methodParams.
Throws:
IllegalArgumentException - for a null methodParams

matches

public boolean matches(String methodName,
                       String[] params,
                       MethodInterfaceType interfaceType)
Whether this matches

Parameters:
methodName - the method name
params - the parameters
interfaceType - the interface type
Returns:
true when it matches

isHomeMethod

public boolean isHomeMethod()
Whether this is a home method

Returns:
true when a home method

isRemoteMethod

public boolean isRemoteMethod()
Whether this is a remote method

Returns:
true when a remote method

isLocalHomeMethod

public boolean isLocalHomeMethod()
Whether this is a local home method

Returns:
true when a local home method

isLocalMethod

public boolean isLocalMethod()
Whether this is a local method

Returns:
true when a local method

isServiceEndpointMethod

public boolean isServiceEndpointMethod()
Whether this is a service endpoint method

Returns:
true when a service endpoint method

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss Inc.. All Rights Reserved.