org.ow2.jonas.deployment.web
Class MethodDesc

java.lang.Object
  extended by org.ow2.jonas.deployment.web.MethodDesc

public class MethodDesc
extends Object

Defines a Method object. It manages exclued, unchecked methods with the right transportGuarantee. It also manages the roles which were defined for this method

Author:
Florent Benoit

Constructor Summary
MethodDesc(String name)
          Constructor Build a Method with the right type
 
Method Summary
 void addRole(String role, String transportGuaranteeRoleValue)
          Add role with its transportGuarantee to this method
 void addTransportGuarantee(String transportGuaranteeValue)
          Defines the transport guarantee
 boolean equals(Object other)
          Defined the Equals method true if it is the same name
 String getName()
          Gets the name of the Method
 Iterator getRolesIterator()
          Gets iterator on roles
 TransportGuaranteeDesc getTransportGuarantee()
          Gets the transport guarantee
 int hashCode()
          Gets the hashcode for this object
 boolean hasRole()
          Test if there are roles for this method
 boolean isExcluded()
          Is this method excluded ?
 boolean isUnchecked()
          Is this method unchecked ?
 void setExcluded()
          Set this method excluded
 void setUnchecked(boolean unchecked)
          Set this method unchecked
 String toString()
          String representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodDesc

public MethodDesc(String name)
Constructor Build a Method with the right type

Parameters:
name - the name of the method
Method Detail

isExcluded

public boolean isExcluded()
Is this method excluded ?

Returns:
true is this method is excluded, false otherwise

isUnchecked

public boolean isUnchecked()
Is this method unchecked ?

Returns:
true is this method is unchecked, false otherwise

setExcluded

public void setExcluded()
Set this method excluded


setUnchecked

public void setUnchecked(boolean unchecked)
Set this method unchecked


addTransportGuarantee

public void addTransportGuarantee(String transportGuaranteeValue)
Defines the transport guarantee

Parameters:
transportGuaranteeValue - the value

addRole

public void addRole(String role,
                    String transportGuaranteeRoleValue)
Add role with its transportGuarantee to this method

Parameters:
role - role to add
transportGuaranteeRoleValue - transport guarantee for this role

hasRole

public boolean hasRole()
Test if there are roles for this method

Returns:
true if there are roles defined for this method

getName

public String getName()
Gets the name of the Method

Returns:
name of the Method

getRolesIterator

public Iterator getRolesIterator()
Gets iterator on roles

Returns:
iterator on roles

getTransportGuarantee

public TransportGuaranteeDesc getTransportGuarantee()
Gets the transport guarantee

Returns:
transport guarantee

equals

public boolean equals(Object other)
Defined the Equals method true if it is the same name

Overrides:
equals in class Object
Parameters:
other - the object to test if it is equals or not
Returns:
true if it is the same object

hashCode

public int hashCode()
Gets the hashcode for this object

Overrides:
hashCode in class Object
Returns:
hashcode of this object

toString

public String toString()
String representation

Overrides:
toString in class Object
Returns:
string representation of the pattern


Copyright © 2010 OW2 Consortium. All Rights Reserved.