public class APIParamFactory
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
APIParamFactory.Util
An inner class that contains miscellaneous utility helper methods.
|
Modifier and Type | Field and Description |
---|---|
protected static java.util.ResourceBundle |
cvOverrides
A reference to the class override resource properties.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
APIParamFactory() |
Modifier and Type | Method and Description |
---|---|
static <PARAMOBJ extends APIParam<?>> |
getObject(java.lang.Class<PARAMOBJ> objcls)
Returns the Notification Framework API parameter object for the given
object class.
|
static <PARAMOBJ extends APIParam<?>> |
getObject(java.lang.Class<PARAMOBJ> objcls,
java.util.HashMap<java.lang.String,java.lang.Object> source)
Returns the Notification Framework API parameter object for the given
object class.
|
static <PARAMOBJ extends APIParam<?>> |
getObject(java.lang.Class<PARAMOBJ> objcls,
java.lang.String source)
Returns the Notification Framework API parameter object for the given
object class.
|
static APIParam<? extends APIParam<?>> |
getObject(java.lang.String clsname)
Returns the Notification Framework API parameter object for the given
class name.
|
static APIParam<? extends APIParam<?>> |
getObject(java.lang.String clsname,
java.util.HashMap<java.lang.String,java.lang.Object> source)
Returns the Notification Framework API parameter object for the given
class name.
|
static APIParam<? extends APIParam<?>> |
getObject(java.lang.String clsname,
java.lang.String source)
Returns the Notification Framework API parameter object for the given
class name.
|
protected static java.lang.Class<? extends APIParam<?>> |
getObjectClass(java.lang.String clsname)
Returns the object class for the given class name.
|
private static final long serialVersionUID
protected static java.util.ResourceBundle cvOverrides
public static APIParam<? extends APIParam<?>> getObject(java.lang.String clsname)
Example:
paramobj.MyObject.class=com.dpslink.somepackage.YourObject
If MyObject.class is passed to this method, the class actually
created would be YourObject. If no matching property exists for
MyObject.class, then MyObject would be created.
clsname
- (String) The class name for the desired object.null
if unable
to create the requested object. If no object class is defined
in properties, the object for the supplied class is created.public static APIParam<? extends APIParam<?>> getObject(java.lang.String clsname, java.util.HashMap<java.lang.String,java.lang.Object> source)
Example:
paramobj.MyObject.class=com.dpslink.somepackage.YourObject
If MyObject.class is passed to this method, the class actually
created would be YourObject. If no matching property exists for
MyObject.class, then MyObject would be created.
clsname
- (String) The class name for the desired object.source
- (HashMap) A hash map of field names and values.null
if unable
to create the requested object. If no object class is defined
in properties, the object for the supplied class is created.public static APIParam<? extends APIParam<?>> getObject(java.lang.String clsname, java.lang.String source)
Example:
paramobj.MyObject.class=com.dpslink.somepackage.YourObject
If MyObject.class is passed to this method, the class actually
created would be YourObject. If no matching property exists for
MyObject.class, then MyObject would be created.
clsname
- (String) The class name for the desired object.source
- (String) A string beginning with {
(left brace) and ending with }
(right brace).null
if unable
to create the requested object. If no object class is defined
in properties, the object for the supplied class is created.public static <PARAMOBJ extends APIParam<?>> PARAMOBJ getObject(java.lang.Class<PARAMOBJ> objcls)
Example:
paramobj.MyObject.class=com.dpslink.somepackage.YourObject
If MyObject.class is passed to this method, the class actually
created would be YourObject. If no matching property exists for
MyObject.class, then MyObject would be created.
PARAMOBJ
- The type of parameter object to return.objcls
- (Class) The class for the desired object.null
if unable
to create the requested object. If no object class is defined
in properties, the object for the supplied class is created.public static <PARAMOBJ extends APIParam<?>> PARAMOBJ getObject(java.lang.Class<PARAMOBJ> objcls, java.util.HashMap<java.lang.String,java.lang.Object> source)
Example:
paramobj.MyObject.class=com.dpslink.somepackage.YourObject
If MyObject.class is passed to this method, the class actually
created would be YourObject. If no matching property exists for
MyObject.class, then MyObject would be created.
PARAMOBJ
- The type of parameter object to return.objcls
- (Class) The class for the desired object.source
- (HashMap) A hash map of field names and values.null
if unable
to create the requested object. If no object class is defined
in properties, the object for the supplied class is created.public static <PARAMOBJ extends APIParam<?>> PARAMOBJ getObject(java.lang.Class<PARAMOBJ> objcls, java.lang.String source)
Example:
paramobj.MyObject.class=com.dpslink.somepackage.YourObject
If MyObject.class is passed to this method, the class actually
created would be YourObject. If no matching property exists for
MyObject.class, then MyObject would be created.
PARAMOBJ
- The type of parameter object to return.objcls
- (Class) The class for the desired object.source
- (String) A string beginning with {
(left brace) and ending with }
(right brace).null
if unable
to create the requested object. If no object class is defined
in properties, the object for the supplied class is created.protected static java.lang.Class<? extends APIParam<?>> getObjectClass(java.lang.String clsname)
clsname
- (String) The class name for the desired object class.null
if the class could
not be determined.