|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.survivor.StrategyParameter
The StrategyParameter class represents a single parameter for the survivor strategy. These parameters are specified in the Best Record configuration file. This class converts text values into actual Java objects.
| Field Summary | |
protected java.lang.String |
mName
The name of the parameter |
protected java.lang.String |
mType
The type of parameter |
protected java.lang.String |
mValue
The value of the parameter |
| Constructor Summary | |
StrategyParameter(java.lang.String name,
java.lang.String type,
java.lang.String value)
Creates a new instance of the StrategyParameter class given the name, type, and value of the parameter. |
|
| Method Summary | |
(package private) void |
checkType(java.lang.String type)
Verifies the specified parameter type to ensure that it is an allowed type and that it can be loaded using the current class loader. |
java.lang.String |
getName()
Retrieves the parameter name from an instance of StrategyParameter. |
(package private) static java.lang.Object |
getObjectFromString(java.lang.String string,
java.lang.Class type)
return the value object, after conversion from string to specified type |
java.lang.String |
getType()
Retrieves the string representation of the parameter type from an instance of StrategyParameter. |
java.lang.String |
getValue()
Retrieves the original string representation of the parameter value from an instance of StrategyParameter. |
java.lang.Object |
getValueObject()
Retrieves the parameter value after it is converted to the specified type. |
java.lang.Class |
getValueType()
Retrieves the Java class representing the value type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String mName
protected java.lang.String mType
protected java.lang.String mValue
| Constructor Detail |
public StrategyParameter(java.lang.String name,
java.lang.String type,
java.lang.String value)
name - The name of the parameter.type - The type of parameter. This must match one of the following
allowed types.
value - The value of the parameter.
| Method Detail |
void checkType(java.lang.String type)
type - The parameter type.
void - None.
public java.lang.String getName()
String - The name of the strategy parameter.
static java.lang.Object getObjectFromString(java.lang.String string,
java.lang.Class type)
string - value as a stringtype - type to convert to
public java.lang.String getType()
String - The strategy parameter type as a string.
public java.lang.String getValue()
String - The strategy parameter value.
public java.lang.Object getValueObject()
Object - The parameter value converted to an object.
public java.lang.Class getValueType()
Class - The Java class of the value type.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.