getValueAsString
getValueAsString()
The getValueAsString method returns the value of a NameValuePair object.
You should use getValueDataType before using getValueAsString to confirm you are referencing the correct data type.
Return value
The getValueAsString method returns a string. If, for example, you are retrieving a value originally stored in your profile table as a char, varchar, or char[10], getValueAsString returns a string.
Example
The following example is an excerpt from a method which processes a NameValuePair and prints the value if it is a string.
if(nvp.getValueDataType().equals(NameValuePair.DATA_TYPE_STRING))
{
System.out.println("Value:"+nvp.getValueAsString());
}