lio.core
Class LiOResourceHandler

java.lang.Object
  extended by lio.core.LiOResourceHandler

public class LiOResourceHandler
extends java.lang.Object

This class provides some static methods to manage any resource


Constructor Summary
LiOResourceHandler()
           
 
Method Summary
static java.lang.Class getParameterType(LiOResource pResource, java.lang.String pVarName)
          Returns the type of the parameter in set method of a member in a resource.
static java.lang.Class getType(LiOResource pResource, java.lang.String pVarName)
          Returns the type of a member in a resource.
static java.lang.Object getValue(LiOResource pResource, java.lang.String pVarName)
          Allows to get the value of member in a resource.
static boolean isResource(LiOResource pResource, java.lang.String pVarMember)
          Checks if a member in a resource is a resource too.
static boolean setValue(LiOResource pResource, java.lang.String pVarName, java.lang.Object pValue)
          Allows to update value of a member in a resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiOResourceHandler

public LiOResourceHandler()
Method Detail

getValue

public static java.lang.Object getValue(LiOResource pResource,
                                        java.lang.String pVarName)
Allows to get the value of member in a resource.

Parameters:
pResource - resource whose member value is returned.
pVarName - member name.
Returns:
an Object with the member value.

setValue

public static boolean setValue(LiOResource pResource,
                               java.lang.String pVarName,
                               java.lang.Object pValue)
Allows to update value of a member in a resource.

Parameters:
pResource - resource whose member has to be updated.
pVarName - member name.
pValue - new member value.
Returns:
success of operation.

getParameterType

public static java.lang.Class getParameterType(LiOResource pResource,
                                               java.lang.String pVarName)
Returns the type of the parameter in set method of a member in a resource.

Parameters:
pResource - resource whose member is checked.
pVarName - member name.
Returns:
a Class object indicating member type.

getType

public static java.lang.Class getType(LiOResource pResource,
                                      java.lang.String pVarName)
Returns the type of a member in a resource.

Parameters:
pResource - resource whose member is checked.
pVarName - member name.
Returns:
a Class object indicating member type.

isResource

public static boolean isResource(LiOResource pResource,
                                 java.lang.String pVarMember)
Checks if a member in a resource is a resource too.

Parameters:
pResource - resource whose member is checked.
pVarMember - member name.
Returns:
true if the member is a descendant of LiOResource, false otherwise.