|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.configurator.Parameter
Represents a single parameter. Converts text values into actual Java objects.
| Field Summary | |
protected java.lang.String |
mName
name |
protected java.lang.String |
mType
type |
protected java.lang.String |
mValue
value |
| Constructor Summary | |
Parameter(java.lang.String name,
java.lang.String type,
java.lang.String value)
Creates new StrategyParameter. |
|
| Method Summary | |
(package private) void |
checkType(java.lang.String type)
Check if type is loadable using the current class loader and if it's one of the allowed types. |
java.lang.String |
getName()
Returns the name of the parameter. |
(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()
Returns the string representation of the parameter value type. |
java.lang.String |
getValue()
Returns the original string representation of the value. |
java.lang.Object |
getValueObject()
Return the value object after converted to the specified type. |
java.lang.Class |
getValueType()
Return the 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 Parameter(java.lang.String name,
java.lang.String type,
java.lang.String value)
name - Name of the parametertype - Type of the parameter value, must match one of the allowed
types.value - Actual parameter value.| Method Detail |
void checkType(java.lang.String type)
type - string representation of the type.
java.lang.IllegalArgumentException - if an error occurs.public java.lang.String getName()
static java.lang.Object getObjectFromString(java.lang.String string,
java.lang.Class type)
string - Value as a string.type - Type to convert to.
java.lang.IllegalArgumentException - if an error occurs.public java.lang.String getType()
public java.lang.String getValue()
public java.lang.Object getValueObject()
public java.lang.Class getValueType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.