|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.eindex.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.
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. |
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 |
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.
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 |
Copyright 2007 by Sun Microsystems, Inc. All Rights Reserved.