org.systinet.wasp.webservice
Interface Attributes


public interface Attributes

Attributes interface represents a store of attributes. Attributes can be associated with Class, Field, Method or a parameter of Method and can be defined for ServiceEndpoint, ServiceInstance and ServiceClient.

Since:
4.6
Component:
Core

Method Summary
 java.util.Map get(java.lang.Class clazz)
          Retrieves attributes associated with the clazz.
 java.util.Map get(java.lang.reflect.Field field)
          Retrieves attributes associated with the field
 java.util.Map get(java.lang.reflect.Method method)
          Retrieves attributes associated with the method
 java.util.Map get(java.lang.reflect.Method method, int parameter)
          Retrieves attributes associated with the method and parameter.
 void set(java.lang.Class clazz, java.util.Map attributes)
          Sets attributes on given clazz.
 void set(java.lang.reflect.Field field, java.util.Map attributes)
          Set attributes on given field.
 void set(java.lang.reflect.Method method, int parameter, java.util.Map attributes)
          Sets attributes on given method and parameter.
 void set(java.lang.reflect.Method method, java.util.Map attributes)
          Sets attributes on given method.
 

Method Detail

get

public java.util.Map get(java.lang.Class clazz)
Retrieves attributes associated with the clazz.

Parameters:
clazz - class to get attributes
Returns:
attribute associated with the clazz or null if any attributes were no set

get

public java.util.Map get(java.lang.reflect.Field field)
Retrieves attributes associated with the field

Parameters:
field - field to get attributes
Returns:
attribute associated with the field or null if any attributes were no set

get

public java.util.Map get(java.lang.reflect.Method method)
Retrieves attributes associated with the method

Parameters:
method - method to get attributes
Returns:
attributes associated with the method or null if any attributes were no set

get

public java.util.Map get(java.lang.reflect.Method method,
                         int parameter)
Retrieves attributes associated with the method and parameter. Parameter represents position in parameter list. Zero denotes the first parameter, negative value denotes return type.

Parameters:
method - method to get attributes for given parameter
parameter - parameter of method to get attributes
Returns:
attributes associated with the method and parameter

set

public void set(java.lang.Class clazz,
                java.util.Map attributes)
Sets attributes on given clazz.

Parameters:
clazz - class to set attributes
attributes - attributes set on clazz

set

public void set(java.lang.reflect.Field field,
                java.util.Map attributes)
Set attributes on given field.

Parameters:
field - field to set attributes
attributes - attributes set on clazz

set

public void set(java.lang.reflect.Method method,
                java.util.Map attributes)
Sets attributes on given method.

Parameters:
method - method to set attributes
attributes - attributes set on method

set

public void set(java.lang.reflect.Method method,
                int parameter,
                java.util.Map attributes)
Sets attributes on given method and parameter. Zero value of parameter denotes the first parameter of mathod, negative value denotes return type of method.

Parameters:
method - method to set attributes
parameter - parameter position to set parameter
attributes - attributes set on given method and parameter