com.sibvisions.util
Class Reflective.Parameter

java.lang.Object
  extended by com.sibvisions.util.Reflective.Parameter
Enclosing class:
Reflective

public static final class Reflective.Parameter
extends Object

The Parameter class is a placeholder for parameters. It allows you to use a type-class if e.g. the value is null.


Constructor Summary
Reflective.Parameter(Class<?> pClass, Object pValue)
          Creates a new instance of Parameter.
Reflective.Parameter(Object pValue)
          Ctreates a new instance of Parameter.
 
Method Summary
 Class<?> getTypeClass()
          Gets the type class.
 Object getValue()
          Gets the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reflective.Parameter

public Reflective.Parameter(Object pValue)
Ctreates a new instance of Parameter. The class-type is set to the type of the value.

Parameters:
pValue - the value

Reflective.Parameter

public Reflective.Parameter(Class<?> pClass,
                            Object pValue)
Creates a new instance of Parameter.

Parameters:
pClass - the type-class. If the class is null, the class from the value is used if it is not null
pValue - the value
Method Detail

getTypeClass

public Class<?> getTypeClass()
Gets the type class.

Returns:
the class

getValue

public Object getValue()
Gets the value.

Returns:
the value


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.